docs: move the agent tool docs to 4-implementation/agent-tools
This commit is contained in:
parent
df8a82bc33
commit
aa227a95c1
1 changed files with 94 additions and 83 deletions
|
|
@ -521,10 +521,10 @@ in
|
|||
pkgs.runCommand "swarm-logs-docs-fresh" { nativeBuildInputs = [ pkgs.diffutils ]; }
|
||||
''
|
||||
${self.packages.${system}.swarm-logs}/bin/swarm-logs markdown-docs > generated.md
|
||||
if ! diff -u ${../docs/2-handbook/tools/swarm-logs-cli.md} generated.md; then
|
||||
if ! diff -u ${../docs/4-implementation/agent-tools/swarm-logs-cli.md} generated.md; then
|
||||
echo "" >&2
|
||||
echo "ERROR: docs/2-handbook/tools/swarm-logs-cli.md is out of date — regenerate it:" >&2
|
||||
echo " nix build .#swarm-logs && ./result/bin/swarm-logs markdown-docs > docs/2-handbook/tools/swarm-logs-cli.md" >&2
|
||||
echo "ERROR: docs/4-implementation/agent-tools/swarm-logs-cli.md is out of date — regenerate it:" >&2
|
||||
echo " nix build .#swarm-logs && ./result/bin/swarm-logs markdown-docs > docs/4-implementation/agent-tools/swarm-logs-cli.md" >&2
|
||||
exit 1
|
||||
fi
|
||||
touch "$out"
|
||||
|
|
@ -536,10 +536,10 @@ in
|
|||
pkgs.runCommand "swarm-metrics-docs-fresh" { nativeBuildInputs = [ pkgs.diffutils ]; }
|
||||
''
|
||||
${self.packages.${system}.swarm-metrics}/bin/swarm-metrics markdown-docs > generated.md
|
||||
if ! diff -u ${../docs/2-handbook/tools/swarm-metrics-cli.md} generated.md; then
|
||||
if ! diff -u ${../docs/4-implementation/agent-tools/swarm-metrics-cli.md} generated.md; then
|
||||
echo "" >&2
|
||||
echo "ERROR: docs/2-handbook/tools/swarm-metrics-cli.md is out of date — regenerate it:" >&2
|
||||
echo " nix build .#swarm-metrics && ./result/bin/swarm-metrics markdown-docs > docs/2-handbook/tools/swarm-metrics-cli.md" >&2
|
||||
echo "ERROR: docs/4-implementation/agent-tools/swarm-metrics-cli.md is out of date — regenerate it:" >&2
|
||||
echo " nix build .#swarm-metrics && ./result/bin/swarm-metrics markdown-docs > docs/4-implementation/agent-tools/swarm-metrics-cli.md" >&2
|
||||
exit 1
|
||||
fi
|
||||
touch "$out"
|
||||
|
|
@ -554,10 +554,10 @@ in
|
|||
pkgs.runCommand "hive-forge-docs-fresh" { nativeBuildInputs = [ pkgs.diffutils ]; }
|
||||
''
|
||||
${self.packages.${system}.hive-forge}/bin/hive-forge markdown-docs > generated.md
|
||||
if ! diff -u ${../docs/2-handbook/tools/forge-cli.md} generated.md; then
|
||||
if ! diff -u ${../docs/4-implementation/agent-tools/forge-cli.md} generated.md; then
|
||||
echo "" >&2
|
||||
echo "ERROR: docs/2-handbook/tools/forge-cli.md is out of date — regenerate it:" >&2
|
||||
echo " nix build .#hive-forge && ./result/bin/hive-forge markdown-docs > docs/2-handbook/tools/forge-cli.md" >&2
|
||||
echo "ERROR: docs/4-implementation/agent-tools/forge-cli.md is out of date — regenerate it:" >&2
|
||||
echo " nix build .#hive-forge && ./result/bin/hive-forge markdown-docs > docs/4-implementation/agent-tools/forge-cli.md" >&2
|
||||
exit 1
|
||||
fi
|
||||
touch "$out"
|
||||
|
|
|
|||
Loading…
Reference in a new issue