From 7cddf589f2e25fc54963a003bc3f9348121b47ab Mon Sep 17 00:00:00 2001 From: Kalaiselvi Murugesan Date: Tue, 10 Oct 2023 17:40:52 +0000 Subject: [PATCH] Docsy Upgrade --- site/assets/scss/_variables_project.scss | 41 ++++++++++++++++++++--- site/config.toml | 11 +++--- site/content/en/_index.html | 24 ++++++------- site/go.mod | 6 ++-- site/go.sum | 9 +++-- site/layouts/partials/navbar.html | 6 ++-- site/layouts/partials/search-input.html | 11 ++++-- site/layouts/shortcodes/blocks/cover.html | 10 +++--- 8 files changed, 81 insertions(+), 37 deletions(-) diff --git a/site/assets/scss/_variables_project.scss b/site/assets/scss/_variables_project.scss index efa7bc7567..dfc8e352d5 100644 --- a/site/assets/scss/_variables_project.scss +++ b/site/assets/scss/_variables_project.scss @@ -4,9 +4,6 @@ Add styles or override variables from the theme here. */ -$display1-weight: 500 !default; -$display2-weight: 100 !default; - $primary: rgb(255, 255,255) !default; $primary-light: lighten($primary, 75%) !default; @@ -35,6 +32,8 @@ $td-sidebar-tree-root-color: #222 !default; display: none; } +// Front page items + .asciinema-theme-asciinema .asciinema-terminal { color: #cccccc; background-color: #121314; @@ -46,6 +45,16 @@ $td-sidebar-tree-root-color: #222 !default; background-color:black !important; } +.showcase img { + margin: 0 30px; +} + +#cover-title { + max-width: 800px; +} + +// End Front page items + #agones-search { background: rgba(190, 185, 185, 0.3); } @@ -61,6 +70,28 @@ input[type="search"]::placeholder { color: #121314 !important; } -.showcase img { - margin: 0 30px; +.td-search__icon { + color: #9B9595 !important; +} + +.search-bar { + width: 300px; + height: 40px; +} + +.nav-link { + margin-right: 20px !important; +} + +// Bring this over from older Bootstrap. +h1.display-1 { + font-size: 3rem; + font-weight: 500; + line-height: 1.2; +} + +p.display-2 { + font-size: 2.5rem; + font-weight: 100; + line-height: 1.2; } diff --git a/site/config.toml b/site/config.toml index 40b0045d68..31f35c6e17 100644 --- a/site/config.toml +++ b/site/config.toml @@ -1,4 +1,4 @@ -# Copyright 2018 Google LLC All Rights Reserved. +# Copyright 2023 Google LLC All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,9 +16,6 @@ baseURL = "/site/" title = "Agones" enableRobotsTXT = true -# Hugo allows theme composition (and inheritance). The precedence is from left to right. -theme = ["docsy"] - # Will give values to .Lastmod etc. enableGitInfo = true @@ -171,3 +168,9 @@ no = 'Sorry to hear that. Please }} {{% blocks/lead color="secondary" %}} -What is Agones? +

What is Agones?

-An open source, batteries-included, multiplayer dedicated game server scaling and -orchestration platform that can run anywhere
Kubernetes can run. +

An open source, batteries-included, multiplayer dedicated game server scaling and +orchestration platform that can run anywhere Kubernetes can run.

{{% /blocks/lead %}} -{{< blocks/section color="dark" >}} +{{< blocks/section color="dark" type="row" >}} {{% blocks/feature icon="fas fa-file-code" title="Orchestrate Game Servers" url="./docs/getting-started/" %}} -Define and manage groups of ready gameservers through YAML configuration or API calls. +

Define and manage groups of ready gameservers through YAML configuration or API calls.

{{% /blocks/feature %}} {{% blocks/feature icon="fas fa-wrench" title="Integrate any Engine" url="./docs/guides/client-sdks/" %}} -Integrated SDK for managing game server lifecycle, health and configuration. +

Integrated SDK for managing game server lifecycle, health and configuration. -Tools for local development included! +Tools for local development included!

{{% /blocks/feature %}} {{% blocks/feature icon="fas fa-chart-area" title="Metrics and Monitoring" url="./docs/guides/metrics/" %}} -Integration with [OpenCensus](https://opencensus.io/) -for platform-independent game server metrics and monitoring dashboards +

Integration with OpenCensus +for platform-independent game server metrics and monitoring dashboards

{{% /blocks/feature %}} - {{< /blocks/section >}} -{{< blocks/section color="primary" >}} +{{< blocks/section color="primary" type="row" >}}

Companies using Agones

@@ -69,7 +68,7 @@

Companies using Agones

{{< /blocks/section >}} -{{< blocks/section color="secondary" >}} +{{< blocks/section color="secondary" type="row" >}} {{% blocks/feature icon="fab fa-slack" title="Join us on Slack" url="https://join.slack.com/t/agones/shared_invite/enQtMzE5NTE0NzkyOTk1LWU3ODAyZjdjMjNlYWIxZTAwODkxMGY3YWEyZjNjMjc4YWM1Zjk0OThlMGU2ZmUyMzRlMDljNDJiNmZlMGQ1M2U" url_text="Join us" %}} Join the community on Slack {{% /blocks/feature %}} @@ -86,4 +85,3 @@

Companies using Agones

{{% /blocks/feature %}} {{< /blocks/section >}} - diff --git a/site/go.mod b/site/go.mod index 21c5edb26b..f869e48417 100644 --- a/site/go.mod +++ b/site/go.mod @@ -1,5 +1,7 @@ module github.com/agones/agones/site -go 1.20 +go 1.22 -require gopkg.in/yaml.v2 v2.2.8 +require gopkg.in/yaml.v2 v2.4.0 + +require github.com/google/docsy v0.7.1 // indirect diff --git a/site/go.sum b/site/go.sum index 74b18acbef..7430d6bc1e 100644 --- a/site/go.sum +++ b/site/go.sum @@ -1,4 +1,9 @@ +github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= +github.com/google/docsy v0.7.1 h1:DUriA7Nr3lJjNi9Ulev1SfiG1sUYmvyDeU4nTp7uDxY= +github.com/google/docsy v0.7.1/go.mod h1:JCmE+c+izhE0Rvzv3y+AzHhz1KdwlA9Oj5YBMklJcfc= +github.com/google/docsy/dependencies v0.7.1/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4= +github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= diff --git a/site/layouts/partials/navbar.html b/site/layouts/partials/navbar.html index c513e8d74a..bdc5c3bfbc 100644 --- a/site/layouts/partials/navbar.html +++ b/site/layouts/partials/navbar.html @@ -2,10 +2,10 @@