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:
Wuxh
2023-03-06 13:12:09 +08:00
committed by GitHub
parent 596892f346
commit ecbe084012
25 changed files with 5547 additions and 1852 deletions

44
web/.dumirc.ts Normal file
View 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'
},
});