forked from react-dropzone/react-dropzone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styleguide.config.js
79 lines (78 loc) · 1.87 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
/* eslint import/no-extraneous-dependencies: 0 */
const path = require('path')
const { createConfig, babel } = require('webpack-blocks')
module.exports = {
title: 'react-dropzone',
styleguideDir: path.join(__dirname, 'styleguide'),
webpackConfig: createConfig([babel()]),
exampleMode: 'expand',
usageMode: 'expand',
showSidebar: false,
serverPort: 8080,
compilerConfig: {
transforms: { dangerousTaggedTemplateString: true },
objectAssign: 'Object.assign'
},
sections: [
{
name: '',
content: 'README.md'
},
{
name: 'PropTypes',
components: './src/index.js'
},
{
name: 'Examples',
context: {
Dropzone: './src/index'
},
sections: [
{
name: 'Basic example',
content: 'examples/Basic/Readme.md'
},
{
name: 'Events',
content: 'examples/Events/README.md'
},
{
name: 'Styling Dropzone',
content: 'examples/Styling/Readme.md'
},
{
name: 'Accepting specific file types',
content: 'examples/Accept/Readme.md'
},
{
name: 'Previews',
content: 'examples/Previews/Readme.md'
},
{
name: 'Nested Dropzone',
content: 'examples/Nesting/Readme.md'
},
{
name: 'Opening File Dialog Programmatically',
content: 'examples/FileDialog/Readme.md'
},
{
name: 'Full Screen Dropzone',
content: 'examples/Fullscreen/Readme.md'
},
{
name: 'Extending Dropzone',
context: {
Dropzone: './src/index'
},
sections: [
{
name: 'Using third-party plugins',
content: 'examples/PluginArchitecture/Readme.md'
}
]
}
]
}
]
}