Skip to content

Commit

Permalink
Backport #5725 16.x.x (#5916)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepiercy authored Mar 24, 2024
1 parent 3b04e82 commit bc19806
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docs/source/robots.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
# Disallow all user agents from the following directories and files
User-agent: *
Disallow: /_sources/
Disallow: /.doctrees/
Disallow: /*.txt$
Disallow: /.buildinfo$
Disallow: /objects.inv$
# Disallow all user agents from indexing pages and links in the site on Netlify only.
Disallow: /
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
NODE_VERSION = "16.17.1"
[build]
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./docs/"
[[headers]]
for = "/*"
[[headers.values]]
X-Robots-Tag = "none"
1 change: 1 addition & 0 deletions news/5916.documentation
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Block search engines from indexing content on Netlify preview builds. @stevepiercy

0 comments on commit bc19806

Please sign in to comment.