Skip to content

Commit aa753d5

Browse files
authored
Merge pull request #6469 from chrisrueger/exclude-docs-releases-folder-from-google
docs: exclude /releases urls from search engines
2 parents 0da207a + d1710fc commit aa753d5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/_config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ defaults:
3232
path: ""
3333
values:
3434
layout: default
35+
# exclude all the files from `/releases/` in the sitemap
36+
- scope:
37+
path: releases/**
38+
values:
39+
sitemap: false
3540

3641
exclude:
3742
- 'ADDING_RELEASE_DOCS.md'

docs/robots.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This robots.txt file controls crawling of URLs under https://bnd.bndtools.org.
2+
# All crawlers are disallowed to crawl files in the "releases" directory,
3+
# because they dilute search results, because they are outdated.
4+
User-agent: *
5+
Disallow: /releases/
6+
7+
Sitemap: https://bnd.bndtools.org/sitemap.xml

0 commit comments

Comments
 (0)