Skip to content

Commit

Permalink
chore(core)(docs): drop pinyin (DIYgod#7780)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengkx authored Jun 29, 2021
1 parent 40985a8 commit bdccede
Show file tree
Hide file tree
Showing 11 changed files with 26,104 additions and 636 deletions.
5 changes: 2 additions & 3 deletions docs/.format/sortByHeading.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const file = require('./file');
const pinyin = require('pinyin');

const pinyinCompare = new Intl.Collator('zh-Hans-CN-u-co-pinyin').compare;
const isASCII = (str) => /^[\x00-\x7F]*$/.test(str);

module.exports = {
Expand Down Expand Up @@ -41,7 +40,7 @@ module.exports = {
} else if (ia || ib) {
return ia > ib ? -1 : 1;
} else {
return pinyin.compare(a.title, b.title);
return pinyinCompare(a.title, b.title);
}
})
.map((x) => x.content.join('\n'))
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const pinyin = require('pinyin');
const { pinyin } = require('@napi-rs/pinyin');
const { slugify: _slugify } = require('@vuepress/shared-utils');

module.exports = {
Expand Down
12 changes: 6 additions & 6 deletions docs/anime.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ pageClass: routes

</Route>

## 咚漫

### 漫画更新

<Route author="machsix" path="/dongmanmanhua/:category/:name/:id" example="/dongmanmanhua/COMEDY/xin-xinlingdeshengyin/381" :paramsDesc="['类别','名称','ID']"/>

## 動畫瘋

### 最後更新
Expand All @@ -276,12 +282,6 @@ pageClass: routes

<Route author="maple3142" example="/anigamer/anime/90003" path="/anigamer/anime/:sn" :paramsDesc="['動畫 sn']"/>

## 咚漫

### 漫画更新

<Route author="machsix" path="/dongmanmanhua/:category/:name/:id" example="/dongmanmanhua/COMEDY/xin-xinlingdeshengyin/381" :paramsDesc="['类别','名称','ID']"/>

## 動漫狂

### 漫画更新
Expand Down
12 changes: 6 additions & 6 deletions docs/game.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,18 +530,18 @@ Example:`https://www.iyingdi.com/tz/people/55547` ,id 是 `55547`

</Route>

## 网易大神

### 用户发帖

<Route author="luyuhuang" example="/netease/ds/63dfbaf4117741daaf73404601165843" path="/netease/ds/:id" :paramsDesc="['用户ID']"/>

## 王者荣耀

### 新闻中心

<Route author="Jeason0228 HenryQW" example="/tencent/pvp/newsindex/all" path="/tencent/pvp/newsindex/:type" :paramsDesc="['栏目分类,all=全部,rm=热门,xw=新闻,gg=公告,hd=活动,ss=赛事']"/>

## 网易大神

### 用户发帖

<Route author="luyuhuang" example="/netease/ds/63dfbaf4117741daaf73404601165843" path="/netease/ds/:id" :paramsDesc="['用户ID']"/>

## 小黑盒

### 用户动态
Expand Down
70 changes: 35 additions & 35 deletions docs/government.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ pageClass: routes

</Route>

## 重庆市人民政府

### 两江新区信息公开网

#### 党务公开

<Route author="nczitzk" example="/gov/chongqing/ljxq/dwgk" path="/gov/chongqing/ljxq/dwgk"/>

#### 政务公开

<Route author="nczitzk" example="/gov/chongqing/ljxq/zwgk/lzyj" path="/gov/chongqing/ljxq/zwgk/:caty" :paramsDesc="['分类名']">

| 履职依据 | 公示公告 |
| -------- | -------- |
| lzyj | gsgg |

</Route>

## 广东省人民政府

### 广东省教育厅
Expand Down Expand Up @@ -247,6 +265,20 @@ pageClass: routes

<Route author="nczitzk" example="/gov/caict/caictgd" path="/gov/caict/caictgd"/>

## 中国证券监督管理委员会

### 发审委公告

<Route author="chinobing" example="/csrc/fashenwei" path="/csrc/fashenwei"/>

### 证监会消息

<Route author="chinobing LogicJake" example="/csrc/news/zjhxwfb-xwfbh" path="/csrc/news/:suffix?" :paramsDesc="['支持形如`http://www.csrc.gov.cn/pub/newsite/*/*`的网站,将 newsite 后面的两段网址后缀以 - 连接']" />

### 申请事项进度

<Route author="hillerliao" example="/csrc/auditstatus/:apply_id" path="/csrc/auditstatus" :paramsDesc="['事项类别id, `https://neris.csrc.gov.cn/alappl/home/xkDetail` 列表中各地址的 appMatrCde 参数']"/>

## 中国政府

### 数据
Expand Down Expand Up @@ -318,20 +350,6 @@ pageClass: routes

<Route author="EsuRt" example="/gov/statecouncil/briefing" path="/gov/statecouncil/briefing"/>

## 中国证券监督管理委员会

### 发审委公告

<Route author="chinobing" example="/csrc/fashenwei" path="/csrc/fashenwei"/>

### 证监会消息

<Route author="chinobing LogicJake" example="/csrc/news/zjhxwfb-xwfbh" path="/csrc/news/:suffix?" :paramsDesc="['支持形如`http://www.csrc.gov.cn/pub/newsite/*/*`的网站,将 newsite 后面的两段网址后缀以 - 连接']" />

### 申请事项进度

<Route author="hillerliao" example="/csrc/auditstatus/:apply_id" path="/csrc/auditstatus" :paramsDesc="['事项类别id, `https://neris.csrc.gov.cn/alappl/home/xkDetail` 列表中各地址的 appMatrCde 参数']"/>

## 中国政协网

### 栏目
Expand Down Expand Up @@ -542,12 +560,6 @@ pageClass: routes
| 贝尔法斯特 | `/embassy/uk/belfast` |
| 曼彻斯特 | `/embassy/uk/manchester` |

## 中華民國國防部

### 即時軍事動態

<Route author="nczitzk" example="/gov/taiwan/mnd" path="/gov/taiwan/mnd"/>

## 中华人民共和国国家发展和改革委员会

### 新闻动态
Expand Down Expand Up @@ -645,23 +657,11 @@ pageClass: routes

<Route author="nczitzk" example="/gov/mohurd/policy" path="/gov/mohurd/policy"/>

## 重庆市人民政府

### 两江新区信息公开网

#### 党务公开

<Route author="nczitzk" example="/gov/chongqing/ljxq/dwgk" path="/gov/chongqing/ljxq/dwgk"/>

#### 政务公开

<Route author="nczitzk" example="/gov/chongqing/ljxq/zwgk/lzyj" path="/gov/chongqing/ljxq/zwgk/:caty" :paramsDesc="['分类名']">
## 中華民國國防部

| 履职依据 | 公示公告 |
| -------- | -------- |
| lzyj | gsgg |
### 即時軍事動態

</Route>
<Route author="nczitzk" example="/gov/taiwan/mnd" path="/gov/taiwan/mnd"/>

## 中央纪委国家监委

Expand Down
Loading

0 comments on commit bdccede

Please sign in to comment.