skillfed

sphinx-sitemap

Sitemap generator for Sphinx

sphinx-sitemap v2.9.0 671.6K downloads/30d#5,404 on PyPI63
Permissive license MIT Active released

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-sitemap

uv

uv add sphinx-sitemap

poetry

poetry add sphinx-sitemap

Installing 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

Framework :: Sphinx :: ExtensionProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.9Topic :: Documentation :: Sphinx

Tags

sphinx sitemap generatordocumentation sitemap xmlsphinx multiversion sitemapsitemaps.org sphinx extensionsphinx html sitemapdocumentation search engine sitemap
sphinx-extensionseodocumentation

More Sphinx packages