Skip to content

Commit bb13d2c

Browse files
authored
chore: user dumi (#122)
* chore: user dumi * fix lint
1 parent a107a64 commit bb13d2c

21 files changed

+113
-20
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ lib/
77
~*
88
yarn.lock
99
package-lock.json
10-
!tests/__mocks__/rc-util/lib
10+
!tests/__mocks__/rc-util/lib
11+
12+
# umi
13+
.umi
14+
.umi-production
15+
.umi-test
16+
.env.local

.umirc.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// more config: https://d.umijs.org/config
2+
import { defineConfig } from 'dumi';
3+
4+
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'],
14+
},
15+
styles: [
16+
`
17+
.markdown table {
18+
width: auto !important;
19+
}
20+
`,
21+
]
22+
});

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
React Virtual List Component which worked with animation.
44

5-
[![NPM version][npm-image]][npm-url]
6-
[![build status][github-actions-image]][github-actions-url]
7-
[![Test coverage][coveralls-image]][coveralls-url]
8-
[![node version][node-image]][node-url]
9-
[![npm download][download-image]][download-url]
5+
[![NPM version][npm-image]][npm-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Test coverage][coveralls-image]][coveralls-url] [![node version][node-image]][node-url] [![npm download][download-image]][download-url]
106

117
[npm-image]: http://img.shields.io/npm/v/rc-virtual-list.svg?style=flat-square
128
[npm-url]: http://npmjs.org/package/rc-virtual-list

docs/demo/animate.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## animate
2+
3+
<code src="../../examples/animate.tsx">

docs/demo/basic.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## basic
2+
3+
<code src="../../examples/basic.tsx">

docs/demo/height.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## height
2+
3+
<code src="../../examples/height.tsx">

docs/demo/no-virtual.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## no-virtual
2+
3+
<code src="../../examples/no-virtual.tsx">

docs/demo/switch.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## switch
2+
3+
<code src="../../examples/switch.tsx">

docs/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: rc-virtual-list
3+
---
4+
5+
<embed src="../README.md"></embed>

now.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
"use": "@now/static-build",
88
"config": { "distDir": ".doc" }
99
}
10+
],
11+
"routes": [
12+
{ "src": "/(.*)", "dest": "/dist/$1" }
1013
]
1114
}

0 commit comments

Comments
 (0)