-
Notifications
You must be signed in to change notification settings - Fork 17
/
.dumirc.ts
37 lines (36 loc) · 1.01 KB
/
.dumirc.ts
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
import { defineConfig } from 'dumi';
import os from 'node:os';
export default defineConfig({
outputPath: 'docs-dist',
favicons: ['https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png'],
themeConfig: {
name: 'GPT-Vis',
logo: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png',
footer: `Open-source MIT Licensed | Copyright © 2024
<br />
Powered by <a herf="https://antv.antgroup.com">AntV</a>`,
socialLinks: {
github: 'https://github.com/antvis/GPT-Vis',
},
prefersColor: { default: 'light', switch: false },
},
// ssr:
// process.env.NODE_ENV === 'production'
// ? {
// builder: 'mako',
// }
// : false,
hash: true,
mfsu: false,
mako: ['Darwin', 'Linux'].includes(os.type()) ? {} : false,
externals: {
'mapbox-gl': 'window.mapboxgl',
'maplibre-gl': 'window.maplibregl',
},
theme: {
'@c-primary': '#691eff',
'@s-content-width': '100%',
'@s-content-padding': '48px',
'@s-sidebar-width': '280px',
},
});