Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Sep 22, 2022
1 parent 4386900 commit 8607fe1
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 20 deletions.
39 changes: 37 additions & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,43 @@ function sidebarGuide() {
items: [
{ text: 'What is VitePress?', link: '/guide/what-is-vitepress' },
{ text: 'Getting Started', link: '/guide/getting-started' },
{ text: 'Configuration', link: '/guide/configuration' },
{ text: 'Deploying', link: '/guide/deploying' }
{
text: 'Configuration',
link: '/guide/configuration',
collapsible: true,
collapsed: true,
items: [
{ text: 'What is VitePress?', link: '/guide/what-is-vitepress' },
{ text: 'Getting Started', link: '/guide/getting-started' },
{ text: 'Configuration', link: '/guide/configuration' },
{ text: 'Deploying', link: '/guide/deploying' }
]
},
{
text: 'Deploying',
collapsible: true,
collapsed: true,
items: [
{ text: 'What is VitePress?', link: '/guide/what-is-vitepress' },
{ text: 'Getting Started', link: '/guide/getting-started' },
{ text: 'Configuration', link: '/guide/configuration' },
{
text: 'Deploying',
link: '/guide/deploying',
collapsible: true,
collapsed: true,
items: [
{
text: 'What is VitePress?',
link: '/guide/what-is-vitepress'
},
{ text: 'Getting Started', link: '/guide/getting-started' },
{ text: 'Configuration', link: '/guide/configuration' },
{ text: 'Deploying', link: '/guide/deploying' }
]
}
]
}
]
},
{
Expand Down
36 changes: 18 additions & 18 deletions types/default-theme.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,24 +149,24 @@ export namespace DefaultTheme {
export type SidebarItem =
| { text: string; link: string }
| {
text: string;
link?: string;
items: SidebarItem[];

/**
* If `true`, toggle button is shown.
*
* @default false
*/
collapsible?: boolean

/**
* If `true`, collapsible group is collapsed by default.
*
* @default false
*/
collapsed?: boolean
}
text: string
link?: string
items: SidebarItem[]

/**
* If `true`, toggle button is shown.
*
* @default false
*/
collapsible?: boolean

/**
* If `true`, collapsible group is collapsed by default.
*
* @default false
*/
collapsed?: boolean
}

// edit link -----------------------------------------------------------------

Expand Down

0 comments on commit 8607fe1

Please sign in to comment.