mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 00:46:16 +03:00
Add livereload to docs
This commit is contained in:
parent
6a70617041
commit
fa1db45a11
9
docs/Guardfile
Normal file
9
docs/Guardfile
Normal 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'))
|
|
@ -151,3 +151,6 @@ doctest:
|
|||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||
@echo "Testing of doctests in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/doctest/output.txt."
|
||||
|
||||
livehtml: html
|
||||
livereload $(BUILDDIR)/html -p 33233
|
||||
|
|
|
@ -10,3 +10,7 @@ Sphinx==1.1.3
|
|||
docopt==0.6.1
|
||||
docutils==0.11
|
||||
wsgiref==0.1.2
|
||||
|
||||
# livereload not strictly necessary but really useful (make livehtml)
|
||||
tornado==3.1.1
|
||||
livereload==1.0.1
|
||||
|
|
Loading…
Reference in New Issue
Block a user