-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump [email protected] (#232)
* chore: bump [email protected] * chore: create package-lock.json add flag 'igonre-scripts' && update snapshots
- Loading branch information
Showing
15 changed files
with
122 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// more config: https://d.umijs.org/config | ||
import { defineConfig } from 'dumi'; | ||
|
||
export default defineConfig({ | ||
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'], | ||
themeConfig: { | ||
name: 'rc-dropdown', | ||
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', | ||
}, | ||
outputPath: '.docs', | ||
exportStatic: {}, | ||
styles: [ | ||
` | ||
section.dumi-default-header-left { | ||
width: 240px; | ||
} | ||
`, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## Arrow | ||
--- | ||
title: arrow | ||
nav: | ||
title: Demo | ||
path: /demo | ||
--- | ||
|
||
<code src="../examples/arrow.jsx" /> | ||
<code src="../examples/arrow.jsx"></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## Context Menu | ||
--- | ||
title: context-menu | ||
nav: | ||
title: Demo | ||
path: /demo | ||
--- | ||
|
||
<code src="../examples/context-menu.jsx" /> | ||
<code src="../examples/context-menu.jsx"></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## Dropdown Menu Width | ||
--- | ||
title: dropdown-menu-width | ||
nav: | ||
title: Demo | ||
path: /demo | ||
--- | ||
|
||
<code src="../examples/dropdown-menu-width.jsx" /> | ||
<code src="../examples/dropdown-menu-width.jsx"></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# Multiple | ||
--- | ||
title: multiple | ||
nav: | ||
title: Demo | ||
path: /demo | ||
--- | ||
|
||
|
||
<code src="../examples/multiple.jsx" /> | ||
<code src="../examples/multiple.jsx"></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# Overlay Callback | ||
--- | ||
title: overlay-callback | ||
nav: | ||
title: Demo | ||
path: /demo | ||
--- | ||
|
||
<code src="../examples/overlay-callback.jsx" /> | ||
<code src="../examples/overlay-callback.jsx"></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# Simple | ||
--- | ||
title: simple | ||
nav: | ||
title: Demo | ||
path: /demo | ||
--- | ||
|
||
<code src="../examples/simple.jsx" /> | ||
<code src="../examples/simple.jsx"></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
hero: | ||
title: rc-dropdown | ||
description: React Dropdown Component | ||
--- | ||
|
||
<embed src="../README.md"></embed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
用于 dumi 改造使用, | ||
可用于将 examples 的文件批量修改为 demo 引入形式, | ||
其他项目根据具体情况使用。 | ||
*/ | ||
|
||
const fs = require('fs'); | ||
const glob = require('glob'); | ||
|
||
const paths = glob.sync('./docs/examples/*.jsx'); | ||
|
||
paths.forEach((path) => { | ||
const name = path.split('/').pop().split('.')[0]; | ||
fs.writeFile( | ||
`./docs/demo/${name}.md`, | ||
`--- | ||
title: ${name} | ||
nav: | ||
title: Demo | ||
path: /demo | ||
--- | ||
<code src="../examples/${name}.jsx"></code> | ||
`, | ||
'utf8', | ||
function (error) { | ||
if (error) { | ||
console.log(error); | ||
return false; | ||
} | ||
console.log(`${name} 更新成功~`); | ||
}, | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters