Skip to content

Commit 2d4aef8

Browse files
authored
docs: use dumi2 & father4 (#255)
* chore: deps * chore: update * docs: bump dumi * chore: fix ts
1 parent 814be54 commit 2d4aef8

File tree

13 files changed

+70
-49
lines changed

13 files changed

+70
-49
lines changed

.fatherrc.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
export default {
2-
cjs: 'babel',
3-
esm: { type: 'babel', importLibToEs: true },
4-
runtimeHelpers: true,
5-
preCommit: {
6-
eslint: true,
7-
prettier: true,
8-
},
9-
};
1+
import { defineConfig } from 'father';
2+
3+
export default defineConfig({
4+
plugins: ['@rc-component/father-plugin'],
5+
});

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: actions/setup-node@v1
1717
with:
18-
node-version: '12'
18+
node-version: '18'
1919

2020
- name: cache package-lock.json
2121
uses: actions/cache@v2

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ package-lock.json
1414
.umi-production
1515
.umi-test
1616
.env.local
17+
18+
.dumi

.umirc.ts

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
1-
// more config: https://d.umijs.org/config
21
import { defineConfig } from 'dumi';
32

43
export default defineConfig({
5-
title: 'rc-virtual-list',
6-
favicon:
7-
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
8-
logo:
9-
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
10-
outputPath: '.doc',
11-
exportStatic: {},
12-
resolve: {
13-
examples: ['none'],
4+
themeConfig: {
5+
name: 'Tree',
146
},
15-
styles: [
16-
`
17-
.markdown table {
18-
width: auto !important;
19-
}
20-
`,
21-
]
227
});

docs/demo/animate.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
## animate
1+
---
2+
title: Animate
3+
nav:
4+
title: Demo
5+
path: /demo
6+
---
27

3-
<code src="../../examples/animate.tsx">
8+
<code src="../../examples/animate.tsx"></code>

docs/demo/basic.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
## basic
1+
---
2+
title: Basic
3+
nav:
4+
title: Demo
5+
path: /demo
6+
---
27

3-
<code src="../../examples/basic.tsx">
8+
<code src="../../examples/basic.tsx"></code>

docs/demo/height.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
## height
1+
---
2+
title: Height
3+
nav:
4+
title: Demo
5+
path: /demo
6+
---
27

3-
<code src="../../examples/height.tsx">
8+
<code src="../../examples/height.tsx"></code>

docs/demo/horizontal-scroll.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
## horizontal scroll
1+
---
2+
title: Horizontal Scroll
3+
nav:
4+
title: Demo
5+
path: /demo
6+
---
27

3-
<code src="../../examples/horizontal-scroll.tsx">
8+
<code src="../../examples/horizontal-scroll.tsx"></code>

docs/demo/no-virtual.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
## no-virtual
1+
---
2+
title: No Virtual
3+
nav:
4+
title: Demo
5+
path: /demo
6+
---
27

3-
<code src="../../examples/no-virtual.tsx">
8+
<code src="../../examples/no-virtual.tsx"></code>

docs/demo/switch.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
## switch
1+
---
2+
title: Switch
3+
nav:
4+
title: Demo
5+
path: /demo
6+
---
27

3-
<code src="../../examples/switch.tsx">
8+
<code src="../../examples/switch.tsx"></code>

0 commit comments

Comments
 (0)