Fix #178, Add livereload script

This commit is contained in:
steve-chavez
2018-09-10 10:46:38 -05:00
parent 512862918f
commit bba1d35ade
2 changed files with 6 additions and 1 deletions
-1
View File
@@ -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).
Executable
+6
View File
@@ -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/')