buildApiNavigation
functionfunction buildApiNavigation(
docs: ApiDocs,
options?: { singlePackage?: boolean }
): NavigationItem[];Build navigation items for the sidebar from API docs.
Groups exports by package, with individual export links as children.
When singlePackage is true and exactly one package exists, the navigation
is flattened: export items appear at the top level without a package grouping
node.
PARAMETERS
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| docs | ApiDocs | — |
| options? | { singlePackage?: boolean } | — |