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.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.1.tar.gz (10.2 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.1-py27-none-any.whl (6.2 kB view details)

Uploaded Python 2.7

File details

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

File metadata

File hashes

Hashes for sphinx-autobuild-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b3adae8af4e457a9bf99c708dee9c1875e06b6797a5db4947a7c36e0d188473a
MD5 b30ba6899ada73b90e7e5560198eb29c
BLAKE2b-256 dce0754d4583d86e9e0f226a156ab97af543e424ee3b1061807ef6dc8f3e038c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinx_autobuild-0.2.1-py27-none-any.whl
Algorithm Hash digest
SHA256 cd439ffec36a7bab7549d681a59d10165e7ddac6c00aa7a8c6f4dae7202527fe
MD5 c9eb9ae65a98c36cf39b0eb3f76675e9
BLAKE2b-256 3722d60ecb0adc9b9ee870c7ae483842a8773a46008d02e214677e0055ca798f

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