-
Notifications
You must be signed in to change notification settings - Fork 1
/
styleguide.config.js
executable file
·68 lines (67 loc) · 1.48 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
const path = require('path')
module.exports = {
sections: [
{
name: 'Documentation',
sections: [
{
name: 'Getting started',
content: 'docs/getting-started.md',
},
{
name: 'Properties',
content: 'docs/properties.md',
description: 'Learn the basic API for MAgicSoup components',
},
{
name: 'Extending',
content: 'docs/extending.md',
},
{
name: 'Theming',
content: 'docs/theming.md',
},
{
name: 'Grid',
content: 'docs/grid.md',
},
],
},
{
name: 'Components',
content: 'docs/components.md',
components: 'src/components/**/[A-Z]*.js',
exampleMode: 'expand', // 'hide' | 'collapse' | 'expand'
usageMode: 'expand', // 'hide' | 'collapse' | 'expand'
},
{
name: 'Examples',
content: 'docs/examples.md',
},
{
name: 'Created by zauberware',
href: 'https://www.zauberware.com',
},
],
defaultExample: true,
title: 'MagicSoup.io',
styleguideComponents: {
Wrapper: path.join(__dirname, 'lib/styleguide/Wrapper'),
},
styleguideDir: 'docs',
webpackConfig: {
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
},
],
},
},
}