refactor(docs): Replace custom serve script with sphinx-autoreload

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2348>
This commit is contained in:
Georg Krause 2023-11-02 08:15:21 +00:00 committed by Marge
commit 623d1571ee
4 changed files with 23 additions and 25 deletions

View file

@ -1,22 +0,0 @@
#!/usr/bin/env python3
from subprocess import check_call
from livereload import Server, shell
BUILD_DIR = "/tmp/_build"
def main() -> int:
# initial make
check_call(["make", "build", f"BUILD_DIR={BUILD_DIR}"])
server = Server()
server.watch("..", shell(f"make build BUILD_DIR={BUILD_DIR}"))
server.serve(root=BUILD_DIR, liveport=35730, port=8001, host="0.0.0.0")
return 0
if __name__ == "__main__":
raise SystemExit(main())