Navigation
Overview
Navigation in ciderpress has two layers: the top navigation bar that provides quick access to major documentation areas, and landing pages that are auto-generated for sections with children. The nav bar controls top-level wayfinding. Landing pages provide section-level entry points with card grids.
Top Navigation Bar
Auto navigation
Set nav: 'auto' (the default) to render the first three non-standalone sections plus every standalone section (workspace dropdowns) in the topbar:
This produces three nav items: Getting Started, Guides, and Reference. Auto mode caps the topbar at the first three non-standalone sections; any section with standalone: true is always added on top of that cap (as a workspace dropdown).
Explicit navigation
Pass an array of NavItem objects for full control:
Dropdown menus
Nav items with items instead of link render as dropdown menus:
Active state
In auto mode, nav items highlight based on the current URL matching the section's path. For explicit nav, use activeMatch:
The activeMatch value is a regex pattern tested against the current URL path.
Landing Pages
Sections with children but no explicit page source automatically get a generated landing page displaying cards that link to child entries.
When landing pages generate
A landing page is created when a section has:
- A
pathfield (defines the landing page URL) - Child entries (via
itemsor globinclude) - No
includepointing to a single file (that would make it a regular page)
Navigating to /guides shows a landing page with cards for each discovered guide.
Disabling landing pages
The landing field controls whether the auto-generated landing page is created. It defaults to true when omitted. Set landing: false to disable landing page generation entirely for a section:
Overview file promotion
When using recursive: true, the entryFile field controls which filename is promoted to the section header (default: "overview"). That file's content becomes the section's landing page instead of auto-generated cards.
Section cards
Sections without workspace metadata display simple cards showing:
- Entry name (from
title) - Description (from child page frontmatter
description) - Icon colors that rotate automatically across cards
Workspace cards
When workspace metadata (from workspaces) matches a section by path, the landing page uses workspace-style cards showing:
- Icon with color styling
- Scope label (e.g.
apps/) - Name and description
- Technology tag badges
- Optional deploy badge
See the Workspaces concept for workspace configuration.
Controlling card content
Card descriptions are resolved in this order (highest priority first):
card.descriptionon the entrydescriptionfrom the source file's frontmatter- The section's own
descriptionfield on the config entry
Design Decisions
- Auto nav as default — most sites want one nav item per top-level section. Auto mode eliminates boilerplate while explicit mode provides full control when needed.
- Landing pages over empty sections — sections with children should never show a blank page. Auto-generated card grids give users an immediate overview of what's inside.
- Workspace-aware cards — when monorepo metadata exists, landing pages use richer cards with icons, tags, and badges rather than plain text links.
References
- Configuration reference — NavItem
- Configuration reference — CardConfig
- Workspaces — monorepo workspace metadata
- Content — sections and page definitions