-
Notifications
You must be signed in to change notification settings - Fork 1
/
.dumirc.ts
34 lines (33 loc) · 1.04 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
import { defineConfig } from 'dumi';
export default defineConfig({
favicons: ['https://docs.pmnd.rs/zustand.ico'],
autoAlias: false,
themeConfig: {
name: 'Zustand',
logo: 'https://docs.pmnd.rs/zustand.ico',
prefersColor: { default: 'auto' },
editLink: "https://github.com/youngjuning/zustand-cn.js.org/edit/main/{filename}",
socialLinks: {
github: 'https://github.com/youngjuning/zustand-cn.js.org',
twitter: 'https://twitter.com/luozhu2021'
},
hd: { rules: [] },
footer: 'Made with ❤️ by <a href="https://github.com/youngjuning" target="_blank">紫升</a>'
},
theme: {
'@c-primary': '#e5743f',
},
publicPath: '/',
analytics: {
ga_v2: 'G-6LFJYQB43N',
},
sitemap: {
hostname: 'https://zustand-cn.js.org',
},
hash: true,
exportStatic: {},
...(process.env.NODE_ENV === 'development' ? {} : { ssr: {} }),
headScripts: [
{src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7029815294762181', async: true, crossorigin: 'anonymous'},
],
});