Repository navigation
docs: carry only the newest CLI release in llms-full.txt - #2415
Conversation
The CLI release notes page put every version into llms-full.txt, and the 0.2.0 section pushed the file past the suite's 500,000-character cap. llms-full.txt now carries the newest version and links the page for the rest; the page keeps every version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
There was a problem hiding this comment.
🟢 Approval recommended
The review surfaced no blocking or outstanding issues with the well-contained change, leaving nothing unresolved to prevent approval.
No open issues 🎉
What changed in this PR
This PR fixes the failing apps/docs production/preview deployment check where llms-full.txt had grown past its 500,000-character cap. The CLI release-notes page rendered the entire CHANGELOG.md into llms-full.txt, and each release added ~15k characters. The fix gives that page a dedicated, shorter Markdown variant for llms-full.txt (carrying only the newest version plus a link back to the full release-notes page), while the HTML page and its .md twin still list every version.
Changes:
- Extracted a
releaseMarkdown(release)helper and reused it inreleaseNotesMarkdown, then addedlatestReleaseNotesMarkdownthat emits only the newest release plus an "Earlier versions…" link, wired into the release-notes page viamarkdownPageData's existingllmsFullMarkdownargument. - Documented the new behavior with one sentence under the existing
llms-full.txtrule inapps/docs/AGENTS.md.
| File | Description |
|---|---|
apps/docs/lib/cli-reference.ts |
Refactors release-notes rendering into a shared releaseMarkdown helper and adds a newest-only latestReleaseNotesMarkdown passed as the llmsFullMarkdown variant for the release-notes page. |
apps/docs/AGENTS.md |
Adds a sentence noting that llms-full.txt carries only the newest CLI release-notes version. |
Notes from verification:
- The
releaseNotesMarkdownrefactor to...cliReleases.flatMap(releaseMarkdown)is behavior-preserving:releaseMarkdownreturns the same array of strings the inline version produced, so.mdand the HTML page still list all versions. source.ts:185routesllmsFullMarkdowntollms-full.txtonly (andmarkdownto the page/.mdtwin), so only the aggregated file is shortened.latestReleaseNotesMarkdownhandles the degenerate cases safely: a single release omits the "Earlier versions" link, and an emptyreleasesarray yields just the intro paragraph without crashing.- The back-link target
${indexUrl}/${releaseNotes}resolves to/docs/reference/cli/release-notes, the correct page URL. - No changeset is required:
@zitadel/docsis in the changesetignorelist and is marked private.
No blocking issues found.
Review effort: Balanced
Context
Since the 0.2.0 release (#2226), the docs suite's
llms-full.txt carries every page but the API operationstest (apps/docs/tests/pages.spec.ts) has been failing. The file is 500,950 characters, over the test's 500,000 cap. That failsmain's production deployment check forc5557cdbeand every PR's "docs (Preview)" check, such as #2414's. The live docs still serve the earlier 485,628-character file.The cause is
/docs/reference/cli/release-notes. It renders the CLI's wholeCHANGELOG.md, andllms-full.txtcarried all of it, so the 0.2.0 section added about 15,000 characters. Each release adds another section, so raising the cap would only delay the next failure.Summary
lib/cli-reference.ts: the release notes page now givesllms-full.txtits own, shorter Markdown, throughmarkdownPageData's existingllmsFullMarkdown. That Markdown holds the newest version only and ends "Earlier versions are on the release notes page." The page and its.mdstill list every version.apps/docs/AGENTS.md: one sentence under the existingllms-full.txtrule.Validation
moon run docs:typecheck docs:lint docs:buildpasses.moon run docs:e2eagainst the local build: 29 passed, including thellms-full.txttest.llms-full.txtis 374,667 characters, down from 500,950. Its release notes section has the 0.2.0 section and the link, and/docs/reference/cli/release-notes.mdstill has all 31 version headings.Release notes / changeset
No changeset required: the docs site is a private app.
Notes
The test's 500,000 cap is unchanged.
🤖 Generated with Claude Code