Skip to content

Commit ec21fb5

Browse files
authored
chore: update dumi config (#9)
* chore: update dumi config * up * Update .umirc.ts
1 parent 19048b8 commit ec21fb5

File tree

12 files changed

+44
-18
lines changed

12 files changed

+44
-18
lines changed

.umirc.ts

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1-
export default {
2-
exportStatic: {}
3-
}
1+
import { defineConfig } from 'dumi';
2+
3+
export default defineConfig({
4+
title: 'rc-overflow',
5+
favicon:
6+
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
7+
logo:
8+
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
9+
exportStatic: {},
10+
outputPath: 'docs-dist',
11+
resolve: {
12+
examples: ['none'],
13+
},
14+
styles: [
15+
`
16+
.markdown table {
17+
width: auto !important;
18+
}
19+
`,
20+
]
21+
});

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# rc-overflow 🐾
22

3-
[![NPM version][npm-image]][npm-url]
4-
[![npm download][download-image]][download-url]
5-
[![build status][github-actions-image]][github-actions-url]
6-
[![Codecov][codecov-image]][codecov-url]
7-
[![Dependencies][david-image]](david-url)
8-
[![DevDependencies][david-dev-image]][david-dev-url]
9-
[![bundle size][bundlephobia-image]][bundlephobia-url]
3+
[![NPM version][npm-image]][npm-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![npm download][download-image]][download-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![Dependencies][david-image]](david-url) [![DevDependencies][david-dev-image]][david-dev-url] [![bundle size][bundlephobia-image]][bundlephobia-url]
104

115
[npm-image]: http://img.shields.io/npm/v/rc-overflow.svg?style=flat-square
126
[npm-url]: http://npmjs.org/package/rc-overflow
@@ -27,15 +21,15 @@ Auto collapse box when overflow
2721

2822
## Live Demo
2923

30-
https://react-component.github.io/overflow/
24+
https://overflow-react-component.vercel.app/
3125

3226
## Install
3327

3428
[![rc-overflow](https://nodei.co/npm/rc-overflow.png)](https://npmjs.org/package/rc-overflow)
3529

3630
## Usage
3731

38-
```tsx
32+
```ts
3933
// TODO
4034
```
4135

docs/demo/base.md

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

docs/demo/blink.md

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

docs/demo/fill-width.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## fill-width
2+
3+
<code src="../../examples/fill-width.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-overflow
3+
---
4+
5+
<embed src="../README.md"></embed>

examples/basic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import Overflow from '../src';
2+
import Overflow from 'rc-overflow';
33
import '../assets/index.less';
44
import './common.less';
55

examples/blink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import Overflow from '../src';
2+
import Overflow from 'rc-overflow';
33
import '../assets/index.less';
44
import './common.less';
55

examples/fill-width.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import Overflow from '../src';
2+
import Overflow from 'rc-overflow';
33
import '../assets/index.less';
44
import './common.less';
55

now.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"src": "package.json",
77
"use": "@now/static-build",
8-
"config": { "distDir": "dist" }
8+
"config": { "distDir": "docs-dist" }
99
}
1010
],
1111
"routes": [

0 commit comments

Comments
 (0)