sphinx-autobuild
Rebuild Sphinx documentation on changes, with hot reloading in the browser.
What it is and what it does
sphinx-autobuild is a development tool that wraps Sphinx's build process with file watching and browser auto-reload. When you run it, it starts a local web server, watches your documentation source directory for changes, and automatically rebuilds the docs whenever files change—then pushes a reload signal to any open browser windows showing the docs, so you see updates instantly without manual refresh.
It runs on top of Sphinx, starlette, uvicorn, and watchfiles, so it's a thin layer that adds live-reload capability to your normal Sphinx workflow. You point it at your source and output directories (the same way you'd call sphinx-build), and it accepts all the same arguments plus a few extras like --port, --host, --open-browser, and --watch to monitor additional directories. It's designed for documentation writers and theme developers who want to iterate quickly without switching between editor and browser.
Use it for:
- Iterating on Sphinx documentation content: edit .rst files and see changes reflected in the browser instantly.
- Developing or customizing a Sphinx HTML theme: watch the theme directory alongside docs to verify layout changes in real time.
- Working on multiple Sphinx projects simultaneously: use --port=0 to auto-assign ports and avoid manual port management.
- Building documentation as part of a local development loop: integrate with Makefile or CI-like workflows using --pre-build and --post-build hooks.
- Debugging documentation build issues: enable SPHINX_AUTOBUILD_DEBUG to see which files trigger rebuilds and which ignore patterns are active.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Watches Sphinx documentation source files for changes and automatically rebuilds the docs, then reloads open browser windows to show the updated output.
Yes, if you regularly write or maintain Sphinx documentation. It eliminates the friction of manual rebuilds and browser refreshes, making the edit-preview cycle much faster. The low install friction and permissive license make it a low-risk addition to any Sphinx workflow. The aging maintenance status is not a blocker—the tool is stable and the repository is still active—but monitor it if you depend on frequent updates for new Sphinx features.
Install
sphinx-autobuild on PyPI
pip
pip install sphinx-autobuilduv
uv add sphinx-autobuildpoetry
poetry add sphinx-autobuildInstalling sphinx-autobuild
Before you install
Low friction: pure Python wheel with six runtime dependencies (Sphinx, starlette, uvicorn, watchfiles, websockets, colorama). Maintenance status is aging—last release was 354 days ago—but the repository is active and not archived, with a recent commit on 2025-12-16.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, making it safe for both open-source and commercial projects.
Quickstart
pip install sphinx-autobuild
sphinx-autobuild docs docs/_build/html
This starts a server at http://127.0.0.1:8000 and watches the docs/ directory for changes.
Requires Python 3.11 or later; Sphinx must be installed (included as a dependency).
Verify before relying
- Whether the aging maintenance status (354 days since last release) affects stability for active Sphinx projects.
- Performance characteristics when watching large documentation trees with many files.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — colorama, Sphinx, starlette, uvicorn, watchfiles, websockets |
| Maintenance | aging — 354 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,940,908/month — #2,005 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sphinx_autobuild-2025.8.25-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
livereloadAutomatically reloads webpages in your browser…
permissive · top 15,000 on PyPI
juriggedJurigged lets you edit and hot-patch Python…
permissive · top 15,000 on PyPI
sphinx-press-themeA modern, responsive Sphinx documentation theme…
permissive · top 15,000 on PyPI
sphinx-bootstrap-themeA Sphinx theme that applies Bootstrap CSS and…
permissive · top 15,000 on PyPI
sphinxcontrib-devhelpA Sphinx extension that generates Devhelp…
permissive · top 1,000 on PyPI
Flask-AutoIndexFlask-AutoIndex generates directory listing…
permissive · top 15,000 on PyPI
sphinx-rtd-dark-modeAdds a toggleable dark mode interface to Sphinx…
permissive · top 15,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
watchgodWatches a directory for file changes and…
permissive · top 15,000 on PyPI
sphinx-rtd-themeA Sphinx theme that renders documentation with…
permissive · top 5,000 on PyPI