forked from lobehub/chat-plugin-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dumirc.ts
37 lines (32 loc) · 888 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';
import { homepage } from './package.json';
const isWin = process.platform === 'win32';
const themeConfig = {
footer: 'Made with 🤯 by LobeHub',
name: 'Lobe Chat Plugin SDK',
socialLinks: {
discord: 'https://discord.gg/AYFPHvv2jT',
github: homepage,
},
};
export default defineConfig({
extraBabelPlugins: ['babel-plugin-antd-style'],
favicons: [
'https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/puzzle-piece.webp',
],
locales: [
{ id: 'en-US', name: 'English' },
{ id: 'zh-CN', name: '简体中文' },
],
mfsu: isWin ? undefined : {},
npmClient: 'pnpm',
outputPath: 'docs-dist',
styles: [
`html, body { background: transparent; }
@media (prefers-color-scheme: dark) {
html, body { background: #000; }
}`,
],
themeConfig,
title: 'Lobe Chat Plugin SDK',
});