replace doc

This commit is contained in:
hufeixiong
2021-11-24 12:50:19 +08:00
parent 18b8e80782
commit 0fe64cc6be
82 changed files with 5514 additions and 3332 deletions

View File

@@ -0,0 +1,32 @@
import { defineConfig } from 'dumi';
export default defineConfig({
title: 'Dooringx',
favicon: 'https://yehuozhili-1259443377.cos.ap-nanjing.myqcloud.com/dooringxlogo.png',
logo: 'https://yehuozhili-1259443377.cos.ap-nanjing.myqcloud.com/dooringxlogo.png',
outputPath: 'docs-dist',
mode: 'site',
locales: [
['zh', '中文'],
['en', 'English'],
],
navs: {
// 多语言 key 值需与 locales 配置中的 key 一致
en: [
null, // null 值代表保留约定式生成的导航,只做增量配置
{
title: 'GitHub',
path: 'https://github.com/H5-Dooring/dooringx',
},
],
zh: [
null, // null 值代表保留约定式生成的导航,只做增量配置
{
title: 'GitHub',
path: 'https://github.com/H5-Dooring/dooringx',
},
],
},
base: process.env.NODE_ENV === 'production' ? '/dooringx' : '/',
publicPath: process.env.NODE_ENV === 'production' ? '/dooringx/' : '/',
// more config: https://d.umijs.org/config
});