skillfed

sphinx-autobuild

Rebuild Sphinx documentation on changes, with hot reloading in the browser.

sphinx-autobuild v2025.8.25 5.9M downloads/30d#2,005 on PyPI608
Permissive license AGING released

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

uv

uv add sphinx-autobuild

poetry

poetry add sphinx-autobuild

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: Web EnvironmentFramework :: SphinxIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: DocumentationTopic :: Documentation :: SphinxTopic :: Software DevelopmentTopic :: Software Development :: DocumentationTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities

Tags

sphinx live reloadsphinx documentation auto rebuildsphinx hot reloadingsphinx watch and rebuildsphinx development serversphinx live previewsphinx autobuild
sphinx-pluginlive-reloaddev-tool

More Software Development packages

typing-extensions

Provides backported and experimental type hints…

permissive · top 100 on PyPI

numpy

NumPy provides an N-dimensional array object…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

distlib

Distlib provides low-level packaging utilities…

permissive · top 1,000 on PyPI

livereload

Automatically reloads webpages in your browser…

permissive · top 15,000 on PyPI

jurigged

Jurigged lets you edit and hot-patch Python…

permissive · top 15,000 on PyPI

sphinx-press-theme

A modern, responsive Sphinx documentation theme…

permissive · top 15,000 on PyPI

sphinx-bootstrap-theme

A Sphinx theme that applies Bootstrap CSS and…

permissive · top 15,000 on PyPI

sphinxcontrib-devhelp

A Sphinx extension that generates Devhelp…

permissive · top 1,000 on PyPI

Flask-AutoIndex

Flask-AutoIndex generates directory listing…

permissive · top 15,000 on PyPI

sphinx-rtd-dark-mode

Adds a toggleable dark mode interface to Sphinx…

permissive · top 15,000 on PyPI

sphinxcontrib-htmlhelp

A Sphinx extension that generates HTML help…

permissive · top 1,000 on PyPI

watchgod

Watches a directory for file changes and…

permissive · top 15,000 on PyPI

sphinx-rtd-theme

A Sphinx theme that renders documentation with…

permissive · top 5,000 on PyPI