Repository navigation
fix(view): repoint /wheels/guides at guides.wheels.dev (closes #2263) - #2288
Merged
Merged
Conversation
The GitBook source tree under docs/src/ was deleted in PR #2189 when the wheels.dev publishing pipeline was retired, but the in-app /wheels/guides endpoint still read from it — every fileExists() returned false, so the page silently rendered the "Select a guide from the navigation menu" placeholder fallback. Rewrite guides.cfm to redirect HTML callers to guides.wheels.dev with a meta-refresh + visible section list, and return a sidebar-derived JSON summary to AI/MCP callers. ai.cfm::getGuidesSummary() now flattens the Starlight sidebar into 79 guide entries with external URLs. Delete the GitBook-era renderer (layouts/guides.cfm, layouts/guides-plain.cfm, DocsHelper.cfc) — ~700 lines no longer used. Runtime-verified via LuCLI: HTML landing renders, JSON returns the 10 top-level sections + deep-link URL for ?path=, /wheels/ai lists 79 flattened guides. 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.
Summary
/wheels/guideswas showing only the placeholder "Select a guide from the navigation menu" because #2189 retired the GitBook source tree atdocs/src/but left the in-app viewer reading from it.vendor/wheels/public/docs/guides.cfmto redirect HTML callers toguides.wheels.dev(meta-refresh + visible section list) and return a sidebar-derived JSON summary for?format=json.ai.cfm::getGuidesSummary()into 79 external-URL entries so/wheels/aiand MCP consumers stop returning an empty list.layouts/guides.cfm,layouts/guides-plain.cfm,DocsHelper.cfc).Closes #2263.
Test plan
curl /wheels/guides→ HTML landing with<meta http-equiv="refresh" content="3;url=https://guides.wheels.dev/v4-0-0-snapshot/">and section list rendered fromweb/sites/guides/src/sidebars/v4-0-0-snapshot.jsoncurl /wheels/guides?format=json→{title, url, external:true, sections:[10]}curl '/wheels/guides?path=digging-deeper/packages&format=json'→url: https://guides.wheels.dev/v4-0-0-snapshot/digging-deeper/packages/curl /wheels/ai?format=json→documentation.guides= 79 flattened entries withhttps://guides.wheels.dev/...URLsPublicComponentProductionSpecstill passes (guides()handler inPublic.cfcis unchanged and still calls\$blockInProduction())Notes
web/dir) gracefully returnsections: []— guides.wheels.dev remains the canonical source.guideImage()handler +/wheels/guides-assets/...route are intentionally left in place; they already 404 safely for missing assets and are tested byPathTraversalSpec. Unrelated to this bug.🤖 Generated with Claude Code