Skip to content

Commit c26aeb0

Browse files
committed
1 parent f8373b7 commit c26aeb0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/sphinx/conf.py

+6
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@
182182
# Output file base name for HTML help builder.
183183
htmlhelp_basename = 'Nikoladoc'
184184

185+
# Set canonical URL from the Read the Docs Domain
186+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
187+
188+
# Tell Jinja2 templates the build is running on Read the Docs
189+
if os.environ.get("READTHEDOCS", "") == "True":
190+
html_context["READTHEDOCS"] = True
185191

186192
# -- Options for LaTeX output ---------------------------------------------
187193

0 commit comments

Comments
 (0)