docs: glob error code pages and rehost devframe nav#316
Merged
Conversation
Replace `Array.from({ length: N }, ...)` with tinyglobby over the actual
`*.md` files in `docs/errors/` and `devframe/docs/errors/` so removed or
non-contiguous codes don't produce dead links. Merge the standalone
`sidebar.ts` into `devframe/docs/.vitepress/config.ts` and add a
`devframeNav(prefix)` export so the parent docs site can rehost the
DevFrame nav as a detailed dropdown instead of a single link. The
standalone devframe site now uses the same shared `guideItems()` to
keep both navs in sync.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Description
Array.from({ length: N }, ...)withtinyglobbyover the actual*.mdfiles indocs/errors/anddevframe/docs/errors/so the sidebar list survives non-contiguous codes (no dead links when a code is removed; no manual length bump when one is added).devframe/docs/.vitepress/sidebar.tsintoconfig.tsand add a newdevframeNav(prefix)export so the parent docs site can rehost devframe's nav./devframe/. Both the parent and the standalone devframe sites consume the same sharedguideItems()to stay in sync..vitepress/cacheignore fromdocs/.vitepress/cacheto**/.vitepress/cacheto also cover the standalone devframe site.Linked Issues
Additional context
tinyglobbydoes not guarantee sort order across platforms, so the helper applies an explicit.sort()on the discovered codes.