Skip to content

chore: dumi 1.x -> 2.x #429

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

Merged
merged 1 commit into from
Jan 10, 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
15 changes: 15 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from 'dumi';
import path from 'path';

export default defineConfig({
alias: {
'rc-tooltip$': path.resolve('src'),
'rc-tooltip/es': path.resolve('src'),
},
mfsu: false,
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
name: 'Tooltip',
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
});
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ package-lock.json
.umi
.umi-production
.umi-test
.env.local
.env.local

# dumi
.dumi/tmp
.dumi/tmp-production
19 changes: 0 additions & 19 deletions .umirc.ts

This file was deleted.

9 changes: 7 additions & 2 deletions docs/demo/arrowContent.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## arrowContent
---
title: arrowContent
nav:
title: Demo
path: /demo
---

<code src="../examples/arrowContent.tsx">
<code src="../examples/arrowContent.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/formError.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## formError
---
title: formError
nav:
title: Demo
path: /demo
---

<code src="../examples/formError.tsx">
<code src="../examples/formError.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/onVisibleChange.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## onVisibleChange
---
title: onVisibleChange
nav:
title: Demo
path: /demo
---

<code src="../examples/onVisibleChange.tsx">
<code src="../examples/onVisibleChange.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/placement.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## placement
---
title: placement
nav:
title: Demo
path: /demo
---

<code src="../examples/placement.tsx">
<code src="../examples/placement.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/showArrow.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## showArrow
---
title: showArrow
nav:
title: Demo
path: /demo
---

<code src="../examples/showArrow.tsx">
<code src="../examples/showArrow.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/simple.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## simple
---
title: simple
nav:
title: Demo
path: /demo
---

<code src="../examples/simple.tsx">
<code src="../examples/simple.tsx"></code>
5 changes: 4 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
title: rc-tooltip
hero:
title: rc-tooltip
description: React Tooltip
---


<embed src="../README.md"></embed>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@types/react-dom": "^16.9.2",
"@types/warning": "^3.0.0",
"cross-env": "^7.0.0",
"dumi": "^1.1.0",
"dumi": "^2.1.1",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.1",
"enzyme-to-json": "^3.4.3",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"esModuleInterop": true,
"paths": {
"@/*": ["src/*"],
"@@/*": ["src/.umi/*"],
"@@/*": [".dumi/tmp/*"],
"rc-tooltip": ["src/index.tsx"]
}
}
},
"include": [".dumi/**/*", ".dumirc.ts", "./src/**/*.ts", "./src/**/*.tsx", "./docs/**/*.tsx"]
}