forked from qantasairways/runway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.config.js
84 lines (82 loc) · 1.75 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
const { createConfig, babel, postcss } = require('webpack-blocks');
const { version } = require('./package');
module.exports = {
defaultExample: true,
ribbon: {
url: 'https://github.com/styleguidist/react-styleguidist'
},
ignore: ['**/components/*/*/*.js', '**/components/MediaQueryDetector/*.js'],
pagePerSection: true,
sections: [
{
name: 'Documentation',
sections: [
{
name: 'Change Log',
content: 'CHANGELOG.md',
sectionDepth: 0
}
]
},
{
name: 'Components',
content: 'docs/Components.md',
components: () => ['./src/components/*/*.js'],
exampleMode: 'expand',
usageMode: 'expand',
sectionDepth: 0
},
{
name: 'Icons',
content: 'docs/Components.md',
components: () => ['./src/icons/*/*.js'],
exampleMode: 'expand',
usageMode: 'hide',
sectionDepth: 0
}
],
theme: {
baseBackground: '#fdfdfc',
link: '#274e75',
linkHover: '#90a7bf',
border: '#e0d2de',
font: ['Helvetica', 'sans-serif']
},
styles: {
Playground: {
preview: {
paddingLeft: 0,
paddingRight: 0,
borderWidth: [[0, 0, 1, 0]],
borderRadius: 0
}
},
Markdown: {
pre: {
border: 0,
background: 'none'
},
code: {
fontSize: 14
}
}
},
template: {
head: {
links: [
{
rel: 'stylesheet',
href:
'http://www.qantas.com/etc/designs/qcom/site/main.min.6d306e1d045f4c8fdfaacc1cf7984b23.css'
}
]
}
},
theme: {
fontFamily: {
base: '"Ciutadella",Helvetica,Arial,sans-serif'
}
},
version,
webpackConfig: createConfig([babel(), postcss()])
};