Add robots.txt file to prevent indexing outdated docs (#3002)

Closes #2912
This commit is contained in:
Nathan Lovato 2020-01-18 19:30:20 +01:00 committed by Hugo Locurcio
parent 350e0bb26c
commit 72e37935e7
2 changed files with 8 additions and 0 deletions

View File

@ -91,6 +91,8 @@ html_logo = 'img/docs_logo.png'
# These folders are copied to the documentation's HTML output
html_static_path = ['_static']
html_extra_path = ['robots.txt']
# These paths are either relative to html_static_path
# or fully qualified paths (eg. https://...)
html_css_files = [

6
robots.txt Normal file
View File

@ -0,0 +1,6 @@
user-agent: *
disallow: /*/3.1
disallow: /*/3.0
disallow: /*/2.0
sitemap: https://docs.godotengine.org/sitemap.xml