-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.config.js
81 lines (75 loc) · 1.8 KB
/
styleguide.config.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
const path = require('path')
module.exports = {
// set your styleguidist configuration here
// tocMode: 'collapse',
pagePerSection: true,
title: 'TComponent Style Guide',
// components: 'src/components/**/[A-Z]*.vue',
// defaultExample: true,
compilerConfig:{
transforms:{
asyncAwait:false
}
},
sections: [
{
name: "Introduce",
content:'./examples/docs/Basic.md',
},
{
name: 'Basic',
components:function () {
return [
'./packages/TButton/src/TButton.vue',
'./packages/TIcon/src/TIcon.vue',
'./packages/TRow/src/TRow.vue',
'./packages/TCol/src/TCol.vue',
'./packages/TImage/src/TImage.vue',
]
}
},
{
name: 'Form',
// content:'./examples/docs/Form.md',
components:function () {
return [
'./packages/TRadioGroup/src/TRadioGroup.vue',
'./packages/TSelect/src/TSelect.vue',
'./packages/TMultiSelect/src/TMultiSelect.vue',
'./packages/TSwitch/src/TSwitch.vue',
'./packages/TDatePicker/src/TDatePicker.vue',
'./packages/TForm/src/TForm.vue',
'./packages/TFormItem/src/TFormItem.vue'
]}
},
{
name: 'Data',
// content:'./examples/docs/Form.md',
components:function () {
return [
'./packages/TList/src/TList.vue',
'./packages/TTable/src/TTable.vue',
'./packages/TTimeline/src/TTimeline.vue',
'./packages/TTimelineItem/src/TTimelineItem.vue',
]}
},
{
name: 'Feedback',
content:'./examples/docs/Feedback.md',
},
],
require: [
path.join(__dirname, './examples/styleguide/global.requires.js'),
path.join(__dirname, './examples/styleguide/style.css')
],
webpackConfig: {
// custom config goes here
output: {
path:'/t-component-ui-guide',
publicPath:''
}
},
// exampleMode: 'expand',
defaultExample: false,
// serverPort:6666
}