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:
2828- sphinx-copybutton
2929- sphinx-design
3030- sphinx-notfound-page
31+ - sphinx-sitemap
3132- sphinx>=5
3233- sphinxext-rediraffe
3334- watermark
Original file line number Diff line number Diff line change 4646 "sphinx_remove_toctrees" ,
4747 "jupyter_sphinx" ,
4848 "sphinxext.rediraffe" ,
49+ "sphinx_sitemap" ,
4950]
5051
5152# Don't auto-generate summary for class members.
108109
109110version = pymc .__version__
110111on_readthedocs = os .environ .get ("READTHEDOCS" , False )
112+ rtd_version = os .environ .get ("READTHEDOCS_VERSION" , "" )
111113if on_readthedocs :
112- rtd_version = os .environ .get ("READTHEDOCS_VERSION" , "" )
113114 if rtd_version .lower () == "stable" :
114115 version = pymc .__version__ .split ("+" )[0 ]
115116 elif rtd_version .lower () == "latest" :
@@ -337,6 +338,8 @@ def setup(app):
337338# The theme to use for HTML and HTML Help pages. See the documentation for
338339# a list of builtin themes.
339340html_theme = "pymc_sphinx_theme"
341+ html_baseurl = "https://www.pymc.io/projects/docs/"
342+ sitemap_url_scheme = f"{{lang}}{ rtd_version } /{{link}}"
340343
341344
342345# 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