1 min read
Documentation & issue workflow
This project treats documentation updates and issue tracking as linked operations. Follow these steps when you touch docs:
- Claim the work via
bd- Run
bd ready --jsonto see unblocked items. - Use
bd update <id> --status in_progress --jsononce you start. - If you discover a new task while editing docs,
bd create "..." -p 1 --deps discovered-from:<parent-id> --jsonkeeps the graph tidy.
- Run
- Edit the Markdown under
docs/- Pull content into
docs/guide/or the generated folders (docs/cli,docs/schemas, etc.). - Keep ephemeral design notes (plans, designs, tests) under
history/so the repository root stays clean.
- Pull content into
- Regenerate the auto-docs
- Run
cargo xtask --features docs doc all(or the shorthandcargo xtask --features docs doc:all) to refresh CLI references, schemas, Arrow dumps, and the guide thatgat-mcp-docsserves. - The
docsfeature pulls in the heavier CLI/doc dependencies; leave it disabled for fast checks and only enable it when you need to regenerate outputs. - Optionally run
cargo xtask --features docs doc sitebefore releasing the builtsite/book/bundle. - Confirm that
docs/index.md,docs/README.md, and the new guide files sync with your changes.
- Run
- Preview the docs
- Run
scripts/mcp-onboard.sh(orcargo xtask --features docs doc allfollowed bygat-mcp-docs --docs docs --addr 127.0.0.1:4321) so the regenerated tree is served via MCP. - Open
docs/mcp/manifest.jsonafter the server starts to review the curated commands, datasets, and guide links that are available to every agent.
- Run
- Wrap up with
bd- Update the issue:
bd update <id> --status review --jsonor--status completedwhen merged. - Close the issue with
bd close <id> --reason "Completed" --jsononce everything lands.
- Update the issue:
Following this workflow keeps the docs/ tree in lockstep with the code, keeps cargo xtask doc all evergreen, and ensures bd stays authoritative for open work.