We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a39e901 commit ba52b8bCopy full SHA for ba52b8b
docs/source/conf.py
@@ -18,6 +18,15 @@
18
# import sys
19
# sys.path.insert(0, os.path.abspath('.'))
20
21
+# -- Deprecation of Sphinx context injection ---------------------------------
22
+import os
23
+
24
+# Set canonical URL from the Read the Docs Domain
25
+html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
26
27
+# Tell Jinja2 templates the build is running on Read the Docs
28
+if os.environ.get("READTHEDOCS", "") == "True":
29
+ html_context["READTHEDOCS"] = True
30
31
# -- Project information -----------------------------------------------------
32
0 commit comments