File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 23
23
# https://about.readthedocs.com/blog/2024/07/addons-by-default/
24
24
import os
25
25
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
27
27
html_baseurl = os .environ .get ("READTHEDOCS_CANONICAL_URL" , "" )
28
28
29
29
# Tell Jinja2 templates the build is running on Read the Docs
30
30
if os .environ .get ("READTHEDOCS" , "" ) == "True" :
31
+ if "html_context" not in globals ():
32
+ html_context = {}
31
33
html_context ["READTHEDOCS" ] = True
32
34
33
35
# -- General configuration ------------------------------------------------
Original file line number Diff line number Diff line change 23
23
# https://about.readthedocs.com/blog/2024/07/addons-by-default/
24
24
import os
25
25
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
27
27
html_baseurl = os .environ .get ("READTHEDOCS_CANONICAL_URL" , "" )
28
28
29
29
# Tell Jinja2 templates the build is running on Read the Docs
30
30
if os .environ .get ("READTHEDOCS" , "" ) == "True" :
31
+ if "html_context" not in globals ():
32
+ html_context = {}
31
33
html_context ["READTHEDOCS" ] = True
32
34
33
35
# -- General configuration ------------------------------------------------
You can’t perform that action at this time.
0 commit comments