funkwhale/docs/serve.py

11 wiersze
312 B
Python
Czysty Zwykły widok Historia

#!/usr/bin/env python
from subprocess import call
2020-03-02 16:23:03 +00:00
# initial make
call(["python", "-m", "sphinx", ".", "/tmp/_build"])
from livereload import Server, shell
server = Server()
2020-04-20 11:48:19 +00:00
server.watch("..", shell("python -m sphinx . /tmp/_build"))
2020-03-02 16:23:03 +00:00
server.serve(root="/tmp/_build/", liveport=35730, port=8001, host="0.0.0.0")