scripts/generate-llms.ts
Ghost doc. Real utility script at
scripts/generate-llms.ts: an internal script that maintains the docs, not a smithers-orchestrator workflow example.Source
The script is self-contained (~300 lines): its own frontmatter parser, hardcoded manifest arrays, andrenderPage helper, no external imports.
See scripts/generate-llms.ts for the full source.
Running
Key Details
- Follows the
llms.txtconvention: produces a family of text files for AI model context. - Writes the current
llms-*.txtbundle set plus version-pinnedllms-v<version>.txtandllms-full-v<version>.txtartifacts for exact-release lookups. - Page lists are hardcoded manifest arrays in the script; edit them to change each fragment’s contents.
- Strips YAML frontmatter, converts MDX bodies to Markdown, and emits each section as
## title+ optional blockquote description + raw MDX body, separated by---.