Skip to content

Commit cc47820

Browse files
committed
🔧 Add sphinx sitemap
1 parent 33245f1 commit cc47820

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
@@ -50,6 +50,7 @@
5050
"sphinx.ext.todo",
5151
"sphinx_copybutton",
5252
"sphinx_inline_tabs",
53+
"sphinx_sitemap",
5354
"sphinxcontrib.cairosvgconverter",
5455
"sphinxext.opengraph",
5556
]
@@ -203,3 +204,13 @@ def setup(app):
203204
# -- graphviz configuration --------------------------------------------------
204205

205206
graphviz_output_format = "svg"
207+
208+
# -- sitemap configuration ---------------------------------------------------
209+
210+
sitemap_url_scheme = "{link}"
211+
sitemap_excludes = [
212+
"404.html",
213+
"search.html",
214+
"genindex.html",
215+
]
216+
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"

0 commit comments

Comments
 (0)