chore: 更新文档展示结构

This commit is contained in:
lisonge
2023-11-19 00:21:17 +08:00
parent 3a046f9ef8
commit 081f486747
3 changed files with 14 additions and 6 deletions

View File

@@ -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),
);
};