Skip to content

Commit

Permalink
Update docs/conf.py, define html_context variable
Browse files Browse the repository at this point in the history
Co-authored-by: jakirkham <jakirkham@gmail.com>
  • Loading branch information
GenevieveBuckley and jakirkham authored Aug 7, 2024
1 parent 11953f7 commit 5ac8da6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
# Set canonical URL from the Read the Docs Domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")

html_context = {}
# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True
Expand Down

0 comments on commit 5ac8da6

Please sign in to comment.