Documentation Levels
Slingshot keeps package docs in four lanes so ownership stays clear and automation does not stomp on trusted guidance.
Generated
Section titled “Generated”- Rebuilt by automation.
- Best for inventories, package metadata, exports, scripts, and other facts.
- Treat this lane as disposable output.
AI Draft
Section titled “AI Draft”- Good for first-pass explanations, summaries, and example-heavy drafts.
- Humans can replace or rewrite this lane at any time.
- Use it to move from blank page to useful starting point quickly.
Human Guide
Section titled “Human Guide”- Use for architecture, decisions, invariants, migration notes, and trusted guidance.
- This is the authoritative lane.
- Anything here should survive automation runs unchanged.
- Use for rough notes, investigation breadcrumbs, and reminders.
- Split a notes lane into more files when a topic deserves its own page.
- Put personal untracked notes in
private.mdinside anynotes/folder.
Package Layout
Section titled “Package Layout”Every package uses the same shape:
docs/ generated/ ai/ human/ notes/The root @lastshotlabs/slingshot package uses the same layout under docs/package/.
Workflow
Section titled “Workflow”- Run
bun run docs:syncto scaffold missing docs folders and sync package docs into the Astro site. - Run
bun run docs:apito rebuild API reference pages from exported TypeScript entrypoints. - Run
bun run docs:buildto assemble the full site.
bun run docs:generate runs the sync and API steps together.