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 11ff7f0 commit db7ff49Copy full SHA for db7ff49
docs/conf.py
@@ -129,6 +129,15 @@ def get_tarball_version(path, expr):
129
if key in os.environ and os.environ[key] == 'True':
130
print("OMPI: found ReadTheDocs build environment")
131
132
+ # Tell Jinja2 templates the build is running on Read the Docs
133
+ if "html_context" not in globals():
134
+ html_context = {}
135
+ html_context["READTHEDOCS"] = True
136
+
137
+ # Define the canonical URL if you are using a custom domain on
138
+ # Read the Docs
139
+ html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
140
141
rtd_v = os.environ['READTHEDOCS_VERSION']
142
if os.environ['READTHEDOCS_VERSION_TYPE'] == 'external':
143
# Make "release" be shorter than the full "ompi_ver" value.
0 commit comments