Skip to content

fix: leave a page that isn't on release/10.x out of that line's menu - #422

Merged
CaffeinatedCoder merged 1 commit into
mainfrom
fix/420-docs-menu-per-line
Oct 25, 2026
Merged

CaffeinatedCoder merged 1 commit into
mainfrom
fix/420-docs-menu-per-line

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #420

Problem

Both lines are built with main's site/toc.yml (#417). A page that lands on main before its cherry-pick into release/10.x is in that menu but missing from the 10.x checkout. DocFX fails the 10.x build on the missing menu target, because warnings are errors. From then on, every docs PR into main fails Build (10.x), and the site stops publishing both lines until the cherry-pick lands. The #418 walkthrough would have been the first page to cause this.

Change

  • site/build.sh: when it builds a checkout other than its own, it writes that checkout's toc.yml from main's and leaves out each entry whose page doesn't exist there. It logs each one (not on this line, left out of its menu: docs/…). Section entries and absolute links are kept. For its own checkout the menu is used unchanged, so a missing page on main still fails.
  • CONTRIBUTING.md#the-documentation-site: a new page appears in the 10.x menu once it's cherry-picked.

Tests

I seeded a main-only page, docs/main-only.md, with a menu entry, in a scratch worktree, and built against a release/10.x worktree:

Build Result
Fixed, 10.x exit 0. Logs the page, and it's absent from the 10.x toc.json
Fixed, own checkout (11.x) exit 0. docs/main-only.html is built
Fix reverted, 10.x exit 255, InvalidFileLink … main-only.md: the defect
Fixed, entry to a page that exists nowhere, own checkout exit 255, InvalidFileLink … nowhere.md: the link check is still strict on main

For today's release/10.x the filtered menu is identical to toc.yml, because no page is main-only yet. The Docs workflow builds both lines on this PR.

🤖 Generated with Claude Code

…420)

Both lines are built with main's site/toc.yml. A page that lands on main
before its cherry-pick named a file the 10.x checkout doesn't have, so
DocFX failed that build, every docs PR failed, and the site stopped
publishing. When site/build.sh builds another checkout, it now drops the
menu entries whose page is missing there and logs them. Its own checkout's
menu is used as it is, so a missing page on main still fails.

Found-By: wiring the #418 walkthrough into the site menu
Defect-Class: one config shared across lines that don't have the same files

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 10.3.0 milestone Oct 25, 2026
@CaffeinatedCoder CaffeinatedCoder added bug Something isn't working area/release Versioning, changelogs, release wiring severity/medium Inconsistency or failure in a narrow scenario labels Oct 25, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit 739beae into main Oct 25, 2026
14 of 16 checks passed
@CaffeinatedCoder
CaffeinatedCoder deleted the fix/420-docs-menu-per-line branch October 25, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, release wiring bug Something isn't working severity/medium Inconsistency or failure in a narrow scenario

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs site: a page on main before its 10.x cherry-pick fails the 10.x build and stops publishing

1 participant