mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 10:15:59 +08:00
chore: upgrade dumi@2.x (#148)
* chore(deps): upgrade dumi@2.x * chore: update * chore: update config file * docs: update * docs: update docs * docs: update * chore: update * chore: update * chore: remore debug link * chore: update global.less
This commit is contained in:
44
web/.dumirc.ts
Normal file
44
web/.dumirc.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
// more config: https://d.umijs.org/config
|
||||
import { defineConfig } from 'dumi';
|
||||
|
||||
const name = 'issues-helper';
|
||||
|
||||
const isProdSite =
|
||||
// 不是预览模式 同时是生产环境
|
||||
process.env.PREVIEW !== 'true' && process.env.NODE_ENV === 'production';
|
||||
|
||||
const logo =
|
||||
'https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*8xDgSL-O6O4AAAAAAAAAAAAAARQnAQ';
|
||||
|
||||
export default defineConfig({
|
||||
title: 'Issues Helper',
|
||||
outputPath: '../docs-dist',
|
||||
base: isProdSite ? `/${name}/` : '/',
|
||||
publicPath: isProdSite ? `/${name}/` : '/',
|
||||
locales: [
|
||||
{ id: 'en-US', name: 'English', },
|
||||
{ id: 'zh-CN', name: '中文' },
|
||||
],
|
||||
favicons: [logo],
|
||||
themeConfig: {
|
||||
logo,
|
||||
nav: {
|
||||
'zh-CN': [
|
||||
{ title: '指 南', link: '/zh-CN/guide' },
|
||||
{ title: '基 础', link: '/zh-CN/base' },
|
||||
{ title: '进 阶', link: '/zh-CN/advanced' },
|
||||
{ title: '更新日志', link: '/zh-CN/changelog' }
|
||||
],
|
||||
'en-US': [
|
||||
{ title: 'Guide', link: '/guide' },
|
||||
{ title: 'Base', link: '/base' },
|
||||
{ title: 'Advanced', link: '/advanced' },
|
||||
{ title: 'Changelog', link: '/changelog' },
|
||||
],
|
||||
},
|
||||
socialLinks: {
|
||||
github: 'https://github.com/actions-cool/issues-helper'
|
||||
},
|
||||
footer: 'Open-source MIT Licensed | Copyright © 2020-present<br />Powered by xrkffgg'
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user