Use sphinx_sitemap

This commit is contained in:
Heiko Schaefer 2023-12-24 13:01:44 +01:00
parent 2b879ce908
commit 4c40c10799
No known key found for this signature in database
GPG key ID: DAE9A9050FCCF1EB

View file

@ -28,6 +28,7 @@ description = 'The essential OpenPGP guide for application developers. Learn the
extensions = [ extensions = [
'myst_parser', 'myst_parser',
'sphinxext.opengraph', 'sphinxext.opengraph',
'sphinx_sitemap',
] ]
source_suffix = ['.md', '.rst'] source_suffix = ['.md', '.rst']
@ -82,6 +83,7 @@ html_css_files = [
('html/css/custom.css', {'priority': 1000}) ('html/css/custom.css', {'priority': 1000})
] ]
html_baseurl = 'https://openpgp.dev/book/'
html_favicon = '_static/html/img/favicon.ico' html_favicon = '_static/html/img/favicon.ico'
html_logo = '_static/html/img/logo.svg' html_logo = '_static/html/img/logo.svg'
html_show_sphinx = False html_show_sphinx = False
@ -108,3 +110,5 @@ ogp_custom_meta_tags = [
f'<meta property="og:description" content="{description}" />', f'<meta property="og:description" content="{description}" />',
] ]
# sphinx sitemap https://sphinx-sitemap.readthedocs.io/en/latest/advanced-configuration.html
sitemap_url_scheme = "{link}"