Skip to content

Commit b237807

Browse files
committed
final update before going live (famous last words)
- set unique surrogate key for vercel-hosted content being served - pay no attention to the insanity that now will become fastly.toml. - set surrogate key for vercel content - disable font: false - strip non-EN for now
1 parent 140893f commit b237807

File tree

5 files changed

+51666
-9
lines changed

5 files changed

+51666
-9
lines changed

build-all.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ MINIFY=$(command -v minify || echo "./compute-js/bin/minify")
2121
# minify everything
2222
test -d build/minified || $MINIFY -r --sync --preserve=all -o build/minified build/site
2323

24-
# remove locales from minified (Fastly) site
25-
for locale in $(yq -r '.plugins[] | select(type == "object" and has("i18n")) | .i18n.languages[].locale' < mkdocs.yml | grep -v 'en'); do
26-
rm -fr "build/minified/site/$locale"
27-
done
24+
STRIP_NONENGLISH_LOCALES=${STRIP_LOCALES:-true}
25+
if ${STRIP_NONENGLISH_LOCALES}; then
26+
# remove locales from minified (Fastly) site
27+
for locale in $(yq -r '.plugins[] | select(type == "object" and has("i18n")) | .i18n.languages[].locale' < mkdocs.yml | grep -v 'en'); do
28+
rm -fr "build/minified/site/$locale"
29+
done
30+
fi

0 commit comments

Comments
 (0)