Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Prevented old versions of documentation from showing in search results (#1827)

Darylgoldence89fa5b0433
diff --git a/docs/source/conf.py b/docs/source/conf.py
index cc84e4f5d..ba4129b34 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -81,6 +81,8 @@ napoleon_custom_sections = ["Tests", ("Test", "Tests")]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
+html_extra_path = ["robots.txt"]
+
exclude_patterns = []
diff --git a/docs/source/robots.txt b/docs/source/robots.txt
new file mode 100644
index 000000000..dbde2614a
--- /dev/null
+++ b/docs/source/robots.txt
@@ -0,0 +1,3 @@
+User-agent: *
+Disallow: /
+Allow: /en/stable/