Skip to content

Commit c4ae9d3

Browse files
author
李小控
authored
docs: update default-theme sidebar type (#3715)
1 parent 54c46e7 commit c4ae9d3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Diff for: docs/reference/default-theme-config.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default {
135135
export type Sidebar = SidebarItem[] | SidebarMulti
136136

137137
export interface SidebarMulti {
138-
[path: string]: SidebarItem[]
138+
[path: string]: SidebarItem[] | { items: SidebarItem[]; base: string }
139139
}
140140

141141
export type SidebarItem = {
@@ -162,6 +162,19 @@ export type SidebarItem = {
162162
* If `false`, group is collapsible but expanded by default
163163
*/
164164
collapsed?: boolean
165+
166+
/**
167+
* Base path for the children items.
168+
*/
169+
base?: string
170+
171+
/**
172+
* Customize text that appears on the footer of previous/next page.
173+
*/
174+
docFooterText?: string
175+
176+
rel?: string
177+
target?: string
165178
}
166179
```
167180

0 commit comments

Comments
 (0)