Skip to content

Function: mergeCssSidebar()

ts
function mergeCssSidebar(
   existing, 
   label, 
   cssItems): SidebarItem[];

Defined in: plugins/typedoc/src/emit.ts:48

Merge a CSS section into an existing TypeDoc sidebar, replacing any prior section with the same label.

Parameters

existing

SidebarItem[]

The parsed typedoc-sidebar.json array.

label

string

The CSS section's label.

cssItems

SidebarItem[]

The CSS sidebar items (from buildSidebar).

Returns

SidebarItem[]

A new sidebar array with the CSS section appended.

Released under the MIT License