diff --git a/_static/css/custom.css b/_static/css/custom.css index 94070d9b..705783e0 100644 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -138,10 +138,21 @@ nav.bd-links p.bd-links__title { background: unset; } +@media (max-width: 959px) { + .navbar-brand.logo img { + height: 90%; + } +} + @media (min-width: 960px) { .bd-page-width { max-width: 1800px; } + + .navbar-brand.logo img { + height: 80%; + margin-top: 14px; + } } .bd-main .bd-content .bd-article-container { diff --git a/_static/versions.json b/_static/versions.json new file mode 100644 index 00000000..fe65b22c --- /dev/null +++ b/_static/versions.json @@ -0,0 +1,8 @@ +[ + { + "name": "v5.4.3 (latest)", + "version": "v5.4.3", + "url": "https://docs.gravwell.io/", + "preferred": true + } +] diff --git a/conf.py b/conf.py index 4394a463..40ac78d9 100644 --- a/conf.py +++ b/conf.py @@ -92,6 +92,20 @@ "git-commit-footer", ], "navigation_with_keys": False, + # + # Version switcher + # + "switcher": { + "json_url": "https://docs.gravwell.io/_static/versions.json", + # The `version` field of each entry in verions.json must match a vN.N.N release name + "version_match": release, + }, + # Show a warning banner if the user's looking at any page other than latest + "show_version_warning_banner": True, + # Don't fail to compile just because the version switcher file (json_url) isn't reachable + "check_switcher": False, + # include the version switcher next to the logo + "navbar_start": ["navbar-logo", "version-switcher"], } # sphinx-favicon diff --git a/quickstart/downloads.md b/quickstart/downloads.md index 7f65f90c..c1175fbb 100644 --- a/quickstart/downloads.md +++ b/quickstart/downloads.md @@ -56,4 +56,4 @@ Some Gravwell components are distributed as optional additional installers, such | Cloud Archive Server | Download    (SHA256) | [Documentation](/configuration/archive) | | Offline Replicator | Download    (SHA256) | [Documentation](/configuration/replication) | | Load Balancer | Download    (SHA256) | [Documentation](/distributed/loadbalancer) | -| Gravwell Tools | Download    (SHA256) | [Documentation](/tools/tools)| +| Gravwell Tools | Download    (SHA256) | [Documentation](/tools/tools)| diff --git a/shell.nix b/shell.nix index f4c35ef7..c34a5245 100644 --- a/shell.nix +++ b/shell.nix @@ -1,2 +1,5 @@ with (import ./packages.nix); -pkgs.mkShell { buildInputs = chosenPackages ++ [ pkgs.coreutils ]; } +pkgs.mkShell { + LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive"; + buildInputs = chosenPackages ++ [ pkgs.coreutils ]; +}