Skip to content

Commit bdf564a

Browse files
committed
🔧 Add sphinx sitemap
1 parent 2dc4193 commit bdf564a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"sphinx.ext.todo",
4949
"sphinx_copybutton",
5050
"sphinx_inline_tabs",
51+
"sphinx_sitemap",
5152
"sphinxcontrib.rsvgconverter",
5253
"sphinxext.opengraph",
5354
]
@@ -171,3 +172,13 @@ def setup(app):
171172
# -- graphviz configuration --------------------------------------------------
172173

173174
graphviz_output_format = "svg"
175+
176+
# -- sitemap configuration ---------------------------------------------------
177+
178+
sitemap_url_scheme = "{link}"
179+
sitemap_excludes = [
180+
"404.html",
181+
"search.html",
182+
"genindex.html",
183+
]
184+
sitemap_show_lastmod = True

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ docs = [
2525
"sphinx-inline-tabs",
2626
"sphinx-lint",
2727
"sphinx-notfound-page",
28+
"sphinx-sitemap",
2829
"sphinx_copybutton",
2930
"sphinxcontrib-svg2pdfconverter",
3031
"sphinxext.opengraph", # matplotlib is required for social cards

0 commit comments

Comments
 (0)