Skip to content

docs: carry only the newest CLI release in llms-full.txt - #2415

Merged
fforootd merged 1 commit into
mainfrom
claude/docs-llms-full-release-notes
Oct 27, 2026
Merged

fforootd merged 1 commit into
mainfrom
claude/docs-llms-full-release-notes

Conversation

@fforootd

Copy link
Copy Markdown
Member

Context

Since the 0.2.0 release (#2226), the docs suite's llms-full.txt carries every page but the API operations test (apps/docs/tests/pages.spec.ts) has been failing. The file is 500,950 characters, over the test's 500,000 cap. That fails main's production deployment check for c5557cdbe and 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 whole CHANGELOG.md, and llms-full.txt carried 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 gives llms-full.txt its own, shorter Markdown, through markdownPageData's existing llmsFullMarkdown. That Markdown holds the newest version only and ends "Earlier versions are on the release notes page." The page and its .md still list every version.
  • apps/docs/AGENTS.md: one sentence under the existing llms-full.txt rule.

Validation

  • moon run docs:typecheck docs:lint docs:build passes.
  • moon run docs:e2e against the local build: 29 passed, including the llms-full.txt test.
  • On the local build, llms-full.txt is 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.md still 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

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>
Copilot AI balanced review requested due to automatic review settings October 27, 2026 23:47
@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cloud Ready Ready Preview Oct 27, 2026 11:49pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-27T23:49:33.148783Z c5e048a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ No Changeset found

Latest commit: c5e048a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 in releaseNotesMarkdown, then added latestReleaseNotesMarkdown that emits only the newest release plus an "Earlier versions…" link, wired into the release-notes page via markdownPageData's existing llmsFullMarkdown argument.
  • Documented the new behavior with one sentence under the existing llms-full.txt rule in apps/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 releaseNotesMarkdown refactor to ...cliReleases.flatMap(releaseMarkdown) is behavior-preserving: releaseMarkdown returns the same array of strings the inline version produced, so .md and the HTML page still list all versions.
  • source.ts:185 routes llmsFullMarkdown to llms-full.txt only (and markdown to the page/.md twin), so only the aggregated file is shortened.
  • latestReleaseNotesMarkdown handles the degenerate cases safely: a single release omits the "Earlier versions" link, and an empty releases array 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/docs is in the changeset ignore list and is marked private.

No blocking issues found.

Review effort: Balanced

Merged via the queue into main with commit 37ea43a Oct 27, 2026
19 checks passed
@fforootd
fforootd deleted the claude/docs-llms-full-release-notes branch October 27, 2026 23:51
@github-project-automation github-project-automation Bot moved this from Inbox to Done in Engineering Kanban Oct 27, 2026

This branch was successfully deployed

1 active deployment
Preview — c5e048a2 Deployed Oct 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants