Skip to content

Commit b669b62

Browse files
authored
Merge pull request #3291 from dhalbert/robots.txt
add robots.txt to specify doc versions to appear in search engines
2 parents ba507a8 + 6928de0 commit b669b62

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
# Add any extra paths that contain custom files (such as robots.txt or
277277
# .htaccess) here, relative to this directory. These files are copied
278278
# directly to the root of the documentation.
279-
#html_extra_path = []
279+
html_extra_path = ["docs/robots.txt"]
280280

281281
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
282282
# using the given strftime format.

docs/robots.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
User-agent: *
2+
Allow: /*/latest/
3+
Allow: /en/latest/ # Fallback for bots that don't understand wildcards
4+
Allow: /*/6.0.x/
5+
Allow: /en/6.0.x/ # Fallback for bots that don't understand wildcards
6+
Disallow: /

0 commit comments

Comments
 (0)