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 41014c1 commit 17aadb7Copy full SHA for 17aadb7
docs/conf.py
@@ -86,6 +86,15 @@
86
if key in os.environ and os.environ[key] == 'True':
87
print("PRRTE: found ReadTheDocs build environment")
88
89
+ # Tell Jinja2 templates the build is running on Read the Docs
90
+ if "html_context" not in globals():
91
+ html_context = {}
92
+ html_context["READTHEDOCS"] = True
93
+
94
+ # Define the canonical URL if you are using a custom domain on
95
+ # Read the Docs
96
+ html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
97
98
rtd_v = os.environ['READTHEDOCS_VERSION']
99
if os.environ['READTHEDOCS_VERSION_TYPE'] == 'external':
100
# Make "release" be shorter than the full "prte_ver" value.
0 commit comments