Skip to content

Commit

Permalink
Update code snippet for html_context (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher authored Jul 17, 2024
1 parent 0d288fc commit 329050f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/posts/addons-by-default.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ 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
```

Expand Down Expand Up @@ -122,4 +124,3 @@ If you want to enable Read the Docs Addons in your project, [follow these steps

[Let us know](https://docs.readthedocs.io/page/support.html) any feedback you may have about this change or any of the addons.
We are happy to work together to keep improving them or fix any issue you may have with the migration.

0 comments on commit 329050f

Please sign in to comment.