Skip to content

Commit

Permalink
feat:升级 vitepress 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckBright committed Jun 21, 2022
1 parent 52c5ad9 commit a7587be
Show file tree
Hide file tree
Showing 5 changed files with 5,145 additions and 4,811 deletions.
14 changes: 7 additions & 7 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
const sidebar = {
'/': [
{ text: '快速开始', link: '/' },
{ text: '快速开始', link: '/', items: [] },
{
text: '通用',
children: [{ text: 'Button 按钮', link: '/components/button/' }]
items: [{ text: 'Button 按钮', link: '/components/button/' }]
},
{ text: '导航' },
{ text: '反馈' },
{ text: '导航', items: [] },
{ text: '反馈', items: [] },
{ text: '数据录入' ,
children: [{ text: 'Input 输入框', link: '/components/input/' }]
items: [{ text: 'Input 输入框', link: '/components/input/' }]
},
{ text: '数据展示' },
{ text: '数据展示', items: [] },
{ text: '布局',
children:[
items:[
{ text:'Space 间距',link:'/components/space/'}
]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Theme from 'vitepress/dist/client/theme-default'
import Theme from 'vitepress/theme'
// import HelloWorld from '../../../src/components/HelloWorld'
import Test from '../../../src/components/Test'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"ts-node": "^10.7.0",
"typescript": "^4.5.4",
"vite": "^2.8.0",
"vitepress": "^0.22.3",
"vitepress": "^1.0.0-alpha.2",
"vitepress-theme-demoblock": "^1.4.2",
"vitest": "^0.6.1",
"vue-tsc": "^0.29.8"
Expand Down
9 changes: 8 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"lib": ["esnext", "dom"],
"types": ["vitest/globals"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue","scripts/**/*.ts"],
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue",
"scripts/**/*.ts",
"docs/.vitepress/theme"
],
"references": [{ "path": "./tsconfig.node.json" }]
}
Loading

0 comments on commit a7587be

Please sign in to comment.