Merge pull request #35540 from openedx/feanil/update_rtd_config

build: Manually pull some RTD Context.
This commit is contained in:
Feanil Patel
2024-09-26 13:18:40 -04:00
committed by GitHub

View File

@@ -258,6 +258,16 @@ epub_title = project
epub_exclude_files = ['search.html']
# -- Read the Docs Specific Configuration
# Define the canonical URL if you are using a custom domain on Read the Docs
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":
if "html_context" not in globals():
html_context = {}
html_context["READTHEDOCS"] = True
# -- Extension configuration -------------------------------------------------
# -- Options for intersphinx extension ---------------------------------------