Skip to content

Commit 79dadcb

Browse files
authored
chore: use dumi (#373)
1 parent a17113b commit 79dadcb

36 files changed

+104
-50
lines changed

.eslintrc.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ module.exports = {
1515
'react/no-unused-prop-types': 0,
1616
'max-len': 0,
1717
'max-classes-per-file': 0,
18-
'import/no-extraneous-dependencies': [
19-
'error',
20-
{ devDependencies: true, optionalDependencies: false, peerDependencies: false },
21-
],
18+
'import/no-extraneous-dependencies': 0,
2219
'brace-style': 0,
2320
'no-unused-expressions': 0,
2421
'@typescript-eslint/no-unused-expressions': 1,

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ es
3131
coverage
3232
yarn.lock
3333
package-lock.json
34+
35+
# umi
36+
.umi
37+
.umi-production
38+
.umi-test
39+
.env.local

.umirc.ts

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

HISTORY.md renamed to CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# History
2-
----
1+
# Changelog
32

43
https://github.com/react-component/tabs/releases
54

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44

55
React Tabs component.
66

7-
[![NPM version][npm-image]][npm-url]
8-
[![build status][github-actions-image]][github-actions-url]
9-
[![Test coverage][coveralls-image]][coveralls-url]
10-
[![Dependencies][david-image]][david-url]
11-
[![DevDependencies][david-dev-image]][david-dev-url]
12-
[![npm download][download-image]][download-url]
13-
[![bundle size][bundlephobia-image]][bundlephobia-url]
7+
[![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] [![Dependencies][david-image]][david-url] [![DevDependencies][david-dev-image]][david-dev-url] [![npm download][download-image]][download-url] [![bundle size][bundlephobia-image]][bundlephobia-url]
148

159
[npm-image]: http://img.shields.io/npm/v/rc-tabs.svg?style=flat-square
1610
[npm-url]: http://npmjs.org/package/rc-tabs
@@ -53,7 +47,7 @@ online example: https://tabs.react-component.now.sh/
5347

5448
## Usage
5549

56-
```jsx
50+
```js
5751
import Tabs, { TabPane } from 'rc-tabs';
5852

5953
var callback = function(key) {};

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

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

docs/demo/mix.md

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

docs/demo/overflow.md

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

docs/demo/position.md

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

0 commit comments

Comments
 (0)