-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dumirc.ts
36 lines (32 loc) · 886 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
36
import { defineConfig } from 'dumi';
let base: string | undefined;
let publicPath: string | undefined;
// Github Pages 部署时需要更换为自己的仓库名
if (process.env.NODE_ENV === 'production' && process.env.PREVIEW !== '1') {
console.log('production')
base = '/zens/';
publicPath = '/zens/';
}
export default defineConfig({
base,
publicPath,
favicons: ['/favicon.ico'],
title: 'zens',
outputPath: 'doc-site',
resolve: {
docDirs: ['docs'],
atomDirs: [{ type: 'component', dir: 'src' }],
},
themeConfig: {
logo: (publicPath || '') + '/logo.png',
lastUpdated: true,
socialLinks: {
github: 'https://github.com/drl990114/zens',
},
footer: 'Open-source MIT Licensed | Copyright © 2024 <a href="https://github.com/drl990114">@drl990114</a>'
},
exportStatic: {},
forkTSChecker: {},
extraBabelPlugins: [
],
});