docs: add sitemap

This commit is contained in:
Hsiaoming Yang
2024-01-01 11:36:43 +09:00
parent 4b93cba737
commit 3f784bbd2e
2 changed files with 6 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.extlinks",
"sphinx_sitemap",
]
extlinks = {
@@ -31,6 +32,9 @@ intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
}
html_baseurl = "https://captcha.lepture.com/"
sitemap_url_scheme = "{link}"
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -49,7 +53,7 @@ html_static_path = ["_static"]
#
html_theme = 'shibuya'
html_theme_options = {
"dark_code": True,
"accent_color": "green",
"light_logo": "_static/light-logo.svg",
"dark_logo": "_static/dark-logo.svg",
"twitter_site": 'lepture',

View File

@@ -1,2 +1,3 @@
sphinx
sphinx-sitemap
shibuya