Skip to content

Rename build-catalog to build-llms, and stop claiming /catalog/ - #201

Closed
abernier wants to merge 1 commit into
mainfrom
rename-build-llms
Closed

Rename build-catalog to build-llms, and stop claiming /catalog/#201
abernier wants to merge 1 commit into
mainfrom
rename-build-llms

Conversation

@abernier

@abernier abernier commented Aug 14, 2026

Copy link
Copy Markdown
Member

Closes #193.

Why

The name was contradicted by the output. bin/lib/render.mjs claimed in its header that /catalog/<name>.md sits next to the JSON, and test/turbo-cache.test.ts said the website build emits /catalog/*.{json,md} — but the script writes to apps/website/public/examples/. The word "catalog" no longer named anything the script emits.

"llms" names the audience instead, which is what unifies the three outputs: llms.txt, /examples/<name>.md, /examples/<name>.json, all served to the pmndrs docs MCP server and to rel="alternate" on every example page.

What

From To
bin/build-catalog.mjs bin/build-llms.mjs
bin/lib/render.mjs bin/lib/render-llms.mjs
test/render.test.ts test/render-llms.test.ts

The eight references the issue listed, plus a ninth it missed: the .gitignore comment above apps/website/public/examples/ also named build-catalog.mjs.

Verification

  • The generated output is byte-identical: the generator run on this branch and on a main worktree both hash af630a0e.
  • pnpm check — green.
  • pnpm test:turbo — 55/55.

Pure refactor, no behaviour change. It touches turbo.json inputs, so it busts the website build cache once.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YQmbpRu6oCNrLiUQvhz5x6


Position 1 of the stack: #201#203#204.

The name was contradicted by the output. `bin/lib/render.mjs` claimed in its
header that `/catalog/<name>.md` sits next to the JSON, and
`test/turbo-cache.test.ts` said the website build emits `/catalog/*.{json,md}`
-- but the script writes to `apps/website/public/examples/`. The word
"catalog" no longer named anything the script emits.

"llms" names the audience instead, which is what unifies the three outputs:
`llms.txt`, `/examples/<name>.md`, `/examples/<name>.json`, all served to the
pmndrs docs MCP server and to `rel="alternate"` on every example page.

    bin/build-catalog.mjs -> bin/build-llms.mjs
    bin/lib/render.mjs    -> bin/lib/render-llms.mjs
    test/render.test.ts   -> test/render-llms.test.ts

Pure refactor: the generated output is byte-identical. The `.gitignore`
comment is a ninth reference the issue did not list.

It touches `turbo.json` inputs, so it busts the website build cache once.

Closes #193

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YQmbpRu6oCNrLiUQvhz5x6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename build-catalog to build-llms, and stop claiming /catalog/

1 participant