docs: update default-theme sidebar type

pull/3715/head
littlecontrol 2 years ago
parent a6a7645e94
commit edd13771ff

@ -135,7 +135,7 @@ export default {
export type Sidebar = SidebarItem[] | SidebarMulti export type Sidebar = SidebarItem[] | SidebarMulti
export interface SidebarMulti { export interface SidebarMulti {
[path: string]: SidebarItem[] [path: string]: SidebarItem[] | { items: SidebarItem[]; base: string }
} }
export type SidebarItem = { export type SidebarItem = {
@ -162,6 +162,19 @@ export type SidebarItem = {
* If `false`, group is collapsible but expanded by default * If `false`, group is collapsible but expanded by default
*/ */
collapsed?: boolean collapsed?: boolean
/**
* Base path for the children items.
*/
base?: string
/**
* Customize text that appears on the footer of previous/next page.
*/
docFooterText?: string
rel?: string
target?: string
} }
``` ```

Loading…
Cancel
Save