-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
doczrc.js
50 lines (45 loc) · 1.21 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
import path from 'path'
import theme from './src/theme'
export default {
title: '🍿📼 Sensorr',
modifyBundlerConfig: (config) => {
// Resolve `src`
config.resolve.modules.push(path.join(__dirname, 'src'))
config.module.rules[0].include.push(path.join(__dirname, 'src'))
// Resolve `doc`
config.resolve.modules.push(path.join(__dirname, 'doc'))
config.module.rules[0].include.push(path.join(__dirname, 'doc'))
// CSS
config.resolve.extensions.push('.css')
config.module.rules.push({
test: /\.css$/,
use: ['style-loader', 'css-loader']
})
return config
},
htmlContext: {
head: {
raw: [
`
<style>
.markdown-table { border: 1px dotted #2D3747; border-collapse: collapse; }
.markdown-table td, .markdown-table th { border: 1px dotted #2D3747; padding: 10px; }
</style>
`,
`<script>var config = ${JSON.stringify(require('./config/config.json'))}</script>`,
]
}
},
themeConfig: {
mode: 'dark',
colors: {
primary: theme.colors.primary,
link: theme.colors.primary,
},
styles: {
ul: {
padding: '0 0 0 20px !important',
}
},
},
}