-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.umirc.ts
36 lines (35 loc) · 1.18 KB
/
.umirc.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';
export default defineConfig({
title: '@alitajs/dform',
favicon: 'https://avatars.githubusercontent.com/u/49136103?s=200&v=4',
logo: 'https://avatars.githubusercontent.com/u/49136103?s=200&v=4',
outputPath: 'docs-dist',
mode: 'site',
scripts: [
`setTimeout(function () {
var menu = document.getElementsByClassName('__dumi-default-menu')[0];
var navbar = document.getElementsByClassName('__dumi-default-navbar')[0];
if(navbar && navbar?.offsetHeight) {
const isMobile = navbar?.offsetHeight == 50;
if (!isMobile) {
var github = document.createElement('p');
github.className = 'github';
github.style.position = 'absolute';
github.style.top = '8px';
github.style.left = '280px';
github.innerHTML = '<object type="image/svg+xml" data="https://img.shields.io/github/stars/alitajs/DynamicForm?style=social"></object>';
navbar.appendChild(github);
}
}
}, 300)`,
],
theme: {
'@hd': '0.02rem',
},
navs: [
null,
,
{ title: 'v2', path: 'https://d.alitajs.com/' },
{ title: 'GitHub', path: 'https://github.com/alitajs/DynamicForm' },
],
});