Skip to content

Commit

Permalink
RTD updates
Browse files Browse the repository at this point in the history
  • Loading branch information
plaindocs committed Oct 7, 2024
1 parent d71e0cf commit 60d4058
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@ def _load_data(self, env, data_source, encoding):

sys.path.append(os.getcwd()) # noqa


# Updates for RTD changes
# https://about.readthedocs.com/blog/2024/07/addons-by-default/

# Define the canonical URL if you are using a custom domain on Read the Docs
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "www.writethedocs.org")

# 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


from _ext.core import (
render_rst_with_jinja, override_template_load_context, set_html_context, unset_html_context
)
Expand Down

0 comments on commit 60d4058

Please sign in to comment.