We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db4eab9 commit 8f3e168Copy full SHA for 8f3e168
docs/conf.py
@@ -32,3 +32,13 @@
32
autodoc_default_options = {"members": False, "maxdepth": 1}
33
34
autodoc_member_order = "groupwise"
35
+
36
37
+# Set canonical URL from the Read the Docs Domain
38
+html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
39
40
+# Tell Jinja2 templates the build is running on Read the Docs
41
+if os.environ.get("READTHEDOCS", "") == "True":
42
+ if "html_context" not in globals():
43
+ html_context = {}
44
+ html_context["READTHEDOCS"] = True
0 commit comments