diff --git a/README.md b/README.md index 4a2bb4f58..30be737cc 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,3 @@ To generate HTML version: **Sphinx Installation Notes:** * If you're on OSX you might want to install the Python from homebrew - then a simple `pip install sphinx` does the trick. -* For an easier time refreshing your local preview of docs as you change it, try [sphinx-autobuild](https://github.com/GaretJax/sphinx-autobuild). diff --git a/reload_docs.py b/reload_docs.py new file mode 100755 index 000000000..4ec06803f --- /dev/null +++ b/reload_docs.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +from livereload import Server, shell +server = Server() +server.watch('*.rst', shell('sphinx-build -b html -a -n . _build')) +server.watch('tutorials/*.rst', shell('sphinx-build -b html -a -n . _build')) +server.serve(root='_build/')