Pārlūkot izejas kodu

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

Closes #2912
Nathan Lovato 5 gadi atpakaļ
vecāks
revīzija
72e37935e7
2 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 2 0
      conf.py
  2. 6 0
      robots.txt

+ 2 - 0
conf.py

@@ -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 - 0
robots.txt

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