File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# Exit immediately if a command exits with a non-zero status.
44set -e
55
6- echo " --- Cloning external spec repository ---"
7- # Clean up old clones and fetch the latest spec repo
6+ echo " --- Cleaning up previous build artifacts ---"
7+ # This is the new, crucial step. It removes the output of the last build.
8+ rm -rf site
89rm -rf tmp-spec-repo
10+
11+ echo " --- Cloning external spec repository ---"
12+ # Fetch the latest spec repo
913git clone --depth 1 https://github.com/agentcommunity/AgentInterfaceDiscovery tmp-spec-repo
1014
1115echo " --- Moving spec docs into place ---"
12- # Clean up the old spec files to prevent nesting on rebuild
16+ # Clean up the old spec files link/folder to prevent nesting on rebuild
1317rm -rf docs/aid
1418# Move the markdown files into the docs directory for MkDocs to find
1519mv tmp-spec-repo/docs/aid docs/aid
@@ -23,4 +27,4 @@ echo "--- Staging canonical JSON Schema ---"
2327mkdir -p site/schema/v1
2428cp tmp-spec-repo/packages/aid-schema/aid.schema.json site/schema/v1/aid.schema.json
2529
26- echo " --- Build complete ---"
30+ echo " --- Build complete ---"
You can’t perform that action at this time.
0 commit comments