Skip to content

Commit afc7c9e

Browse files
authored
chore: use dumi (#10)
* chore: use dumi * fix test
1 parent 3f86668 commit afc7c9e

File tree

13 files changed

+54
-16
lines changed

13 files changed

+54
-16
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ yarn.lock
2929
package-lock.json
3030
coverage/
3131
.doc
32+
# umi
33+
.umi
34+
.umi-production
35+
.umi-test
36+
.env.local

.umirc.ts

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

HISTORY.md renamed to CHANGELOG.md

File renamed without changes.

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# rc-textarea
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-textarea.svg?style=flat-square
126
[npm-url]: http://npmjs.org/package/rc-textarea

docs/demo/autoSize.md

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

docs/demo/simple.md

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

examples/autoSize.js renamed to docs/examples/autoSize.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-console */
22
import React, { useState } from 'react';
3-
import Textarea from '../src/index';
3+
import Textarea from 'rc-textarea';
44

55
export default function App() {
66
const [value, setValue] = useState('hello\nworld');

examples/simple.js renamed to docs/examples/simple.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-console */
22
import React, { useState } from 'react';
3-
import Textarea from '../src/index';
3+
import Textarea from 'rc-textarea';
44

55
export default function App() {
66
const [value, setValue] = useState('');

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-textarea
3+
---
4+
5+
<embed src="../README.md"></embed>

index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)