Skip to content

Commit 3cad807

Browse files
authored
chore: use dumi (#325)
1 parent 07a3eda commit 3cad807

36 files changed

+146
-44
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,9 @@ package-lock.json
3030
coverage/
3131
.doc
3232
dist
33-
.vscode
33+
.vscode
34+
# umi
35+
.umi
36+
.umi-production
37+
.umi-test
38+
.env.local

.umirc.ts

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

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
# rc-pagination
22

3-
---
4-
53
React Pagination Component.
64

7-
[![NPM version][npm-image]][npm-url]
8-
[![build status][github-actions-image]][github-actions-url]
9-
[![Test coverage][coveralls-image]][coveralls-url]
10-
[![codecov](https://codecov.io/gh/react-component/pagination/branch/master/graph/badge.svg)](https://codecov.io/gh/react-component/pagination)
11-
[![Dependencies](https://img.shields.io/david/react-component/pagination.svg?style=flat-square)](https://david-dm.org/react-component/pagination)
12-
[![DevDependencies](https://img.shields.io/david/dev/react-component/pagination.svg?style=flat-square)](https://david-dm.org/react-component/pagination?type=dev)
13-
[![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] [![codecov](https://codecov.io/gh/react-component/pagination/branch/master/graph/badge.svg)](https://codecov.io/gh/react-component/pagination) [![Dependencies](https://img.shields.io/david/react-component/pagination.svg?style=flat-square)](https://david-dm.org/react-component/pagination) [![DevDependencies](https://img.shields.io/david/dev/react-component/pagination.svg?style=flat-square)](https://david-dm.org/react-component/pagination?type=dev) [![npm download][download-image]][download-url]
146

157
[npm-image]: http://img.shields.io/npm/v/rc-pagination.svg?style=flat-square
168
[npm-url]: http://npmjs.org/package/rc-pagination
@@ -32,7 +24,7 @@ npm start
3224

3325
http://localhost:9001
3426

35-
online example: http://react-component.github.io/pagination/
27+
online example: https://pagination-react-component.vercel.app
3628

3729
## Install
3830

docs/demo/default.md

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

docs/demo/itemRender.md

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

docs/demo/jumper.md

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

docs/demo/jumperWithGoButton.md

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

docs/demo/lessPages.md

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

docs/demo/locale.md

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

0 commit comments

Comments
 (0)