Skip to content

Commit 9167dae

Browse files
committed
chore: update dumi config
1 parent 19048b8 commit 9167dae

File tree

12 files changed

+42
-17
lines changed

12 files changed

+42
-17
lines changed

.umirc.ts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
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+
resolve: {
11+
examples: ['none'],
12+
},
13+
styles: [
14+
`
15+
.markdown table {
16+
width: auto !important;
17+
}
18+
`,
19+
]
20+
});

README.md

Lines changed: 2 additions & 8 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
@@ -35,7 +29,7 @@ https://react-component.github.io/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)