Add livereload to docs

This commit is contained in:
Steve Johnson 2013-10-06 17:06:00 -07:00
parent 6a70617041
commit fa1db45a11
3 changed files with 16 additions and 0 deletions

9
docs/Guardfile Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env python
from livereload.task import Task
from livereload.compiler import shell
Task.add('*.rst', shell('make html'))
Task.add('*/*.rst', shell('make html'))
Task.add('_static/*.css', shell('make clean html'))
Task.add('Makefile', shell('make html'))
Task.add('conf.py', shell('make html'))

View File

@ -151,3 +151,6 @@ doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \ @echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt." "results in $(BUILDDIR)/doctest/output.txt."
livehtml: html
livereload $(BUILDDIR)/html -p 33233

View File

@ -10,3 +10,7 @@ Sphinx==1.1.3
docopt==0.6.1 docopt==0.6.1
docutils==0.11 docutils==0.11
wsgiref==0.1.2 wsgiref==0.1.2
# livereload not strictly necessary but really useful (make livehtml)
tornado==3.1.1
livereload==1.0.1