Skip to content

Stop committing generated guide pages so they cannot drift - #1256

Merged
DoodleBears merged 1 commit into
mainfrom
claude/docs-generated-drift
Oct 9, 2026
Merged

DoodleBears merged 1 commit into
mainfrom
claude/docs-generated-drift

Conversation

@DoodleBears

Copy link
Copy Markdown
Contributor

Generated guide pages were committed, so they drifted from their sources and every full pnpm test left them modified.

Closes #1255 · Claim: #1255 (comment) · Agent-Task: claude/local/docs-generated-drift

Change outline

  • Untrack four generated pages. scripts/sync-docs.mjs writes share-bot.mdx and update-deepseekbot.mdx (English and Chinese) from docs/*.md. Every other generated guide is in .gitignore; these four were committed. Give every Bot a Profile banner #1224 changed the Share a Bot sources without regenerating them, so the committed pair went stale. They are now removed from Git and ignored like the rest.
  • Why the tree got dirty. changelog-public-surfaces.test.ts runs astro build in place, and astro.config.ts calls syncDocs(), so each full test run rewrote the stale pair.
  • Regression test. apps/docs/test/generated-pages-untracked.test.ts fails if any sync-docs page output is tracked. I checked that it fails on the old index, listing the four files, and passes after the change.

Special things to note

  • Merge risk: two-way door. Revert this commit to restore the tracked copies. Small blast radius: the deployed docs and the product site (deepseekbot-site syncs from docs/*.md) are unaffected, because both read the sources, not these outputs. Review focus: whether any tool expects these four files in a fresh checkout before sync. I found none: deepseekbot-guides-moved.test.ts takes slugs from PAGES.

No UI change. Verified locally: apps/docs tests (14 files, 90 tests) pass and leave the tree clean; lint, format and typecheck pass.

🤖 Generated with Claude Code

sync-docs generates the Share a Bot and Update DeepSeekBot guide pages
from docs/*.md, but unlike every other generated guide they were
committed. #1224 changed the Share a Bot sources without regenerating
them, so the committed pair went stale, and the in-place astro build in
changelog-public-surfaces.test.ts rewrote them on every full test run.

Untrack and ignore the four outputs, and fail a test whenever any
sync-docs page output is tracked.

Issue: #1255
Agent-Task: claude/local/docs-generated-drift

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 213f1b91-8b6d-44b7-a10b-a238f4f85cac
📥 Commits

Reviewing files that changed from the base of the PR and between 4347e97 and 6b079f0.

📒 Files selected for processing (6)
  • .gitignore
  • apps/docs/src/content/docs-zh/docs/share-bot.mdx
  • apps/docs/src/content/docs-zh/docs/update-deepseekbot.mdx
  • apps/docs/src/content/docs/docs/share-bot.mdx
  • apps/docs/src/content/docs/docs/update-deepseekbot.mdx
  • apps/docs/test/generated-pages-untracked.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DoodleBears
DoodleBears merged commit 08e3fd7 into main Oct 9, 2026
2 checks passed
@DoodleBears
DoodleBears deleted the claude/docs-generated-drift branch October 9, 2026 05:42
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.

Docs: generated Share a Bot and Update guides are committed and drift from their sources

1 participant