mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 14:32:43 -04:00
14 lines
314 B
Python
14 lines
314 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/*.rst", build_docs)
|
|
server.watch("_templates/*.html", build_docs)
|
|
server.watch("source/**/*.rst", build_docs)
|
|
server.serve(root="build/html")
|