Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix]解决dumi升级到2.0的一些兼容性问题 #2731

Merged
merged 2 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from 'dumi';

export default defineConfig({
ssr: {},
kuitos marked this conversation as resolved.
Show resolved Hide resolved
publicPath: process.env.NOW_DEPLOY ? '/' : '/qiankun/',
base: process.env.NOW_DEPLOY ? '/' : '/qiankun',
resolve: {
Expand All @@ -13,6 +12,7 @@ export default defineConfig({
{ id: 'zh-CN', name: '中文' },
],
themeConfig: {
name: 'qiankun',
logo: 'https://gw.alipayobjects.com/zos/bmw-prod/8a74c1d3-16f3-4719-be63-15e467a68a24/km0cv8vn_w500_h500.png',
nav: {
mode: 'append',
Expand All @@ -26,7 +26,6 @@ export default defineConfig({
{ title: '1.x 版本', link: 'https://v1.qiankun.umijs.org/zh/' },
],
},
{ title: 'GitHub', link: 'https://github.com/umijs/qiankun' },
],
'en-US': [
{
Expand All @@ -37,10 +36,12 @@ export default defineConfig({
{ title: '1.x Version', link: 'https://v1.qiankun.umijs.org/' },
],
},
{ title: 'GitHub', link: 'https://github.com/umijs/qiankun' },
],
},
},
socialLinks: {
github: 'https://github.com/umijs/dumi',
},
},
metas: [
{
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config.local.js
.umi
.umi-production
.idea/
.vscode/
.cache
yarn.lock
es
Expand Down
8 changes: 4 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
title: qiankun
hero:
title: qiankun
desc: Probably the most complete micro-frontends solution you ever met🧐
description: Probably the most complete micro-frontends solution you ever met🧐
actions:
- text: Get Started →
link: /guide
features:
- title: Simple
desc: Works with any javascript framework. Build your micro-frontend system just like using with iframe, but not iframe actually.
description: Works with any javascript framework. Build your micro-frontend system just like using with iframe, but not iframe actually.
- title: Complete
desc: Includes almost all the basic capabilities required to build a micro-frontend system, such as style isolation, js sandbox, preloading, and so on.
description: Includes almost all the basic capabilities required to build a micro-frontend system, such as style isolation, js sandbox, preloading, and so on.
- title: Production-Ready
desc: Had been extensively tested and polished by a large number of online applications both inside and outside of Ant Financial, the robustness is trustworthy.
description: Had been extensively tested and polished by a large number of online applications both inside and outside of Ant Financial, the robustness is trustworthy.
footer: MIT Licensed | Copyright © 2019-present<br />Powered by [dumi](https://d.umijs.org)
---

Expand Down
8 changes: 4 additions & 4 deletions docs/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
title: qiankun
hero:
title: qiankun
desc: 可能是你见过最完善的微前端解决方案🧐
description: 可能是你见过最完善的微前端解决方案🧐
actions:
- text: 快速开始 →
link: /zh/guide
features:
- title: 简单
desc: 任意 js 框架均可使用。微应用接入像使用接入一个 iframe 系统一样简单,但实际不是 iframe。
description: 任意 js 框架均可使用。微应用接入像使用接入一个 iframe 系统一样简单,但实际不是 iframe。
- title: 完备
desc: 几乎包含所有构建微前端系统时所需要的基本能力,如 样式隔离、js 沙箱、预加载等。
description: 几乎包含所有构建微前端系统时所需要的基本能力,如 样式隔离、js 沙箱、预加载等。
- title: 生产可用
desc: 已在蚂蚁内外经受过足够大量的线上系统的考验及打磨,健壮性值得信赖。
description: 已在蚂蚁内外经受过足够大量的线上系统的考验及打磨,健壮性值得信赖。
footer: MIT Licensed | Copyright © 2019-present<br />Powered by [dumi](https://d.umijs.org)
---

Expand Down
1 change: 1 addition & 0 deletions docs/api/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
nav:
title: API
order: 1
toc: menu
---

Expand Down
1 change: 1 addition & 0 deletions docs/api/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
nav:
title: API
order: 1
toc: menu
---

Expand Down
1 change: 1 addition & 0 deletions docs/cookbook/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
nav:
title: Tutorial
order: 3
toc: menu
---

Expand Down
1 change: 1 addition & 0 deletions docs/cookbook/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
nav:
title: 入门教程
order: 3
toc: menu
---

Expand Down
1 change: 1 addition & 0 deletions docs/faq/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
nav:
title: FAQ
order: 2
toc: menu
---

Expand Down
1 change: 1 addition & 0 deletions docs/faq/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
nav:
title: 常见问题
order: 2
toc: menu
---

Expand Down
1 change: 1 addition & 0 deletions docs/guide/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
nav:
title: Guide
order: 0
toc: menu
---
Expand Down