Skip to content

Commit 8085da9

Browse files
authored
chore: use dumi (#366)
* chore: use dumi * update * update
1 parent f9b55d6 commit 8085da9

38 files changed

+140
-43
lines changed

.editorconfig

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
# top-most EditorConfig file
1+
# http://editorconfig.org
22
root = true
33

4-
# Unix-style newlines with a newline ending every file
5-
[*.{js,css}]
6-
end_of_line = lf
7-
insert_final_newline = true
4+
[*]
85
indent_style = space
96
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab
17+

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ es
2929
coverage
3030
yarn.lock
3131
package-lock.json
32-
.vscode
32+
.vscode
33+
34+
# umi
35+
.umi
36+
.umi-production
37+
.umi-test
38+
.env.local

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

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
## 8.1.0 / 2020-05-08
54

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44

55
React Menu Component. port from https://github.com/kissyteam/menu
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-menu.svg?style=flat-square
1610
[npm-url]: http://npmjs.org/package/rc-menu

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<embed src="../CHANGELOG.md"></embed>

docs/demo/antd-switch.md

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

docs/demo/antd.md

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

docs/demo/custom-icon.md

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

docs/demo/fragment.md

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

0 commit comments

Comments
 (0)