Navigation
The top navigation bar provides quick access to major documentation areas. zpress supports automatic generation or explicit configuration.
Auto navigation
Set nav: 'auto' (the default) to generate one nav item per non-isolated top-level section:
This produces three nav items: Getting Started, Guides, and Reference. Sections with isolated: true are excluded from auto-generated nav.
Explicit navigation
Pass an array of NavItem objects for full control:
Dropdown menus
Nav items with items instead of link render as dropdown menus:
Isolated sections as dropdowns
Sections marked isolated: true get their own sidebar namespace. In auto nav mode, isolated sections are excluded from the main nav items. Use explicit nav if you want isolated sections represented as dropdowns.
Active state
In auto mode, nav items highlight based on the current URL matching the section's link or prefix. For explicit nav, use activeMatch to control highlighting:
The activeMatch value is a regex pattern tested against the current URL path.