Skip to content

Commit d78487d

Browse files
authored
chore: use dumi (#72)
1 parent 30ad10e commit d78487d

28 files changed

+114
-24
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ es/
3333
.storybook
3434
.doc
3535
.history
36+
# umi
37+
.umi
38+
.umi-production
39+
.umi-test

.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-image',
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+
});

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# rc-image
22

3-
---
4-
53
React Image.
64

75
[![NPM version][npm-image]][npm-url] [![CircleCI status][circleci-image]][circleci-url] [![Test coverage][codecov-image]][codecov-url] [![Dependencies][david-image]][david-url] [![DevDependencies][david-dev-image]][david-dev-url] [![npm download][download-image]][download-url] [![bundle size][bundlephobia-image]][bundlephobia-url]
@@ -34,8 +32,6 @@ React Image.
3432
- [x] Fallback
3533
- [x] Multiple Preview
3634

37-
### Keyboard
38-
3935
## install
4036

4137
[![rc-image](https://nodei.co/npm/rc-image.png)](https://npmjs.org/package/rc-image)
@@ -47,7 +43,7 @@ npm install
4743
npm start
4844
```
4945

50-
```jsx
46+
```js
5147
const Image = require('rc-image');
5248

5349
ReactDOM.render(
@@ -70,7 +66,7 @@ ReactDOM.render(
7066

7167
preview the merged src
7268

73-
```jsx
69+
```js
7470
const Image = require('rc-image');
7571

7672
ReactDOM.render(

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/controlled.md

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

docs/demo/controlledWithGroup.md

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

docs/demo/fallback.md

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

docs/demo/placeholder.md

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

docs/demo/previewgroup.md

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

docs/demo/thumbnail.md

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

0 commit comments

Comments
 (0)