forked from thebuilder/react-intersection-observer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoczrc.js
50 lines (49 loc) · 1.06 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
const path = require('path')
export default {
title: 'React Intersection Observer',
src: './docs',
htmlContext: {
head: {
links: [
{
rel: 'stylesheet',
href: 'https://codemirror.net/theme/dracula.css',
},
],
},
},
themeConfig: {
mode: 'dark',
codemirrorTheme: 'dracula',
showPlaygroundEditor: false,
colors: {
primary: '#ad57ea',
},
styles: {
body: {
fontFamily:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n',
background: '#13161F',
},
h2: {
fontWeight: 200,
},
code: {
background: '#493854',
},
},
},
typescript: true,
modifyBundlerConfig: (config, dev, args) => {
return {
...config,
resolve: {
...config.resolve,
alias: {
...config.resolve.alias,
'react-intersection-observer': path.resolve('./src/index.tsx'),
},
},
}
},
}