forked from totalizer-team/XForm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.dumirc.ts
37 lines (35 loc) · 861 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
37
import { defineConfig } from 'dumi';
const isDev = process.env.NODE_ENV === 'development';
export const basePath = isDev ? '/' : '/XForm/';
export const logoPath = `${basePath}logo.png`;
export default defineConfig({
base: basePath,
publicPath: basePath,
outputPath: 'docs-dist',
favicons: [logoPath],
themeConfig: {
title: 'XForm',
name: 'XForm',
logo: logoPath,
socialLinks: {
github: 'https://github.com/totalizer-team/XForm',
},
footer: 'Open-source MIT Licensed | Copyright © 2024-present',
rtl: false,
localesEnhance: [
{
id: 'zh-CN',
switchPrefix: '中',
},
{
id: 'en-US',
switchPrefix: 'En',
},
],
},
mfsu: false,
locales: [
{ id: 'en-US', name: 'English', suffix: '' },
{ id: 'zh-CN', name: '中文', suffix: '-cn' },
],
});