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 ed9b86f commit 61375f1Copy full SHA for 61375f1
1 file changed
docs/conf.py
@@ -1,3 +1,14 @@
1
+import os
2
+
3
+# Define the canonical URL if you are using a custom domain on Read the Docs
4
+html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
5
6
+# Tell Jinja2 templates the build is running on Read the Docs
7
+if os.environ.get("READTHEDOCS", "") == "True":
8
+ if "html_context" not in globals():
9
+ html_context = {}
10
+ html_context["READTHEDOCS"] = True
11
12
# Configuration file for the Sphinx documentation builder.
13
#
14
# For the full list of built-in configuration values, see the documentation:
0 commit comments