Repository navigation
fix: leave a page that isn't on release/10.x out of that line's menu - #422
Merged
Merged
Conversation
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #420
Problem
Both lines are built with
main'ssite/toc.yml(#417). A page that lands onmainbefore its cherry-pick intorelease/10.xis 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 intomainfailsBuild (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'stoc.ymlfrommain'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 onmainstill fails.Tests
I seeded a
main-only page,docs/main-only.md, with a menu entry, in a scratch worktree, and built against arelease/10.xworktree:toc.jsondocs/main-only.htmlis builtInvalidFileLink … main-only.md: the defectInvalidFileLink … nowhere.md: the link check is still strict onmainFor today's
release/10.xthe filtered menu is identical totoc.yml, because no page ismain-only yet. The Docs workflow builds both lines on this PR.🤖 Generated with Claude Code