mirror of
https://github.com/nix-dot-dev/nix.dev.git
synced 2024-10-06 01:57:36 +03:00
14 lines
306 B
Python
14 lines
306 B
Python
from livereload import Server, shell
|
|
|
|
server = Server()
|
|
|
|
build_docs = shell("make html")
|
|
|
|
print("Doing an initial build of the docs...")
|
|
build_docs()
|
|
|
|
server.watch("source/*", build_docs)
|
|
server.watch("source/**/*", build_docs)
|
|
server.watch("_templates/*.html", build_docs)
|
|
server.serve(root="build/html")
|