-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyleguide.config.js
44 lines (41 loc) · 1016 Bytes
/
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
const loaders = require('vue-webpack-loaders');
const glob = require('glob').sync;
const basename = require('path').basename;
function getDocSections() {
b = p => basename(p, '.md');
return glob('docs/*.md')
.filter(path => b(path)!=='Introduction')
.map(path => ({
name: b(path),
content: path
}));
}
/**
* More info about this styleguide configuration in
* vue-styleguidist/vue-styleguidist github repository
*/
module.exports = {
sections: [
{
/* The component itself */
name: 'ic-crud-dropdown documentation',
content: 'docs/Introduction.md',
components: './src/**/*.vue',
// ignore: ['src/ignored-component/ignored-component.vue'],
sections: getDocSections()
},
],
webpackConfig: {
module: {
loaders,
},
devtool: 'inline-source-map'
},
serverPort: 6062,
require: [
'bootstrap/dist/css/bootstrap.css',
'bootstrap-vue/dist/bootstrap-vue.css',
'font-awesome/css/font-awesome.css',
'./boot-vue.js'
],
};