Sidebar Links
Customise sidebar navigation links on Docs Layout.
Overview
Sidebar items are rendered from the page tree you passed to <DocsLayout />
.
For source.pageTree
, it generates the tree from your file structure, you can see Routing for available patterns.
You may hardcode it too:
Sidebar Tabs
Tabs are folders with tab-like behaviours, only the content of opened tab will be visible.
Fumadocs provide a dropdown component to switch between tabs, it will be hidden unless one of its items is active.
You can add items by marking folders as Root Folders, create a meta.json
file in the folder:
Or specify them explicitly:
Set it to false
to disable:
Want further customisations?
You can specify a banner
to the Docs Layout component.
Decoration
Change the icon/styles of tabs.
How is this guide?