diff --git a/docs/_html/robots.txt b/docs/_html/robots.txt new file mode 100644 index 000000000..9d253d1bb --- /dev/null +++ b/docs/_html/robots.txt @@ -0,0 +1,6 @@ +User-agent: * +Disallow: / +Allow: /en/stable +Allow: /en/latest + +Sitemap: https://docs.discord.red/sitemap.xml diff --git a/docs/conf.py b/docs/conf.py index 3e007e507..3019fda8b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -118,6 +118,12 @@ rst_prolog += f"\n.. |DPY_VERSION| replace:: {dpy_version}" # html_theme = "sphinx_rtd_theme" +# 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"] + # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation.