-
-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use dumi generator document site
- Loading branch information
Showing
9 changed files
with
89 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 |
---|---|---|
|
@@ -32,3 +32,4 @@ tools/dict/error.log | |
coverage/ | ||
package-lock.json | ||
yarn.lock | ||
.umi/ |
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,41 @@ | ||
// import { readdirSync } from 'fs'; | ||
// import { join } from 'path'; | ||
import { defineConfig } from 'dumi'; | ||
|
||
// const headPkgList = []; | ||
// // utils must build before core | ||
// // runtime must build before renderer-react | ||
// const pkgList = readdirSync(join(__dirname, 'packages')).filter( | ||
// (pkg) => pkg.charAt(0) !== '.' && !headPkgList.includes(pkg), | ||
// ); | ||
// const alias = pkgList.reduce((pre, pkg) => { | ||
// pre[`@alipay/${pkg}`] = join(__dirname, 'packages', pkg, 'src'); | ||
// return { | ||
// ...pre, | ||
// }; | ||
// }, {}); | ||
|
||
export default defineConfig({ | ||
title: 'pīnyīn', | ||
favicon: | ||
'https://gw.alipayobjects.com/mdn/rms_f6322a/afts/img/A*VqPXS4ODZTMAAAAAAAAAAAAAARQnAQ', | ||
logo: | ||
'https://gw.alipayobjects.com/mdn/rms_f6322a/afts/img/A*bGz9QbNudekAAAAAAAAAAAAAARQnAQ', | ||
outputPath: 'docs-dist/dist', | ||
mode: 'site', | ||
exportStatic: {}, | ||
hash: true, | ||
resolve: { | ||
includes: ['.'], | ||
}, | ||
locales: [ | ||
['zh-CN', '中文'], | ||
['en-US', 'English'], | ||
], | ||
// Because of using GitHub Pages | ||
base: '/', | ||
publicPath: '/', | ||
// alias, | ||
mfsu: {}, | ||
// more config: https://d.umijs.org/config | ||
}); |
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,5 +1,7 @@ | ||
# CHANGELOG | ||
|
||
---- | ||
|
||
## 2.10.2 (2021-04-11) | ||
|
||
- feat(cli): pinyin cli support group by phrases. | ||
|
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
File renamed without changes.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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