diff --git a/docs/source/conf.py b/docs/source/conf.py index d017051cb3..03922a0efa 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -171,6 +171,9 @@ # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. html_show_copyright = False +# This is to tell search engines to index only stable and latest version +html_extra_path = ['robots.txt'] + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/source/robots.txt b/docs/source/robots.txt new file mode 100644 index 0000000000..f94eda030d --- /dev/null +++ b/docs/source/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: /projects/aiida-core/en/latest/ +Allow: /projects/aiida-core/en/stable/ +Disallow: /