We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 015a9f4 commit 15660e8Copy full SHA for 15660e8
docs/conf.py
@@ -14,9 +14,18 @@
14
# add these directories to sys.path here. If the directory is relative to the
15
# documentation root, use os.path.abspath to make it absolute, like shown here.
16
#
17
-# import os
18
-# import sys
19
# sys.path.insert(0, os.path.abspath('.'))
+import os
+import re
20
+
21
22
+# Set canonical URL from the Read the Docs Domain
23
+html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
24
25
+html_context = {}
26
+# Tell Jinja2 templates the build is running on Read the Docs
27
+if os.environ.get("READTHEDOCS", "") == "True":
28
+ html_context["READTHEDOCS"] = True
29
30
31
# -- Project information -----------------------------------------------------
0 commit comments