sphinx-sitemap
Sitemap generator for Sphinx
What it is and what it does
sphinx-sitemap is a Sphinx extension that automatically generates XML sitemaps compatible with the sitemaps.org protocol for your HTML documentation builds. It handles the common case where documentation exists in multiple versions or languages, creating a single sitemap that search engines can use to discover and index all variants of your docs.
The package integrates directly into Sphinx's build process and requires minimal configuration—typically just setting your documentation's base URL. It depends on sphinx-last-updated-by-git to track when content was last modified, which feeds into sitemap metadata. The extension is permissively licensed under MIT and has been maintained since 2017.
Use it for:
- Generate search-engine-discoverable sitemaps for multi-version documentation (e.g., docs for current and legacy releases)
- Create sitemaps for documentation available in multiple languages to ensure all variants are indexed
- Automatically include lastmod timestamps in sitemaps by tracking git commit history of documentation files
- Improve SEO for Sphinx-hosted documentation by providing structured sitemap metadata to search engines
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates sitemaps.org-compliant XML sitemaps for Sphinx documentation, supporting multiple versions and languages in a single output.
Yes. This is a lightweight, actively maintained Sphinx extension with no known vulnerabilities, permissive licensing, and a single runtime dependency. Install it if you host Sphinx documentation and want search engines to reliably discover all versions or language variants of your docs.
Install
sphinx-sitemap on PyPI
pip
pip install sphinx-sitemapuv
uv add sphinx-sitemappoetry
poetry add sphinx-sitemapInstalling sphinx-sitemap
Before you install
Low install friction with a single runtime dependency. Active maintenance as of August 2026, with consistent releases since 2017.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.
Quickstart
pip install sphinx-sitemap
# In conf.py, add to extensions list:
extensions = ['sphinx_sitemap']
# Configure sitemap URL:
html_baseurl = 'https://example.com/docs/'
Verify before relying
- Whether the package handles dynamic content or requires static HTML generation first
- Performance characteristics with very large documentation sets or many language variants
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — sphinx-last-updated-by-git |
| Maintenance | actively maintained — 312 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 671,594/month — #5,404 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sphinx_sitemap-2.9.0-py3-none-any.whl
Tags
More Sphinx packages
Parses Python docstrings in ReST, Google,…
permissive · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlA Sphinx extension that outputs documentation…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
sphinxcontrib-qthelpA Sphinx extension that converts documentation…
permissive · top 1,000 on PyPI
ultimate-sitemap-parserParses and crawls sitemaps in multiple formats…
copyleft · top 15,000 on PyPI
sphinx-llmSphinx extensions that generate LLM-consumable…
permissive · top 15,000 on PyPI
sphinx-multitoc-numberingA Sphinx extension that maintains continuous…
permissive · top 15,000 on PyPI
sphinxcontrib-napoleonA Sphinx extension that converts Google and…
permissive · top 15,000 on PyPI
sphinx-bootstrap-themeA Sphinx theme that applies Bootstrap CSS and…
permissive · top 15,000 on PyPI
myst-parserMyST-Parser extends CommonMark-compliant…
permissive · top 5,000 on PyPI