Skip to content

Commit c4023f5

Browse files
authored
chore: use dumi (#240)
* chore: use dumi * update
1 parent 08b9c49 commit c4023f5

20 files changed

+85
-22
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: 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: 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-tooltip',
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+
});

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Online examples: <https://react-component.github.io/tooltip/examples/>
202202
## Accessibility
203203

204204
For accessibility purpose you can use the `id` prop to link your tooltip with another element. For example attaching it to an input element:
205-
```jsx
205+
```js
206206
<Tooltip
207207
...
208208
id={this.props.name}>

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

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

docs/demo/formError.md

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

docs/demo/onVisibleChange.md

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

docs/demo/placement.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## placement
2+
3+
<code src="../examples/placement.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">

0 commit comments

Comments
 (0)