forked from idanlo/react-spotify-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.config.js
87 lines (87 loc) · 3 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
85
86
87
module.exports = {
webpackConfig: require('react-scripts/config/webpack.config.js')(
'development'
),
title: 'React Spotify Api Documentation',
sections: [
{
name: 'Introduction',
content: 'src/docs/main.md'
},
{
name: 'Components',
sections: [
{
name: 'Artist components',
components: 'src/lib/Artist/*.js',
ignore: [
'src/lib/Artist/index.js',
'src/lib/Artist/useArtist.js'
],
exampleMode: 'collapse'
},
{
name: 'Track components',
components: 'src/lib/Track/*.js',
ignore: [
'src/lib/Track/index.js',
'src/lib/Track/useTrack.js'
],
exampleMode: 'collapse'
},
{
name: 'Album components',
components: 'src/lib/Album/*.js',
ignore: [
'src/lib/Album/index.js',
'src/lib/Album/useAlbum.js'
],
exampleMode: 'collapse'
},
{
name: 'Playlist components',
components: 'src/lib/Playlist/*.js',
ignore: ['src/lib/Playlist/index.js'],
exampleMode: 'collapse'
},
{
name: 'Browse components',
components: 'src/lib/Browse/*.js',
ignore: ['src/lib/Browse/index.js'],
exampleMode: 'collapse'
},
{
name: 'User components',
components: 'src/lib/User/*.js',
ignore: [
'src/lib/User/index.js',
'src/lib/User/useUser.js'
],
exampleMode: 'collapse'
},
{
name: 'Search component',
components: 'src/lib/Search/*.js',
ignore: [
'src/lib/Search/index.js',
'src/lib/Search/useSearch.js'
],
exampleMode: 'collapse'
}
]
},
{
name: 'Hooks',
sections: [
{ name: 'useArtist', content: 'src/docs/Artist/useArtist.md' },
{ name: 'useAlbum', content: 'src/docs/Album/useAlbum.md' },
{ name: 'useTrack', content: 'src/docs/Track/useTrack.md' },
{
name: 'useSearch',
content: 'src/docs/Search/useSearch.md'
},
{ name: 'useUser', content: 'src/docs/User/useUser.md' }
]
}
]
};