We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7a634f commit 4755127Copy full SHA for 4755127
layouts/partials/version-selector.html
@@ -1,3 +1,4 @@
1
+{{ if and (eq .Section "docs") (eq hugo.Environment "production") }}
2
{{ $versions := site.Data.versions }}
3
{{ $mainVerStr := $versions.main }}
4
{{ $preliminaryVerStr := $versions.preliminary }}
@@ -38,3 +39,4 @@
38
39
</li>
40
{{ end }}
41
42
+{{ end }}
scripts/archive_version.sh
@@ -23,6 +23,8 @@ NUMBER=$(grep -w 'version:' data/args.yml | grep -oE '[^ ]+$' | tr -d '"')
23
VERSION+="${NUMBER}"
24
25
rm -rf public/
26
+#set the Hugo environment to development for preventing production code in local builds
27
+export HUGO_ENVIRONMENT=development
28
./scripts/gen_site.sh
29
./scripts/build_site.sh /"${VERSION}"
30
0 commit comments