Skip to content

Commit

Permalink
Accommodate RtD Sphinx context injection
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBand committed Jul 16, 2024
1 parent b11db17 commit 7ed2a42
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doc/manual/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
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

# import sys
# sys.path.insert(0, os.path.abspath('.'))

Expand Down

0 comments on commit 7ed2a42

Please sign in to comment.