Are you an LLM? You can read better optimized documentation at /reference/@cssdoc/markdown/functions/buildSidebar.md for this page in Markdown format
Function: buildSidebar()
ts
function buildSidebar(
entries,
baseHref?,
groups?): SidebarItem[];Defined in: emitters/markdown/src/build.ts:71
Build the sidebar tree (Overview, then a group per @group or kind). Grouping and order follow groupEntries; pass groups for an explicit label order.
Parameters
entries
readonly CssDocEntry[]
baseHref?
string = "/"
groups?
readonly string[]