Skip to content

Commit

Permalink
chore: bump dumi@2.2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
RedJue committed Oct 23, 2023
1 parent c4d78ab commit f76a3cc
Show file tree
Hide file tree
Showing 32 changed files with 257 additions and 62 deletions.
14 changes: 14 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from 'dumi';
import path from 'path';

export default defineConfig({
alias: {
'rc-select$': path.resolve('src'),
'rc-select/es': path.resolve('src'),
},
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
name: 'Select',
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
});
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ tsconfig.test.json
.storybook
storybook/index.js
.doc
.umi
.umi
.dumi/tmp
.dumi/tmp-production
10 changes: 8 additions & 2 deletions docs/demo/auto-adjust-dropdown.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## auto-adjust-dropdown
<code src="../examples/auto-adjust-dropdown.tsx">
---
title: auto-adjust-dropdown
nav:
title: Demo
path: /demo
---

<code src="../examples/auto-adjust-dropdown.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/combobox.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## combobox
<code src="../examples/combobox.tsx">
---
title: combobox
nav:
title: Demo
path: /demo
---

<code src="../examples/combobox.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/controlled.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## controlled
<code src="../examples/controlled.tsx">
---
title: controlled
nav:
title: Demo
path: /demo
---

<code src="../examples/controlled.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/custom-icon.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## custom-icon
<code src="../examples/custom-icon.tsx">
---
title: custom-icon
nav:
title: Demo
path: /demo
---

<code src="../examples/custom-icon.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/custom-selector.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## custom-selector
<code src="../examples/custom-selector.tsx">
---
title: custom-selector
nav:
title: Demo
path: /demo
---

<code src="../examples/custom-selector.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/custom-tags.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## custom-tags
<code src="../examples/custom-tags.tsx">
---
title: custom-tags
nav:
title: Demo
path: /demo
---

<code src="../examples/custom-tags.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/dropdownRender.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## dropdownRender
<code src="../examples/dropdownRender.tsx">
---
title: dropdownRender
nav:
title: Demo
path: /demo
---

<code src="../examples/dropdownRender.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/email.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## email
<code src="../examples/email.tsx">
---
title: email
nav:
title: Demo
path: /demo
---

<code src="../examples/email.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/filterSort.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## filterSort
<code src="../examples/filterSort.tsx">
---
title: filterSort
nav:
title: Demo
path: /demo
---

<code src="../examples/filterSort.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/force-suggest.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## force-suggest
<code src="../examples/force-suggest.tsx">
---
title: force-suggest
nav:
title: Demo
path: /demo
---

<code src="../examples/force-suggest.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/getPopupContainer.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## getPopupContainer
<code src="../examples/getPopupContainer.tsx">
---
title: getPopupContainer
nav:
title: Demo
path: /demo
---

<code src="../examples/getPopupContainer.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/loading.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## loading
<code src="../examples/loading.tsx">
---
title: loading
nav:
title: Demo
path: /demo
---

<code src="../examples/loading.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/mul-suggest.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## mul-suggest
<code src="../examples/mul-suggest.tsx">
---
title: mul-suggest
nav:
title: Demo
path: /demo
---

<code src="../examples/mul-suggest.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/mul-tag-suggest.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## mul-tag-suggest
<code src="../examples/mul-tag-suggest.tsx">
---
title: mul-tag-suggest
nav:
title: Demo
path: /demo
---

<code src="../examples/mul-tag-suggest.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/multiple-readonly.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## multiple-readonly
<code src="../examples/multiple-readonly.tsx">
---
title: multiple-readonly
nav:
title: Demo
path: /demo
---

<code src="../examples/multiple-readonly.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/multiple.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## multiple
<code src="../examples/multiple.tsx">
---
title: multiple
nav:
title: Demo
path: /demo
---

<code src="../examples/multiple.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/optgroup.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## optgroup
<code src="../examples/optgroup.tsx">
---
title: optgroup
nav:
title: Demo
path: /demo
---

<code src="../examples/optgroup.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/optionFilterProp.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## optionFilterProp
<code src="../examples/optionFilterProp.tsx">
---
title: optionFilterProp
nav:
title: Demo
path: /demo
---

<code src="../examples/optionFilterProp.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/optionLabelProp.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## optionLabelProp
<code src="../examples/optionLabelProp.tsx">
---
title: optionLabelProp
nav:
title: Demo
path: /demo
---

<code src="../examples/optionLabelProp.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/scroll-loading.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## scroll loading
<code src="../examples/scroll-loading.tsx">
---
title: scroll loading
nav:
title: Demo
path: /demo
---

<code src="../examples/scroll-loading.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/single-animation.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## single-animation
<code src="../examples/single-animation.tsx">
---
title: single-animation
nav:
title: Demo
path: /demo
---

<code src="../examples/single-animation.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/single.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## single
<code src="../examples/single.tsx">
---
title: single
nav:
title: Demo
path: /demo
---

<code src="../examples/single.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/singleFieldNames.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## singleFieldNames
<code src="../examples/singleFieldNames.tsx">
---
title: singleFieldNames
nav:
title: Demo
path: /demo
---

<code src="../examples/singleFieldNames.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/suggest.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## suggest
<code src="../examples/suggest.tsx">
---
title: suggest
nav:
title: Demo
path: /demo
---

<code src="../examples/suggest.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/tags.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## tags
<code src="../examples/tags.tsx">
---
title: tags
nav:
title: Demo
path: /demo
---

<code src="../examples/tags.tsx"></code>
10 changes: 8 additions & 2 deletions docs/demo/update-option.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## update-option
<code src="../examples/update-option.tsx">
---
title: update-option
nav:
title: Demo
path: /demo
---

<code src="../examples/update-option.tsx"></code>
7 changes: 7 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
hero:
title: rc-select
description: React Select Component
---

<embed src="../README.md"></embed>
6 changes: 4 additions & 2 deletions now.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": ".doc" }
"config": {
"distDir": "dist"
}
}
]
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@types/react-dom": "^17.0.3",
"babel-jest": "^29.6.1",
"cross-env": "^7.0.0",
"dumi": "^1.1.32",
"dumi": "^2.2.13",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.15.7",
"enzyme-to-json": "^3.4.0",
Expand All @@ -75,4 +75,4 @@
"rc-test": "^7.0.9",
"typescript": "^4.2.3"
}
}
}
24 changes: 19 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,23 @@
"skipLibCheck": true,
"esModuleInterop": true,
"paths": {
"@/*": ["src/*"],
"@@/*": ["src/.umi/*"],
"rc-select": ["src/index.ts"]
}
}
"@/*": [
"src/*"
],
"@@/*": [
".dumi/tmp/*"
],
"rc-select": [
"src/index.ts"
]
},
},
"include": [
".dumi/**/*",
".dumirc.ts",
"./src/**/*.ts",
"./src/**/*.tsx",
"./docs/**/*.tsx",
"./tests/**/*.tsx"
]
}

0 comments on commit f76a3cc

Please sign in to comment.