Skip to content

V1.1.1/fix not found - #7

Merged
gimlichael merged 16 commits into
mainfrom
v1.1.1/fix-not-found
Nov 26, 2026
Merged

gimlichael merged 16 commits into
mainfrom
v1.1.1/fix-not-found

Conversation

@gimlichael

Copy link
Copy Markdown
Member

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:

  • Derives a deduplicated page availability inventory from generated native DocFX HTML output and embeds it in the framework-views manifest.
  • Merges unresolved API entries in shared root navigation from the highest-precedence framework where those pages exist.
  • Adds ordered NGINX fallback rules that return HTTP 302 to the first available framework for missing API HTML pages and directory indexes while preserving unrelated query parameters and returning HTTP 404 for genuinely missing pages, non-HTML API resources, and internal framework paths.

Client-Side View Resolution:

  • Loads the availability manifest in the template script to rewrite global navigation, TOC, breadcrumb, search, and ordinary internal API links directly to an available framework while preserving query strings, fragments, and native new-tab behavior.
  • Updates the framework selector to follow the same unified precedence order across both default and non-default views.

Regression and Acceptance Coverage:

  • Expands unit, container, Playwright browser, and Cuemon acceptance suites with multi-section fixtures covering default and non-default fallback, JavaScript-disabled HTTP 302 redirects, new-tab navigation, and strict view isolation.

Documentation:

  • Updates the framework-views and test suite guides to document unified fallback precedence, the availability manifest, shared navigation merging, NGINX routing rules, and the expanded browser and Cuemon test coverage.

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.
@gimlichael gimlichael self-assigned this Nov 26, 2026
@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; both previous findings are addressed and no new actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both previous findings are addressed and no new actionable issues were found.

Summary

The PR adds destination-aware framework fallback and branded HTTP error pages.

The latest changes address both previous findings:

  • API links now open in the first framework that contains their destination.
  • Generated NGINX sites now show branded error pages with recovery options.

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

aicia-bot and others added 9 commits November 26, 2026 12:47
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.
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.
Comment thread framework-views/http-error.js Resolved
Comment thread framework-views/DocfxHttpErrors.ps1 Resolved
aicia-bot and others added 4 commits November 26, 2026 13:44
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.
@gimlichael
gimlichael merged commit 556c55b into main Nov 26, 2026
11 checks passed
@gimlichael
gimlichael deleted the v1.1.1/fix-not-found branch November 26, 2026 12:54
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.

2 participants