Serves your Sphinx project and reloads pages on source changes
Project description
Automatically rebuild your Sphinx project on changes.
sphinxview is a Sphinx extension which shortens the feedback loop while working on a Sphinx project. When used, it starts a local webserver and serves your project so you can navigate around it. Whenever you make changes to the source file matching the page currently displayed in the browser, the entire project is automaticly rebuilt and your browser reloads the page when the new build has finished.
Getting it
You can install sphinxview from PyPI using pip:
$ pip install sphinxview
Or you can get the source from the GitHub repository.
Using it
Before you can use sphinxview, you must first enable it in the conf.py for your Sphinx project. This is done by adding sphinxview.ext to the list extensions:
# conf.py extensions = ['sphinxview.ext']
Now you can use sphinxview to rebuild your project on changes to the source files:
$ sphinxview /path/to/your-sphinx-project/
To see additional options, run:
$ sphinxview –help
About
Sphinxview consists of three components:
sphinxview/ext.py is a Sphinx extension that adds sphinxview.js to all HTML files built by Sphinx. To enable the extension, add ‘sphinxview.ext’ to the extensions list in your conf.py.
sphinxview/sphinxview.js is a piece of javascript that sends a request to the HTTP server with name and build time of the HTML file it is embedded in.
sphinxview/sphinxview.py is a CLI program that starts a HTTP server and rebuilds your project on changes to the files requested by sphinxview.js. Your browser automatically refreshes when the new build is finished.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sphinxview-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5def4a610c0939fbf6772d4ca6437943c3d515a5e5bbb9d077d78c48b4aaa9ad |
|
MD5 | 575444338d9e2227cf5491c25bc44158 |
|
BLAKE2b-256 | bc1ddfa2ad84a35c29e3a691e2c86ddf9b13237999bf746d4f38f7b224ce6224 |