docs: add the handbook and publish it to pages #3
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/mdbook-creation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
An mdBook handbook in
docs/, published to pages, with the README cut down to the short version. Same shape as the vps repo's handbook.What's in it
docs/src/): architecture (hosts and layers, the user layer, colours, secrets, network and the tailnet, the laptop as a third monitor) and operations (installing, rebuilding and deploying, the VM and install rehearsal, CI and pages, known hazards). Diagrams are mermaid, so they also render in the Forgejo UI..forgejo/workflows/pages.yml): builds the book on every push tomainand uploads apagesartifact. The VPS'spages-pullserves it at https://pages.hu-tao.dev/hutao/nixos-dotfiles/docs/; nothing on the VPS lists this repo. Runs onnix-node, so no node-on-PATH step.mdbook build, so a broken book fails on the commit and in PR CI rather than first in the main-only pages run. It catches what mdbook rejects (aSUMMARY.mdchapter with no file); a dead link inside a page still builds.install.shandsecrets.example.yamlpoint at the chapters instead of README sections that no longer exist.nix run .#docsserves the book with live reload; both dev shells gainmdbookandmdbook-mermaid.Checked
mdbook build docsin the CI shell; the new hook fails on a missing chapter and passes clean.pre-commit run --all-filesclean.Not yet
main, so its first real run is this merge.