Skip to content

Commit f27cbaa

Browse files
committed
fix: lint error
1 parent 7e48ec5 commit f27cbaa

File tree

2 files changed

+55
-20
lines changed

2 files changed

+55
-20
lines changed

docs/.vitepress/config.ts

+37-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,43 @@ function sidebarGuide() {
7878
items: [
7979
{ text: 'What is VitePress?', link: '/guide/what-is-vitepress' },
8080
{ text: 'Getting Started', link: '/guide/getting-started' },
81-
{ text: 'Configuration', link: '/guide/configuration' },
82-
{ text: 'Deploying', link: '/guide/deploying' }
81+
{
82+
text: 'Configuration',
83+
link: '/guide/configuration',
84+
collapsible: true,
85+
collapsed: true,
86+
items: [
87+
{ text: 'What is VitePress?', link: '/guide/what-is-vitepress' },
88+
{ text: 'Getting Started', link: '/guide/getting-started' },
89+
{ text: 'Configuration', link: '/guide/configuration' },
90+
{ text: 'Deploying', link: '/guide/deploying' }
91+
]
92+
},
93+
{
94+
text: 'Deploying',
95+
collapsible: true,
96+
collapsed: true,
97+
items: [
98+
{ text: 'What is VitePress?', link: '/guide/what-is-vitepress' },
99+
{ text: 'Getting Started', link: '/guide/getting-started' },
100+
{ text: 'Configuration', link: '/guide/configuration' },
101+
{
102+
text: 'Deploying',
103+
link: '/guide/deploying',
104+
collapsible: true,
105+
collapsed: true,
106+
items: [
107+
{
108+
text: 'What is VitePress?',
109+
link: '/guide/what-is-vitepress'
110+
},
111+
{ text: 'Getting Started', link: '/guide/getting-started' },
112+
{ text: 'Configuration', link: '/guide/configuration' },
113+
{ text: 'Deploying', link: '/guide/deploying' }
114+
]
115+
}
116+
]
117+
}
83118
]
84119
},
85120
{

types/default-theme.d.ts

+18-18
Original file line numberDiff line numberDiff line change
@@ -149,24 +149,24 @@ export namespace DefaultTheme {
149149
export type SidebarItem =
150150
| { text: string; link: string }
151151
| {
152-
text: string;
153-
link?: string;
154-
items: SidebarItem[];
155-
156-
/**
157-
* If `true`, toggle button is shown.
158-
*
159-
* @default false
160-
*/
161-
collapsible?: boolean
162-
163-
/**
164-
* If `true`, collapsible group is collapsed by default.
165-
*
166-
* @default false
167-
*/
168-
collapsed?: boolean
169-
}
152+
text: string
153+
link?: string
154+
items: SidebarItem[]
155+
156+
/**
157+
* If `true`, toggle button is shown.
158+
*
159+
* @default false
160+
*/
161+
collapsible?: boolean
162+
163+
/**
164+
* If `true`, collapsible group is collapsed by default.
165+
*
166+
* @default false
167+
*/
168+
collapsed?: boolean
169+
}
170170

171171
// edit link -----------------------------------------------------------------
172172

0 commit comments

Comments
 (0)