Skip to content

Commit 51eacb9

Browse files
committed
update
1 parent d43896f commit 51eacb9

File tree

8 files changed

+425
-1
lines changed

8 files changed

+425
-1
lines changed

docs/.vitepress/config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { catalog as introductionCatalog } from '../introduction/config/catalog'
44
import { catalog as manualCatalog} from '../js-manual/config/catalog'
55
import { catalog as RegularCatalog } from '../regular-expression/config/catelog'
66
import {catalog as webpackCatalog} from '../webpack/config/catelog'
7+
import { catalog as VueCatalog } from '../vue/config/catalog'
78
import {DefaultTheme} from 'vitepress/theme'
89
type SideBar = DefaultTheme.Sidebar
910

@@ -30,7 +31,8 @@ const sidebar: SideBar = [
3031
http2Catalog,
3132
manualCatalog,
3233
RegularCatalog,
33-
webpackCatalog
34+
webpackCatalog,
35+
VueCatalog
3436
]
3537

3638
const nav: DefaultTheme.NavItem[] = [

docs/vue/config/catalog.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import {DefaultTheme} from 'vitepress/theme'
2+
type SidebarItem = DefaultTheme.SidebarItem
3+
4+
const catalog: SidebarItem = {
5+
text: 'vue',
6+
link: '/vue/',
7+
collapsed: true,
8+
items: [
9+
{ text: 'vue中的diff算法', link: '/vue/diff' }
10+
]
11+
}
12+
13+
14+
export {catalog}

0 commit comments

Comments
 (0)