Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61077dc

Browse files
authored
MNT Add robots.txt to avoid indexing of old version doc (#30685)
1 parent f09c7d9 commit 61077dc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
html_additional_pages = {"index": "index.html"}
341341

342342
# Additional files to copy
343-
# html_extra_path = []
343+
html_extra_path = ["robots.txt"]
344344

345345
# Additional JS files
346346
html_js_files = [

doc/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Disallow: /
3+
Allow: /stable
4+
Allow: /dev/developers

0 commit comments

Comments
 (0)