mirror of
https://gitea.redwind.top/Austin/subscription
synced 2024-11-16 00:42:20 +08:00
chore: 更新文档展示结构
This commit is contained in:
parent
3a046f9ef8
commit
081f486747
3
AppListTemplate.md
Normal file
3
AppListTemplate.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# 适配 APP 列表
|
||||
|
||||
--APP_LIST--
|
|
@ -6,12 +6,10 @@ GKD 默认订阅规则
|
|||
|
||||
当前订阅文件已适配 --APP_SIZE-- 个 APP, 共有 --GROUP_SIZE-- 规则组
|
||||
|
||||
查看 [适配 APP 列表](./AppList.md)
|
||||
|
||||
如何编写订阅/贡献此项目 -> [CONTRIBUTING.md](./CONTRIBUTING.md)
|
||||
|
||||
## 适配 APP 列表
|
||||
|
||||
--APP_LIST--
|
||||
|
||||
## 感谢以下开发者的贡献
|
||||
|
||||
![img](https://contrib.rocks/image?repo=gkd-kit/subscription&_v=--VERSION--)
|
||||
|
|
11
src/file.ts
11
src/file.ts
|
@ -343,7 +343,14 @@ export const updateReadMeMd = async (
|
|||
.reduce((p, c) => p + (c.groups?.length || 0), 0)
|
||||
.toString(),
|
||||
)
|
||||
.replaceAll('--VERSION--', (newConfig.version || 0).toString())
|
||||
.replaceAll('--APP_LIST--', appListText);
|
||||
.replaceAll('--VERSION--', (newConfig.version || 0).toString());
|
||||
await fs.writeFile(process.cwd() + '/README.md', readMeMdText);
|
||||
const appListTemplateMd = await fs.readFile(
|
||||
process.cwd() + '/AppListTemplate.md',
|
||||
'utf-8',
|
||||
);
|
||||
await fs.writeFile(
|
||||
process.cwd() + '/AppList.md',
|
||||
appListTemplateMd.replaceAll('--APP_LIST--', appListText),
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user