Skip to content

Commit e0a5033

Browse files
committed
Update configuration for ReadTheDocs
1 parent 6e0ed5c commit e0a5033

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

conf.py

+11
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@
1313

1414
import sys, os
1515

16+
### DPVC -- from https://about.readthedocs.com/blog/2024/07/addons-by-default/
17+
# Define the canonical URL if you are using a custom domain on Read the Docs
18+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
19+
20+
# Tell Jinja2 templates the build is running on Read the Docs
21+
if os.environ.get("READTHEDOCS", "") == "True":
22+
if "html_context" not in globals():
23+
html_context = {}
24+
html_context["READTHEDOCS"] = True
25+
### /DPVC
26+
1627
# If extensions (or modules to document with autodoc) are in another directory,
1728
# add these directories to sys.path here. If the directory is relative to the
1829
# documentation root, use os.path.abspath to make it absolute, like shown here.

0 commit comments

Comments
 (0)