forked from GetStream/react-file-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.config.js
36 lines (35 loc) · 915 Bytes
/
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
/* globals __dirname */
/* eslint-env commonjs*/
const path = require('path');
module.exports = {
title: 'React File Utils - Docs',
styleguideDir: 'docs',
webpackConfig: require('./webpack.config.styleguidist.js'),
styleguideComponents: {
PathlineRenderer: path.join(
__dirname,
'src/styleguideComponents/PathlineRenderer.js',
),
},
sortProps: (props) => props,
sections: [
{
name: 'UI Components',
components: 'src/components/*.tsx',
exampleMode: 'collapse',
usageMode: 'expand',
},
],
template: {
favicon: 'https://getstream.imgix.net/images/favicons/favicon-96x96.png',
link: {
rel: 'stylesheet',
type: 'text/css',
href: './dist/index.css',
},
},
require: [
path.join(path.resolve(path.dirname('')), 'dist/index.css'),
path.join(path.resolve(path.dirname('')), 'src/styleguide-styles.css'),
],
};