-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
.dumirc.ts
35 lines (34 loc) · 968 Bytes
/
.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
import { defineConfig } from './dist';
import { version } from './package.json';
export default defineConfig({
html2sketch: {},
// mako: {},
favicons: [
'https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png',
],
autoAlias: false,
outputPath: 'docs-dist',
define: {
'process.env.DUMI_VERSION': version,
},
themeConfig: {
hd: { rules: [] },
rtl: true,
name: 'dumi',
logo: 'https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png',
footer: `Open-source MIT Licensed | Copyright © 2019-present
<br />
Powered by self`,
prefersColor: { default: 'auto' },
socialLinks: {
github: 'https://github.com/umijs/dumi',
},
},
...(process.env.NODE_ENV === 'development'
? {}
: { ssr: { builder: 'webpack' } }),
analytics: {
ga_v2: 'G-GX2S89BMXB',
},
sitemap: { hostname: 'https://d.umijs.org' },
});