Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
chore: 更新文档展示结构
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Nov 18, 2023
1 parent 3a046f9 commit 081f486
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions AppListTemplate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 适配 APP 列表

--APP_LIST--
6 changes: 2 additions & 4 deletions Template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ GKD 默认订阅规则

当前订阅文件已适配 --APP_SIZE-- 个 APP, 共有 --GROUP_SIZE-- 规则组

如何编写订阅/贡献此项目 -> [CONTRIBUTING.md](./CONTRIBUTING.md)

## 适配 APP 列表
查看 [适配 APP 列表](./AppList.md)

--APP_LIST--
如何编写订阅/贡献此项目 -> [CONTRIBUTING.md](./CONTRIBUTING.md)

## 感谢以下开发者的贡献

Expand Down
11 changes: 9 additions & 2 deletions src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
};

0 comments on commit 081f486

Please sign in to comment.