Skip to content

Commit

Permalink
Merge pull request #29 from hppritcha/upstream_pr1995
Browse files Browse the repository at this point in the history
Read The Docs updates
  • Loading branch information
hppritcha authored Oct 1, 2024
2 parents f2a1cc7 + 17aadb7 commit 13f6975
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@
if key in os.environ and os.environ[key] == 'True':
print("PRRTE: found ReadTheDocs build environment")

# Tell Jinja2 templates the build is running on Read the Docs
if "html_context" not in globals():
html_context = {}
html_context["READTHEDOCS"] = True

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

rtd_v = os.environ['READTHEDOCS_VERSION']
if os.environ['READTHEDOCS_VERSION_TYPE'] == 'external':
# Make "release" be shorter than the full "prte_ver" value.
Expand Down

0 comments on commit 13f6975

Please sign in to comment.