Skip to main content

Watch a Sphinx directory and rebuild the documentation when a change is detected. Also includes a livereload enabled web server.

Installation

sphinx-autobuild relies on a not-yet-released version of python-livereload. You can install it through pip by issuing the following command:

pip install https://github.com/lepture/python-livereload/archive/master.zip

You can then use pip to install the package:

pip install sphinx-autobuild

Usage

The package installs a single executable script, named sphinx-autobuild. The script takes the same arguments as the sphinx-build command installed by Sphinx plus a -p/--port option to specify the port on which the documentation shall be served (default 8000).

To build a classical Sphinx documentation set, issue the following command:

sphinx-autobuild docs docs/_build/html

And then visit the webpage served at http://127.0.0.1:8000. Each time a change to the documentation source is detected, the HTML is rebuilt and the browser automatically reloaded.

To stop the server simply press ^C.

Makefile integration

To integrate the sphinx-autobuild command in the Makefile generated by Sphinx, add the following target:

livehtml:
    sphinx-autobuild -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html

0.2.2 - 2013/12/25

  • Ignore the paths indicated by the -w and -d arguments when watching for changes to the documentation.

0.2.1 - 2013/12/25

  • Catch subprocess PTY reading errors.

0.2.0 - 2013/12/25

  • Explicitly parse sphinx-build arguments for better compatibility.

0.1.0 - 2013/12/25

  • Initial release.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx-autobuild-0.2.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_autobuild-0.2.2-py27-none-any.whl (6.4 kB view details)

Uploaded Python 2.7

File details

Details for the file sphinx-autobuild-0.2.2.tar.gz.

File metadata

File hashes

Hashes for sphinx-autobuild-0.2.2.tar.gz
Algorithm Hash digest
SHA256 30b8043c422f4b26cc02fc6e9d927fdf2abd9a86d0fd0cf87f0ea295c83531a3
MD5 e17710cbaa87343061a32a9a509294e4
BLAKE2b-256 9b38d23f9a5c647844afcf8c14fb611cc914e8de9b21b97d98a315eb3c834962

See more details on using hashes here.

File details

Details for the file sphinx_autobuild-0.2.2-py27-none-any.whl.

File metadata

File hashes

Hashes for sphinx_autobuild-0.2.2-py27-none-any.whl
Algorithm Hash digest
SHA256 fbabcaa0c1147daab9e8aa8579c1f8153777fe971a0dbf0548bd9eb5403ae3fc
MD5 2c85c23604277a78721bd3a9a4e696c4
BLAKE2b-256 d0b359b9481c555a65d1ba5054d0cd5fb3bd3d5679dcbd7765e20dc8e23aa159

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page