forked from react-dropzone/react-dropzone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.config.js
67 lines (66 loc) · 1.73 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
/* eslint import/no-extraneous-dependencies: 0 */
const path = require('path')
const { createConfig, babel, css } = require('webpack-blocks')
// https://react-styleguidist.js.org/docs/configuration.html
module.exports = {
title: 'react-dropzone',
styleguideDir: path.join(__dirname, 'styleguide'),
webpackConfig: createConfig([babel(), css()]),
exampleMode: 'expand',
usageMode: 'expand',
showSidebar: false,
serverPort: 8080,
moduleAliases: {
'react-dropzone': path.resolve(__dirname, './src')
},
require: [path.join(__dirname, 'examples/theme.css')],
sections: [
{
name: '',
content: 'README.md'
},
// TODO: Figure out how to document the hook
// See https://github.com/reactjs/react-docgen/issues/332
{
name: 'Components',
components: './src/index.js'
},
{
name: 'Examples',
sections: [
{
name: 'Basic example',
content: 'examples/basic/README.md'
},
{
name: 'Event Propagation',
content: 'examples/events/README.md'
},
{
name: 'Styling Dropzone',
content: 'examples/styling/README.md'
},
{
name: 'Accepting specific file types',
content: 'examples/accept/README.md'
},
{
name: 'Opening File Dialog Programmatically',
content: 'examples/file-dialog/README.md'
},
{
name: 'Previews',
content: 'examples/previews/README.md'
},
{
name: 'Class Components',
content: 'examples/class-component/README.md'
},
{
name: 'Extending Dropzone',
content: 'examples/plugins/README.md'
}
]
}
]
}