Skip to content

Commit

Permalink
Different approach for noindex header
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Jul 29, 2020
1 parent d2ea8e8 commit f3e12a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions _headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*
X-robots-tag: noindex
9 changes: 2 additions & 7 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# for deployments of prerelease docs
[context.next]
command = "make build"
command = "make build-prerelease"

[context.next.environment]
[context.next.environment]
PRERELEASE = "true"
ALGOLIA_INDEX_NAME = "dbt-next"

[[headers]]
for = "/*"
[headers.values]
X-robots-tag = "noindex"
4 changes: 4 additions & 0 deletions website/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ build:
cat ../_redirects | grep 'docs/' | awk '{ print "/v0.12" $$1 "\t" $$2 "\t" $$3 }' >> build/_redirects
cat ../_redirects | grep 'docs/' | awk '{ print "/v0.11" $$1 "\t" $$2 "\t" $$3 }' >> build/_redirects
cat ../_redirects | grep 'docs/' | awk '{ print "/v0.10" $$1 "\t" $$2 "\t" $$3 }' >> build/_redirects

build-prerelease:
make build
cat ../_headers > build/_headers

0 comments on commit f3e12a7

Please sign in to comment.