Navigation overview

Understand the layers that make up your site's navigation

以 Markdown 格式查看

Navigation nests from narrowest to broadest: pages, sections, tabs, versions, and products. Every layer is optional, and any combination of them is valid.

Outer layers wrap inner ones: a product contains versions, a version contains tabs, and a tab contains sections. Each layer a page sits under adds a segment to its URL. You can rename or drop any segment, and a page’s own frontmatter can override its title, slug, and layout.

Other sidebar entries

A sidebar can also hold three entries that aren’t layers:

  • An API Reference generated from your API definition.
  • A changelog that renders a dated timeline of entries.
  • A link pointing at an external URL.

Where navigation lives

The navigation key holds your sidebar structure, and which file holds that key depends on the layers you use. An unversioned single-product site keeps it in docs.yml. Adding products or versions moves it into a separate .yml file for each one.

Beyond the sidebar

Navbar links, the logo, the footer, and site-wide layout are site-level settings rather than navigation entries. How readers search across your navigation is controlled by search configuration.