-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyleguide.config.js
95 lines (93 loc) · 2.47 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require("path");
// eslint-disable-next-line @typescript-eslint/no-var-requires
const pjson = require("./package.json");
const moduleVersion = pjson.version;
module.exports = {
usageMode: "expand",
exampleMode: "expand",
styleguideDir: "dist",
copyCodeButton: true,
require: [path.join(__dirname, "styleguide/global.requires.js")],
renderRootJsx: path.join(__dirname, "styleguide/styleguide.root.js"),
getExampleFilename(componentPath) {
// The .md files are in the same folder as the .vue files
return componentPath.replace(/[A-Za-z]*.vue?$/, "README.md");
},
template: {
lang: "en",
favicon: "styleguide/favicon.png"
},
title: "ANEXIA Vue UI Components",
version: moduleVersion,
pagePerSection: true,
tocMode: "collapse",
sections: [
{
name: "Documentation",
content: "docs/index.md",
sections: [
{
name: "Installation",
content: "docs/installation/index.md",
sections: [
{
name: "Vue",
content: "docs/installation/vue.md"
},
{
name: "Nuxt",
content: "docs/installation/nuxt.md"
},
{
name: "Web",
content: "docs/installation/web.md"
}
]
},
{
name: "Plugins and Tools",
content: "docs/plugins/index.md",
sections: [
{
name: "AnxIconsPlugin",
content: "docs/plugins/anx-icons.md"
},
{
name: "AnxToastPlugin",
content: "docs/plugins/anx-toast.md"
},
{
name: "AnxVariablesPlugin",
content: "docs/plugins/anx-variables.md"
},
{
name: "AbstractModel",
content: "docs/plugins/abstract-model.md"
}
]
},
{
name: "Design",
content: "docs/design/index.md"
},
{
name: "FAQ",
content: "docs/faq/index.md"
}
]
},
{
name: "Components",
components: "src/components/**/[A-Z]*.vue",
ignore: [
"src/components/AnxTableCol/AnxTableCol.vue",
"src/components/AnxTableContainer/AnxTableContainer.vue",
"src/components/AnxTableRow/AnxTableRow.vue"
]
},
{
name: "Changelog"
}
]
};