summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2024-10-30 16:16:25 -0500
committerGitHub <noreply@github.com>2024-10-30 16:16:25 -0500
commit4e23ebed1e83f8d8d1cddaa2bac9296ac361ce59 (patch)
treed1fc10934247ebe576f8d84977c1612cd3f4c1f8
parent01be55aa5ce3f99867c0facbc682bc8f696b97fa (diff)
parent410b406afea4206dac2cfe4b3c125f60ad1313d5 (diff)
Merge pull request #17315 from FRRouting/mergify/bp/dev/10.2/pr-17310
doc: Create html_context before setting READTHEDOCS (backport #17310)
-rw-r--r--doc/developer/conf.py1
-rw-r--r--doc/user/conf.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/developer/conf.py b/doc/developer/conf.py
index 634f4aa804..a5b5148140 100644
--- a/doc/developer/conf.py
+++ b/doc/developer/conf.py
@@ -71,6 +71,7 @@ release = "?.?-?"
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
# Tell Jinja2 templates the build is running on Read the Docs
+html_context = {}
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True
diff --git a/doc/user/conf.py b/doc/user/conf.py
index 236a90e902..f9f178f5ff 100644
--- a/doc/user/conf.py
+++ b/doc/user/conf.py
@@ -73,11 +73,11 @@ release = "?.?-?"
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
# Tell Jinja2 templates the build is running on Read the Docs
+html_context = {}
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True
-
# -----------------------------------------------------------------------------
# Extract values from codebase for substitution into docs.
# -----------------------------------------------------------------------------