Skip to content

Commit e9c0fe0

Browse files
authored
Added example code to config file
1 parent 34a1d75 commit e9c0fe0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,12 @@
6464
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
6565

6666
html_theme_options = {"display_version": True}
67+
68+
# -- ReadTheDocs Configuration
69+
70+
# Set canonical URL from the Read the Docs Domain
71+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
72+
73+
# Tell Jinja2 templates the build is running on Read the Docs
74+
if os.environ.get("READTHEDOCS", "") == "True":
75+
html_context["READTHEDOCS"] = True

0 commit comments

Comments
 (0)