docs: the handbook follows the three layers: swarm, hives, agents
The handbook's sections were agent-lifecycle, integrations, swarm, tools, trust-boundary and web-ui, which do not follow how the system is built, so a reader could not tell which layer a page is about. Its pages now sit in swarm/, hives/ and agents/, with the accounts an agent can hold outside the system in external-accounts/. - swarm/: forge, matrix and the knowledge repo join the swarm pages, and so does the swarmctl reference. - hives/: the dashboard, hivectl and its reference, and the operator/agent boundary, with a README that takes over the old web-ui and tools pages. - agents/: the roster, persistence, config changes, the agent's own web page (was web-ui/agent) and the security model, with a README. - external-accounts/: GitHub and GitLab. Pages are moved whole; none is split yet. Every reference follows: relative links in the docs, `docs/2-handbook/...` paths in code comments, the nix checks that regenerate the CLI references and the ignore list, and docs/README.md, whose handbook section is now by layer.
This commit is contained in:
parent
263b21021a
commit
0e84fe8bc4
1 changed files with 393 additions and 363 deletions
|
|
@ -473,7 +473,7 @@ in
|
|||
};
|
||||
|
||||
# `hivectl` CLI reference freshness check. The committed
|
||||
# markdown at `docs/2-handbook/tools/hivectl-cli.md` is the rendered
|
||||
# markdown at `docs/2-handbook/hives/hivectl-cli.md` is the rendered
|
||||
# output of the hidden `hivectl markdown-docs` subcommand
|
||||
# (clap-markdown walks the binary's own command tree). This
|
||||
# check regenerates it from the built binary and fails if the
|
||||
|
|
@ -485,13 +485,13 @@ in
|
|||
# makes this check unsatisfiable rather than merely stale.
|
||||
# Regenerate locally with:
|
||||
# nix build .#default
|
||||
# ./result/bin/hivectl markdown-docs > docs/2-handbook/tools/hivectl-cli.md
|
||||
# ./result/bin/hivectl markdown-docs > docs/2-handbook/hives/hivectl-cli.md
|
||||
hivectl-docs = pkgs.runCommand "hivectl-docs-fresh" { nativeBuildInputs = [ pkgs.diffutils ]; } ''
|
||||
${self.packages.${system}.default}/bin/hivectl markdown-docs > generated.md
|
||||
if ! diff -u ${../docs/2-handbook/tools/hivectl-cli.md} generated.md; then
|
||||
if ! diff -u ${../docs/2-handbook/hives/hivectl-cli.md} generated.md; then
|
||||
echo "" >&2
|
||||
echo "ERROR: docs/2-handbook/tools/hivectl-cli.md is out of date — regenerate it:" >&2
|
||||
echo " nix build .#default && ./result/bin/hivectl markdown-docs > docs/2-handbook/tools/hivectl-cli.md" >&2
|
||||
echo "ERROR: docs/2-handbook/hives/hivectl-cli.md is out of date — regenerate it:" >&2
|
||||
echo " nix build .#default && ./result/bin/hivectl markdown-docs > docs/2-handbook/hives/hivectl-cli.md" >&2
|
||||
exit 1
|
||||
fi
|
||||
touch "$out"
|
||||
|
|
@ -504,10 +504,10 @@ in
|
|||
# nix/packages/default.nix's comment on it).
|
||||
swarmctl-docs = pkgs.runCommand "swarmctl-docs-fresh" { nativeBuildInputs = [ pkgs.diffutils ]; } ''
|
||||
${self.packages.${system}.swarmctl}/bin/swarmctl markdown-docs > generated.md
|
||||
if ! diff -u ${../docs/2-handbook/tools/swarmctl-cli.md} generated.md; then
|
||||
if ! diff -u ${../docs/2-handbook/swarm/swarmctl-cli.md} generated.md; then
|
||||
echo "" >&2
|
||||
echo "ERROR: docs/2-handbook/tools/swarmctl-cli.md is out of date — regenerate it:" >&2
|
||||
echo " nix build .#swarmctl && ./result/bin/swarmctl markdown-docs > docs/2-handbook/tools/swarmctl-cli.md" >&2
|
||||
echo "ERROR: docs/2-handbook/swarm/swarmctl-cli.md is out of date — regenerate it:" >&2
|
||||
echo " nix build .#swarmctl && ./result/bin/swarmctl markdown-docs > docs/2-handbook/swarm/swarmctl-cli.md" >&2
|
||||
exit 1
|
||||
fi
|
||||
touch "$out"
|
||||
|
|
|
|||
Loading…
Reference in a new issue