Skip to main content

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, and renderPage helper, no external imports. See scripts/generate-llms.ts for the full source.

Running

Key Details

  • Follows the llms.txt convention: produces a family of text files for AI model context.
  • Writes the current llms-*.txt bundle set plus version-pinned llms-v<version>.txt and llms-full-v<version>.txt artifacts 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 ---.