-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyleguide.config.js
More file actions
62 lines (61 loc) · 1.47 KB
/
styleguide.config.js
File metadata and controls
62 lines (61 loc) · 1.47 KB
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
const path = require('path')
module.exports = {
template: {
favicon: 'images/porunga-close-icon.png',
},
assetsDir: 'images/',
pagePerSection: false,
theme: {
borderRadius: 10,
color: {
base: '#333',
light: '#767676',
lightest: '#ccc',
link: '#1673b1',
linkHover: '#e90',
focus: 'rgba(22, 115, 177, 0.25)',
border: '#e8e8e8',
name: '#690',
type: '#905',
error: '#c00',
baseBackground: '#fff',
codeBackground: '#f5f5f5',
sidebarBackground: '#f5f5f5',
ribbonBackground: '#e90',
ribbonText: '#fff',
},
},
sections: [
{
name: 'Introduction',
content: 'src/docs/introduction.md',
},
{
name: 'API Design',
content: 'src/docs/API-design.md',
},
{
name: 'Theming',
content: 'src/docs/Theming.md',
},
{
name: 'Components',
components: 'src/components/*/index.{ts,tsx}',
ignore: 'src/components/index.ts',
exampleMode: 'expand', // 'hide' | 'collapse' | 'expand'
usageMode: 'expand', // 'hide' | 'collapse' | 'expand'
},
],
styleguideComponents: {
Wrapper: path.join(__dirname, 'src/components/Theme/Theme'),
},
propsParser: require('react-docgen-typescript').withDefaultConfig({
shouldExtractLiteralValuesFromEnum: true,
}).parse,
ignore: [
'**/__tests__/**',
'**/*.test.{js,jsx,ts,tsx}',
'**/*.spec.{js,jsx,ts,tsx}',
'**/constants.{js,jsx,ts,tsx}',
],
}