Skip to content

Commit 9aac006

Browse files
authored
Update sitemap settings and version acquisition
Added sitemap configuration and version handling.
1 parent 30a3316 commit 9aac006

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pytorch_sphinx_theme2_migration_guide.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,15 @@ html_context = {
134134
"community_links": theme_variables.get("community_links", []),
135135
"language_bindings_links": html_theme_options.get("language_bindings_links", []),
136136
}
137+
138+
# Need a reliable way to acquire the version
139+
html_baseurl = f"https://<site>/<siteproject>/{version}/"
140+
sitemap_locales = [None]
141+
sitemap_excludes = [
142+
"search.html",
143+
"genindex.html",
144+
]
145+
sitemap_url_scheme = "{link}"
137146
```
138147

139148
If using myst-markdown, add:

0 commit comments

Comments
 (0)