forked from jxom/fannypack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdoczrc.js
120 lines (116 loc) · 2.63 KB
/
doczrc.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import { css } from 'reakit/styled';
export default {
title: 'Fannypack',
description: 'A friendly, themeable, accessible React UI Kit',
dest: '/docs',
files: '**/src/**/*.mdx',
menu: [
'Home',
'Getting Started',
'Primitives',
'Palette',
'Typography',
'Layout',
'Components',
'Form',
'Utilities',
'Styling & Theming'
],
themeConfig: {
colors: {
primary: '#444bc9',
text: '#435a6f'
},
logo: {
src: 'https://raw.githubusercontent.com/fannypackui/fannypack/master/logo.png',
width: '230px'
},
showPlaygroundEditor: true,
styles: {
body: css`
font-family: unset;
font-size: 16px;
color: unset;
// Quick dirty hacks until we create our own docz theme
& nav a {
font-size: 16px !important;
}
& #get-started a,
& #changelog a,
& #component-status a {
color: #444bc9;
}
& > div > div > div {
font-size: 16px !important;
}
`,
h1: {
fontWeight: 'bold',
fontSize: '48px',
fontFamily: 'unset'
},
h2: {
fontWeight: '600',
fontFamily: 'unset'
},
paragraph: {
fontSize: '16px'
},
li: {
fontSize: '16px'
}
}
},
wrapper: 'src/_docs/wrapper',
codeSandbox: false,
typescript: true,
propsParser: false,
modifyBabelRc: (babelrc, args) => {
babelrc.presets.pop();
babelrc.presets.push(['docz-fannypack', { parseProps: false, typescript: true, flow: false }]);
return babelrc;
},
htmlContext: {
favicon: 'https://github.com/fannypackui/fannypack/blob/master/src/_docs/icon.png?raw=true',
head: {
meta: [
{
name: 'twitter:title',
content: 'Fannypack'
},
{
name: 'twitter:creator',
content: '@jxom_'
},
{
name: 'twitter:description',
content: 'A friendly, themeable, accessible React UI Kit'
},
{
name: 'twitter:url',
content: 'https://fannypack.style'
},
{
name: 'twitter:image',
content: 'https://github.com/fannypackui/fannypack/raw/master/fannypack.png'
},
{
name: 'twitter:card',
content: 'summary'
},
{
name: 'og:type',
content: 'website'
},
{
name: 'og:title',
content: 'Fannypack'
},
{
name: 'og:description',
content: 'A friendly, themeable, accessible React UI Kit'
}
]
}
}
};