diff options
Diffstat (limited to 'cli.py')
| -rwxr-xr-x | cli.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -11,6 +11,8 @@ import os import yaml import logging import logging.config +from livereload import Server, shell + here = os.path.dirname(__file__) @@ -173,5 +175,12 @@ def upload(): sh('twine upload dist/*') +@cli.command() +def docs_serve(): + server = Server() + server.watch('docs/*.rst', shell('make html', cwd='docs')) + server.serve(root='docs/_build/html', open_url=True) + + if __name__ == '__main__': cli() |
