Skip to content

Commit d1f32c3

Browse files
committed
🔧 Add sphinx sitemap
1 parent 3d728cc commit d1f32c3

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
@@ -58,6 +58,7 @@
5858
"sphinx.ext.todo",
5959
"sphinx_copybutton",
6060
"sphinx_inline_tabs",
61+
"sphinx_sitemap",
6162
"sphinxcontrib.cairosvgconverter",
6263
"sphinxext.opengraph",
6364
]
@@ -252,3 +253,13 @@ def setup(app):
252253
# -- graphviz configuration --------------------------------------------------
253254

254255
graphviz_output_format = "svg"
256+
257+
# -- sitemap configuration ---------------------------------------------------
258+
259+
sitemap_url_scheme = "{link}"
260+
sitemap_excludes = [
261+
"404.html",
262+
"search.html",
263+
"genindex.html",
264+
]
265+
sitemap_show_lastmod = True

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ docs = [
3030
"sphinx-copybutton",
3131
"sphinx-lint",
3232
"sphinx-notfound-page",
33+
"sphinx-sitemap",
3334
"sphinx_inline_tabs",
3435
"sphinxcontrib-svg2pdfconverter",
3536
"sphinxext.opengraph", # matplotlib is required for social cards

0 commit comments

Comments
 (0)