Rename docs nav sections and surface the tool-calling pages - #64
Merged
Conversation
Gateway & Routing → Models & Routing, Observability & Evaluation → Evals & Tracing, and the tool-calling pages split out into a new MCP & Tool Calling section. Ten pages under gateway-and-routing/ were written but absent from its meta.json `pages` list, so fumadocs never rendered them in the sidebar. Seven of them (mcp-gateway, server-tools, advisor, subagent, fusion, websearch, web-fetch) form the new section; structured-outputs and guardrails join Models & Routing. acp-gateway moves with the tool pages but stays unlisted — its ACP v2 story isn't live yet. The section slug went models-and-routing → gateway-and-routing in 2026-08 and now back, so the old reverse redirects would have become self-redirects. Those are dropped and replaced with per-page 301s from gateway-and-routing/ to whichever section each page landed in, plus a wildcard for observability/ → evals-and-tracing/. Also updates check-docs.mjs's section list, llms.txt (which now mirrors the three sections and drops two redirect hops), the CLI overlays, and adds a note on the MCP gateway page distinguishing it from the origin MCP server in Usage — the two point in opposite directions and now sit in adjacent sections. Verified: pnpm build, pnpm test (83), pnpm lint:docs all pass, and a redirect audit confirms no self-redirects, loops, shadowed live pages, or broken internal /docs links. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Both predate the nav rename; the audit in the previous commit found them. /docs/changelog pointed at /docs/reference/changelog, which has never existed — the changelog is a top-level route (app/changelog), not a docs section. Retargeted it and its :slug* wildcard to /changelog. /docs/cookbook/local-models pointed at /docs/integrations/local-models, a page unpublished in 2026-08 when the model catalog absorbed it. It now lands on /docs/integrations/models, matching the two other local-models redirects. Added the same 301 for /docs/integrations/local-models, which was a live URL until the page was unpublished and has 404'd since. Co-Authored-By: Claude Opus 5 <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.
What
Three nav changes to the Documentation tab:
Why the new section already had content
Ten
.mdxfiles undergateway-and-routing/were written but missing from that folder'smeta.jsonpageslist, so fumadocs never rendered them in the sidebar. This surfaces them:mcp-gateway,server-tools,advisor,subagent,fusion,websearch,web-fetchstructured-outputsandguardrailsacp-gatewaymoves with the tool pages but stays unlisted; its ACP v2 story isn't live yetThe redirect trap
The section slug went
models-and-routing→gateway-and-routingin 2026-08, and this moves it back. The existing reverse 301s innext.config.tswould have become self-redirects (/docs/models-and-routing/provider-selection→ itself). Those are dropped and replaced with per-page 301s fromgateway-and-routing/to whichever section each page landed in, plus a wildcard forobservability/→evals-and-tracing/.Also
scripts/check-docs.mjshad the section list hardcoded — updated, orpnpm lint:docs(andprebuild) would failllms.txtnow mirrors the three sections and drops two redirect hopsusage/cli.mdxis generated from them)Verification
pnpm build,pnpm test(83 passing),pnpm lint:docsall pass/docslinks/docs/gateway-and-routing/server-tools→/docs/mcp-and-tool-calling/server-tools,/docs/observability/tracing→/docs/evals-and-tracing/tracing,/docs/features/toolsets→/docs/mcp-and-tool-calling/server-toolsTwo pre-existing dead redirects (
/docs/changelog,/docs/cookbook/local-models) surfaced during the audit and are left alone — both predate this change.🤖 Generated with Claude Code