Make only live website indexable

This change updates how we run Hugo AND changes the logic for checking
whether a page should be indexable (copied with a backport from upstream
Docsy).
This commit is contained in:
Tim Bannister
2021-12-07 14:16:55 +00:00
parent aa2f69c15f
commit 2dfe0d1c30
4 changed files with 24 additions and 28 deletions
+3 -10
View File
@@ -20,17 +20,10 @@ HUGO_ENABLEGITINFO = "true"
command = "git submodule update --init --recursive --depth 1 && make deploy-preview"
[context.branch-deploy]
command = "git submodule update --init --recursive --depth 1 && make deploy-preview"
command = "git submodule update --init --recursive --depth 1 && make non-production-build"
[context.master]
# This context is triggered by the `master` branch and allows search indexing
[context.main]
# This context is triggered by the `main` branch and allows search indexing
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
publish = "public"
command = "git submodule update --init --recursive --depth 1 && make production-build"
# adding in headers to prevent clickjacking
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"