feat(docs): catalog auto-generation script and LLM layer (Plan 10 Phase C)#18
Merged
Conversation
…se C) Add website/scripts/generate-catalog.mjs that reads catalog/*/meta.yaml source files and regenerates data tables in catalog MDX pages between marker comments, plus outputs website/public/catalog.json with all 57 catalog items. Configure starlight-llms-txt plugin with curated Bonsai description and custom topic bundles (concepts, commands, catalog, configuration). Fix data drift in skills.mdx for design-guide, review-checklist, and test-strategy entries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a catalog generation script that reads
catalog/*/meta.yamlsource files and auto-generates data tables in the docs site catalog pages, plus a machine-readablecatalog.json. Configure thestarlight-llms-txtplugin with curated Bonsai-specific content and 4 custom topic bundles.Changes
website/scripts/generate-catalog.mjs— Node.js script that reads all catalog meta.yaml/agent.yaml files, regenerates tables between MDX marker comments in 7 catalog pages, and outputspublic/catalog.jsonwebsite/package.json— Addedgenerate:catalognpm scriptwebsite/astro.config.mjs— ConfiguredstarlightLlmsTxt()with project name, description, details, and 4 custom sets (Concepts, Commands, Catalog, Configuration)website/public/catalog.json— Generated JSON dump of all 57 catalog items with full metadatawebsite/src/content/docs/catalog/*.mdx— Added{/* CATALOG-TABLE-START/END */}markers around data tables; fixed data drift in skills.mdx (design-guide description/agents, review-checklist agents, test-strategy agents); sorted sensor table alphabeticallyPlan
Plan 10, Phase C: station/Playbook/Plans/Active/10-docs-site.md
Verification
npm run generate:catalog— runs cleanly, reports 57 itemsnpm run build— builds without errors (45 pages, all links valid)_llms-txt/concepts.txt,commands.txt,catalog.txt,configuration.txt🤖 Generated with Claude Code