aboutsummaryrefslogtreecommitdiffstats
path: root/cli.py
diff options
context:
space:
mode:
authorjryannel <juergen@ryannel.org>2017-04-03 20:18:23 +0200
committerGitHub <noreply@github.com>2017-04-03 20:18:23 +0200
commitc82d515e541c31019784e884e50d093fb955d49a (patch)
tree14d81aaf05495739fcf250152d97626fde952743 /cli.py
parent7e116e10bf9ee1ef19c12e7c3d24f7ba3b8e9800 (diff)
yaml based inline annotations (#31)
* added support for inline yaml based annotations * CLI supports now livereloading of the documentation * updated the documentation to cover more annoations insights * added support for inline yaml based annotations * CLI supports now livereloading of the documentation * updated the documentation to cover more annoations insights * clarified that there should be one annotation per line
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()