2023-01-13 14:22:05 +00:00
|
|
|
#!/usr/bin/env python3
|
2018-03-12 22:38:39 +00:00
|
|
|
from subprocess import call
|
2020-03-02 16:23:03 +00:00
|
|
|
|
2018-03-12 22:38:39 +00:00
|
|
|
# initial make
|
2023-01-13 14:22:05 +00:00
|
|
|
call(["python3", "-m", "sphinx", ".", "/tmp/_build"])
|
2022-11-19 15:56:34 +00:00
|
|
|
from livereload import Server, shell # noqa: E402
|
2018-03-12 22:38:39 +00:00
|
|
|
|
|
|
|
server = Server()
|
2023-01-13 14:22:05 +00:00
|
|
|
server.watch("..", shell("python3 -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")
|