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 5fbdcaf commit 536fa8c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))

# https://about.readthedocs.com/blog/2024/07/addons-by-default/
import os

# Set canonical URL from the Read the Docs Domain
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":
html_context["READTHEDOCS"] = True

# -- General configuration ------------------------------------------------

Expand Down

0 comments on commit 536fa8c

Please sign in to comment.