aboutsummaryrefslogtreecommitdiffstats
path: root/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli.py')
-rwxr-xr-xcli.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli.py b/cli.py
index fd0644d..c04cbac 100755
--- a/cli.py
+++ b/cli.py
@@ -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()