Skip to content

Commit af67623

Browse files
ajunerxrkffgg
andauthored
chore: use dumi (#158)
* chore: use dumi * update * Update README.md * Delete index.d.ts * Update package.json * Update Notification.tsx * Update CHANGELOG.md * Delete changelog.md Co-authored-by: xrkffgg <xrkffgg@gmail.com>
1 parent b6cf3a9 commit af67623

File tree

16 files changed

+80
-83
lines changed

16 files changed

+80
-83
lines changed

.editorconfig

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
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

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ es
3030
coverage
3131
yarn.lock
3232
package-lock.json
33+
34+
# umi
35+
.umi
36+
.umi-production
37+
.umi-test
38+
.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-notification',
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# History
1+
# Changelog
2+
3+
- https://github.com/react-component/notification/releases
24

35
## 4.3.0
46

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
# rc-notification
2-
---
32

43
React Notification UI Component
54

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

147
[npm-image]: http://img.shields.io/npm/v/rc-notification.svg?style=flat-square
158
[npm-url]: http://npmjs.org/package/rc-notification
@@ -52,7 +45,7 @@ Notification.newInstance({}, notification => {
5245

5346
http://localhost:8001
5447

55-
online example: http://react-component.github.io/notification/
48+
online example: https://notification-react-component.vercel.app
5649

5750
## API
5851

docs/demo/hooks.md

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

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.tsx">
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* eslint-disable no-console */
22
import React from 'react';
3-
import Notification from '../src';
4-
import '../assets/index.less';
5-
import { NotificationInstance } from '../src/Notification';
3+
import Notification from 'rc-notification';
4+
import '../../assets/index.less';
5+
import { NotificationInstance } from 'rc-notification/Notification';
66

77
let notificationInstance: NotificationInstance = null;
88
Notification.newInstance({}, n => {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable no-console */
22
import React from 'react';
3-
import Notification from '../src';
4-
import '../assets/index.less';
3+
import Notification from 'rc-notification';
4+
import '../../assets/index.less';
55

6-
let notification = null;
6+
let notification: any = null;
77
Notification.newInstance(
88
{
99
maxCount: 5,

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

0 commit comments

Comments
 (0)