feat: replace docs section dropdown with Vercel-style breadcrumbs - #104
Conversation
Remove the centered "Docs" section picker from the header and make the article breadcrumb the primary wayfinding element instead: a tree-derived trail (Docs / Section / ... / Page) with chevron separators, muted sans styling, linked ancestors, and aria-current on the current page.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Mogplex PR ReviewStatus: No material issues found Reviewed PR #104 — replacing the docs section dropdown with breadcrumb-based wayfinding. No critical or blocking issues found. Correctness assessment: The Accessibility: The Cleanup: All newly-orphaned code (DocsSectionPicker, usePathname, isActivePath, docsSectionItems, picker CSS) was removed — no leftover dead code. CSS: Removal of Suggestion (non-blocking): The |
What
Removes the centered Docs ⌄ section picker from the docs header and makes the article breadcrumb the primary wayfinding element, Vercel-docs style:
Docs › Section › … › Page.Changes
src/components/docs-breadcrumbs.tsx(new) — server component that walks the fumadocs page tree to the current page.Docslinks to/, intermediate folders link to their index pages, last crumb is plain text witharia-current="page". Uses a small local trail walker because fumadocs'getBreadcrumbItemswithincludeRootlabels the root crumb with the tree title ("Mogplex Documentation") instead of the section name.src/components/docs-header.tsx— dropsDocsSectionPicker, its trigger/popover, and the now-unusedusePathname/isActivePathhelpers. Section navigation still exists via the sidebar tabs and mobile drawer.src/app/(docs)/[[...slug]]/page.tsx— disables fumadocs' built-in breadcrumb slot, rendersDocsBreadcrumbsabove the title.src/app/global.css— removes picker CSS; restyles.docs-breadcrumbfrom tiny mono/uppercase to 13px muted sans with chevron separators and hover states.src/lib/layout.shared.tsx— removes the orphaneddocsSectionItemsexport.Verified
/cli→Docs › CLI › Overview;/cli/concepts/architecture→Docs › CLI › Concepts › Architecture;/→Docs › Welcome to Mogplexpnpm lint,pnpm types:check,pnpm test(17/17),pnpm buildNeed help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.