From 95b22e158315917322bbda526be7c409fa6c694f Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 14 Jul 2024 18:12:14 +0800 Subject: [PATCH] docs: add changelog notices (#13003) --- .github/workflows/release-tag.yml | 2 - packages/vant/docs/formatChangelog.mjs | 63 ------------------- .../vant/docs/markdown/changelog.en-US.md | 50 ++------------- .../vant/docs/markdown/changelog.zh-CN.md | 50 ++------------- 4 files changed, 12 insertions(+), 153 deletions(-) delete mode 100644 packages/vant/docs/formatChangelog.mjs diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index e80d449bd..176d2847a 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -18,5 +18,3 @@ jobs: uses: ncipollo/release-action@v1 with: generateReleaseNotes: "true" - body: | - > Please refer to [Changelog](https://vant-ui.github.io/vant/#/en-US/changelog) for all changes. | 请访问 [更新日志](https://vant-ui.github.io/vant/#/zh-CN/changelog) 了解所有更新。 diff --git a/packages/vant/docs/formatChangelog.mjs b/packages/vant/docs/formatChangelog.mjs deleted file mode 100644 index 1f2dcde38..000000000 --- a/packages/vant/docs/formatChangelog.mjs +++ /dev/null @@ -1,63 +0,0 @@ -/** - * This script is used to format changelog which is generated by GitHub - * because we need to paste it to the changelog page of Vant website. - * - * translation prompt: - * You are a professional software developer who is proficient in both English and Chinese. Please translate the following software changelog from English to Chinese, keeping the header of the commit information in English and the position of the contributor information unchanged. - */ - -// paste changelog here -const changelog = ``; - -changelog.split('\n').map((line) => { - // Skip unused lines - if ( - line.startsWith('> Please refer to') || - line.startsWith('release:') || - line.includes("What's Changed") || - line.includes('Full Changelog') || - line.includes('docs(changelog)') - ) { - return; - } - - if (line.startsWith('