Repository navigation
V1.1.1/fix not found - #7
Merged
Merged
Conversation
Generate a deduplicated page availability inventory in framework-views.json, merge missing API sections into shared root navigation, configure NGINX 302 fallback routing for unavailable HTML pages, and update framework-view.js to resolve destination-aware view links across navigation, search, and the framework selector.
Expand unit, container, Playwright, and Cuemon acceptance tests along with fixture APIs to verify page availability manifests, shared navigation merging, HTTP 302 fallback routing, and client-side link and selector resolution.
Update framework-views and test suite documentation to describe the availability manifest, shared root TOC merging, NGINX 302 fallback rules, and expanded browser and Cuemon test coverage.
[Medium impact] The PR appears safe to merge; both previous findings are addressed and no new actionable issues were found. SummaryThe PR adds destination-aware framework fallback and branded HTTP error pages. The latest changes address both previous findings:
No new actionable issues were found. Browser tests were inspected but not run. Reviews (4) · Last reviewed commit: "📝 update changelog for 1.1.1 release wi..." · Reviewed by Greptile |
Positional index matching in Merge-NavigationTocItems could resolve links to wrong siblings or fail when views reorder, omit, or nest entries differently. Matching by item name and normalized identity href within each parent scope keeps destinations accurate and skips ambiguous entries.
Add Pester coverage for reordered siblings, missing intermediate entries, nested parent scoping, ambiguous duplicate identities, and unnamed entries with framework precedence.
…/docfx into v1.1.1/fix-not-found
Use an ordinal string comparer for the ordered page availability dictionary in Get-FrameworkPageAvailability so paths differing only by case do not collide across framework views, and cover the behavior with a unit test.
Generate static DocFX error pages under _docfx-errors during the default view build, wire NGINX error_page routing for HTML navigation requests, and add client-side recovery actions for search, history, retries, and framework availability.
Update container, Pester unit, routing, and Cuemon integration checks for branded HTTP error pages and add a Playwright suite covering error statuses, navigation recovery, search, theming, and single-TFM behavior.
Document the generated NGINX HTTP error pages, recovery behavior, and test coverage across the root, framework-views, and test README files.
Load standalone docfx-http-error.js on generated error pages so template framework-view scripts requiring page metadata do not fail, and update retry navigation to force a fresh GET request when the target URL includes a fragment.
Verify that error recovery succeeds when framework-view.js expects docfx:framework-api metadata and that retry issues a fresh GET while preserving URL fragments after failed GET and POST requests.
Replace the Unreleased heading with the 1.1.1 release heading and date.
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.
This pull request introduces destination-aware framework view fallback so navigating to an API page unavailable in the currently selected framework resolves to the first available framework in precedence order rather than returning HTTP 404. It combines a build-time page availability inventory, shared root navigation merging, NGINX HTTP 302 fallback routing, and client-side link and selector resolution across multi-framework DocFX sites.
Framework View Generation and Routing:
Client-Side View Resolution:
Regression and Acceptance Coverage:
Documentation: