docsite: remove code insights documents from the search engine indexer (#30061)

This commit is contained in:
coury-clark 2022-01-24 11:21:14 -07:00 committed by GitHub
parent 04bcaf6ecb
commit b8caa3df5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ set -euf -o pipefail
pushd "$(dirname "${BASH_SOURCE[0]}")/.." >/dev/null
version=v1.8.4
version=v1.8.5
suffix="${version}_$(go env GOOS)_$(go env GOARCH)"
url="https://github.com/sourcegraph/docsite/releases/download/${version}/docsite_${suffix}"

View File

@ -58,7 +58,7 @@
{{end}}
{{define "head"}}
{{if (or (not .Content) .ContentVersion)}}<meta name="robots" content="noindex">{{end}}
{{if (or (contains .Content.Path "insights") (or (not .Content) .ContentVersion))}}<meta name="robots" content="noindex">{{end}}
{{end}}
{{define "content"}}

View File

@ -336,7 +336,7 @@ commands:
-o .bin/docsite_${DOCSITE_VERSION} && chmod +x .bin/docsite_${DOCSITE_VERSION}
fi
env:
DOCSITE_VERSION: v1.8.4 # make sure to update all DOCSITE_VERSION
DOCSITE_VERSION: v1.8.5 # make sure to update all DOCSITE_VERSION
syntax-highlighter:
ignoreStdout: true
@ -1014,4 +1014,4 @@ tests:
docsite:
cmd: .bin/docsite_${DOCSITE_VERSION} check ./doc
env:
DOCSITE_VERSION: v1.8.4 # make sure to update all DOCSITE_VERSION
DOCSITE_VERSION: v1.8.5 # make sure to update all DOCSITE_VERSION