Add custom robots.txt to docs

pull/6545/head
Coen van der Kamp 2020-11-12 10:11:37 +01:00 zatwierdzone przez Matt Westcott
rodzic be45cee2aa
commit 4702b6f14d
2 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -163,7 +163,7 @@ html_static_path = ['_static']
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
# html_extra_path = []
html_extra_path = ['robots.txt']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.

8
docs/robots.txt 100644
Wyświetl plik

@ -0,0 +1,8 @@
User-agent: *
# Only index `/en/stable/`
Disallow: /en/v*/
Disallow: /en/latest/
Disallow: /*/pdf/
Sitemap: https://docs.wagtail.io/sitemap.xml