forked from britecharts/britecharts-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.config.js
84 lines (71 loc) · 2.05 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
const path = require('path');
const resolve = (searchPath) => path.join(__dirname, searchPath);
// Themes
// Check options in https://github.com/styleguidist/react-styleguidist/blob/master/src/styles/theme.js
module.exports = {
title: 'Britecharts React - React charting library based in Britecharts',
theme: {
sidebarWidth: 262,
color: {
base: '#333',
light: '#999',
lightest: '#ccc',
link: '#F6682f',
linkHover: '#BF4C28',
border: '#e8e8e8',
name: '#FFA71A',
type: '#b77daa',
error: '#fff',
baseBackground: '#fff',
errorBackground: '#c00',
codeBackground: '#f5f5f5',
sidebarBackground: '#45494E',
},
fontFamily: {
base: '"Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif',
},
},
styleguideComponents: {
Logo: resolve('src/docs/styleguide/Logo'),
},
components: 'src/charts/**/[A-Z]*.js',
require: [
resolve('node_modules/britecharts/dist/css/britecharts.min.css'),
resolve('src/docs/styles/custom.css'),
],
assetsDir: resolve('src/docs/public'),
template: resolve('src/docs/template.html'),
webpackConfig: {
module: {
rules: [
{
test: /\.js?$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
{
test: /\.css$/,
loader: [
'style-loader',
'css-loader',
],
},
],
},
},
sections: [
{
name: 'Introduction',
content: './README.md',
},
{
name: 'Components',
components: 'src/charts/*/*.js',
},
{
name: 'About',
content: './TOPICS.md',
},
],
styleguideDir: 'docs',
};