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:
parent
a752a83ac0
commit
623d1571ee
4 changed files with 23 additions and 25 deletions
|
|
@ -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())
|
||||
Loading…
Add table
Add a link
Reference in a new issue