diff options
Diffstat (limited to 'doc/developer/conf.py')
| -rw-r--r-- | doc/developer/conf.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/developer/conf.py b/doc/developer/conf.py index 76dd1e4f28..634f4aa804 100644 --- a/doc/developer/conf.py +++ b/doc/developer/conf.py @@ -67,6 +67,13 @@ version = "?.?" # The full version, including alpha/beta/rc tags. release = "?.?-?" +# Set canonical URL from the Read the Docs Domain +html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") + +# Tell Jinja2 templates the build is running on Read the Docs +if os.environ.get("READTHEDOCS", "") == "True": + html_context["READTHEDOCS"] = True + # ----------------------------------------------------------------------------- # Extract values from codebase for substitution into docs. |
