Skip to content

Commit

Permalink
RTD migration
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Jul 19, 2024
1 parent 2d59d05 commit d109a0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
# https://about.readthedocs.com/blog/2024/07/addons-by-default/
import os

# Set canonical URL from the Read the Docs Domain
# Define the canonical URL if you are using a custom domain on Read the Docs
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

# -- General configuration ------------------------------------------------
Expand Down
4 changes: 3 additions & 1 deletion generated-doc/out/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
# https://about.readthedocs.com/blog/2024/07/addons-by-default/
import os

# Set canonical URL from the Read the Docs Domain
# Define the canonical URL if you are using a custom domain on Read the Docs
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

# -- General configuration ------------------------------------------------
Expand Down

0 comments on commit d109a0c

Please sign in to comment.