Navigation
Structure and customize your documentation’s navigation hierarchy
Introduction
The navigation
property in your docs.json defines how users will browse through your documentation. Think of it as the blueprint for your documentation’s menu structure.
With proper navigation configuration, you can organize your content into a logical hierarchy that makes it easy for users to find exactly what they’re looking for.
There are seven different navigation components you can use.
Pages
Pages are the most basic navigation component.
Groups
Groups allow you to group your pages.
Tabs
Tabs help separate different topics or sections of your documentation.
Anchors
Anchors are another way to section your content in the sidebar.
Dropdowns
Dropdowns separate sections of your content using a dropdown menu.
Versions
Versions partition your navigation into different versions.
Languages
Languages partition your navigation into different languages.
Navigation Components
Navigation components are used to organize your documentation into a logical hierarchy.
Pages
Pages are the most fundamental navigation component.
Pages is an array where each entry must be a reference to the path of a page file.
Groups
Groups allow you to group your pages. Groups can also be nested within each other.
Tabs
Tabs help distinguish between different topics or sections of your documentation.
Anchors
Anchors are another way to section your content. They show up on top of your side navigation.
The configuration is very similar to tabs.
While not required, we highly recommend that you set an icon
field as well.
Dropdowns
Dropdowns show up in the same place as anchors, but are consolidated into a single dropdown.
While not required, we also recommend that you set an icon for each dropdown item.
Versions
Versions can be leveraged to partition your navigation into different versions.
Languages
Languages can be leveraged to partition your navigation into different languages.
We currently support the following languages:
Arabic (ar)
Chinese (cn)
Chinese (zh-Hant)
English (en)
French (fr)
German (de)
Indonesian (id)
Italian (it)
Japanese (jp)
Korean (ko)
Portuguese (pt)
Portuguese (pt-BR)
Russian (ru)
Spanish (es)
Turkish (tr)
Nesting
It’s important to note that you can use any combination of anchors, tabs, and dropdowns - either one can be nested within each other interchangeably.
This way, you can create a very complex navigation structure that is easy to manage.
Was this page helpful?