Skip to content

Commit d109a0c

Browse files
committed
RTD migration
1 parent 2d59d05 commit d109a0c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
# https://about.readthedocs.com/blog/2024/07/addons-by-default/
2424
import os
2525

26-
# Set canonical URL from the Read the Docs Domain
26+
# Define the canonical URL if you are using a custom domain on Read the Docs
2727
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
2828

2929
# Tell Jinja2 templates the build is running on Read the Docs
3030
if os.environ.get("READTHEDOCS", "") == "True":
31+
if "html_context" not in globals():
32+
html_context = {}
3133
html_context["READTHEDOCS"] = True
3234

3335
# -- General configuration ------------------------------------------------

generated-doc/out/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
# https://about.readthedocs.com/blog/2024/07/addons-by-default/
2424
import os
2525

26-
# Set canonical URL from the Read the Docs Domain
26+
# Define the canonical URL if you are using a custom domain on Read the Docs
2727
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
2828

2929
# Tell Jinja2 templates the build is running on Read the Docs
3030
if os.environ.get("READTHEDOCS", "") == "True":
31+
if "html_context" not in globals():
32+
html_context = {}
3133
html_context["READTHEDOCS"] = True
3234

3335
# -- General configuration ------------------------------------------------

0 commit comments

Comments
 (0)