Files
postgrest/livereload_docs.py
T
steve-chavez 0d4b1d8f92 Add release notes for v6.0.2
Also add relase notes section at index.
2019-08-26 10:28:03 -05:00

14 lines
600 B
Python
Executable File

#!/usr/bin/env python
from livereload import Server, shell
from subprocess import call
## Build docs at startup
call(['sphinx-build', '-b', 'html', '-a', '-n', '.', '_build'])
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.watch('how-tos/*.rst', shell('sphinx-build -b html -a -n . _build'))
server.watch('releases/*.rst', shell('sphinx-build -b html -a -n . _build'))
# For custom port and host
server.serve(root='_build/', host='192.168.1.2')
# server.serve(root='_build/')