Skip to content
Snippets Groups Projects
Unverified Commit ba52b8bf authored by Mike Thompson's avatar Mike Thompson Committed by GitHub
Browse files

Hotfix for deprecation of Sphinx context injection

Additional information are at: https://about.readthedocs.com/blog/2024/07/addons-by-default/
parent a39e901d
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,15 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# -- Deprecation of Sphinx context injection ---------------------------------
import os
# 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
# -- Project information -----------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment