Skip to content

Commit

Permalink
Merge pull request #17310 from opensourcerouting/fix/doc_build
Browse files Browse the repository at this point in the history
doc: Create html_context before setting READTHEDOCS
  • Loading branch information
Jafaral authored Oct 30, 2024
2 parents e2f3cfa + ef9f698 commit 7c10340
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/developer/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
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

Expand Down
2 changes: 1 addition & 1 deletion doc/user/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
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.
# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 7c10340

Please sign in to comment.