File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ dependencies:
28
28
- sphinx-copybutton
29
29
- sphinx-design
30
30
- sphinx-notfound-page
31
+ - sphinx-sitemap
31
32
- sphinx>=5
32
33
- sphinxext-rediraffe
33
34
- watermark
Original file line number Diff line number Diff line change 46
46
"sphinx_remove_toctrees" ,
47
47
"jupyter_sphinx" ,
48
48
"sphinxext.rediraffe" ,
49
+ "sphinx_sitemap" ,
49
50
]
50
51
51
52
# Don't auto-generate summary for class members.
108
109
109
110
version = pymc .__version__
110
111
on_readthedocs = os .environ .get ("READTHEDOCS" , False )
112
+ rtd_version = os .environ .get ("READTHEDOCS_VERSION" , "" )
111
113
if on_readthedocs :
112
- rtd_version = os .environ .get ("READTHEDOCS_VERSION" , "" )
113
114
if rtd_version .lower () == "stable" :
114
115
version = pymc .__version__ .split ("+" )[0 ]
115
116
elif rtd_version .lower () == "latest" :
@@ -337,6 +338,8 @@ def setup(app):
337
338
# The theme to use for HTML and HTML Help pages. See the documentation for
338
339
# a list of builtin themes.
339
340
html_theme = "pymc_sphinx_theme"
341
+ html_baseurl = "https://www.pymc.io/projects/docs/"
342
+ sitemap_url_scheme = f"{{lang}}{ rtd_version } /{{link}}"
340
343
341
344
342
345
# Theme options are theme-specific and customize the look and feel of a theme
You can’t perform that action at this time.
0 commit comments