Skip to content

Commit 4e23ebe

Browse files
authored
Merge pull request #17315 from FRRouting/mergify/bp/dev/10.2/pr-17310
doc: Create html_context before setting READTHEDOCS (backport #17310)
2 parents 01be55a + 410b406 commit 4e23ebe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/developer/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
7272

7373
# Tell Jinja2 templates the build is running on Read the Docs
74+
html_context = {}
7475
if os.environ.get("READTHEDOCS", "") == "True":
7576
html_context["READTHEDOCS"] = True
7677

doc/user/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@
7373
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
7474

7575
# Tell Jinja2 templates the build is running on Read the Docs
76+
html_context = {}
7677
if os.environ.get("READTHEDOCS", "") == "True":
7778
html_context["READTHEDOCS"] = True
7879

7980

80-
8181
# -----------------------------------------------------------------------------
8282
# Extract values from codebase for substitution into docs.
8383
# -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)