/
index.js
42 lines (41 loc) · 971 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
const path = require('path')
module.exports = {
output: path.resolve(__dirname, '../docs'),
usage: {
importStr: `import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)`
},
docs: [
{
name: '啊哈',
components: [
{
name: 'alert 警告',
location: path.resolve(__dirname, './docs/alert.md'),
routerPath: '/alert'
},
{
name: 'backtop 回顶',
location: path.resolve(__dirname, './docs/backtop.md'),
routerPath: '/backtop'
}
]
},
{
name: '嘿哟',
components: [
{
name: 'card 卡片',
location: path.resolve(__dirname, './docs/card.md'),
routerPath: '/card'
},
{
name: 'checkbox 选择',
location: path.resolve(__dirname, './docs/checkbox.md'),
routerPath: '/checkbox'
}
]
}
]
}