-
Notifications
You must be signed in to change notification settings - Fork 183
/
styleguide.config.js
76 lines (75 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
68
69
70
71
72
73
74
75
76
/* eslint import/no-extraneous-dependencies: 0 */
/* eslint global-require: 0 */
const path = require('path')
module.exports = {
title: 'Live Examples · React Dropzone Uploader',
styleguideDir: path.join(__dirname, 'docs/assets/styleguide'),
webpackConfig: require('./webpack.config.js'),
require: [
path.join(__dirname, 'src', 'styles.css'),
path.join(__dirname, 'examples', 'styles.css'),
path.resolve(__dirname, 'styleguide.setup.js'),
],
exampleMode: 'expand',
usageMode: 'expand',
showSidebar: false,
serverPort: 8080,
compilerConfig: {
transforms: { dangerousTaggedTemplateString: true },
objectAssign: 'Object.assign',
},
styles: {
StyleGuide: {
content: {
padding: [[16, 0]],
},
},
Heading: {
heading1: {
fontSize: 32,
},
},
},
sections: [
{
name: 'Standard',
content: 'examples/Standard.md',
},
{
name: 'Only Image, Audio, Video',
content: 'examples/Accept.md',
},
{
name: 'No Upload',
content: 'examples/NoUpload.md',
},
{
name: 'Single File, Auto Submit',
content: 'examples/SingleFile.md',
},
{
name: 'Custom Preview',
content: 'examples/CustomPreview.md',
},
{
name: 'Custom Layout',
content: 'examples/CustomLayout.md',
},
{
name: 'Custom Input, Directory Drag and Drop',
content: 'examples/CustomInput.md',
},
{
name: 'Dropzone With No Input',
content: 'examples/NoInput.md',
},
{
name: 'Input With No Dropzone',
content: 'examples/NoDropzone.md',
},
{
name: 'Initial File From Data URL',
content: 'examples/InitialFileFromDataUrl.md',
},
],
}