Skip to content

Commit 61375f1

Browse files
authored
Update conf.py
1 parent ed9b86f commit 61375f1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
import os
2+
3+
# Define the canonical URL if you are using a custom domain on Read the Docs
4+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
5+
6+
# Tell Jinja2 templates the build is running on Read the Docs
7+
if os.environ.get("READTHEDOCS", "") == "True":
8+
if "html_context" not in globals():
9+
html_context = {}
10+
html_context["READTHEDOCS"] = True
11+
112
# Configuration file for the Sphinx documentation builder.
213
#
314
# For the full list of built-in configuration values, see the documentation:

0 commit comments

Comments
 (0)