diff --git a/docs/.vitepress/vitepress-plugin-github-issues.mts b/docs/.vitepress/vitepress-plugin-github-issues.mts index 731481a..5c43325 100644 --- a/docs/.vitepress/vitepress-plugin-github-issues.mts +++ b/docs/.vitepress/vitepress-plugin-github-issues.mts @@ -135,6 +135,14 @@ function copyFile(source: string, destination: string) { } } +// 在文件开头插入内容 +function prependToFile(filePath: string, text: string) { + const content = fs.readFileSync(filePath, 'utf-8'); + const updatedContent = `${text}\n\n${content}`; + fs.writeFileSync(filePath, updatedContent, 'utf-8'); + console.log(`Prepended text to ${filePath}`); +} + function replaceGithubAssetUrls(content: string, githubProxy: string): string { const pattern1 = /https:\/\/github\.com\/[^\/]+\/[^\/]+\/assets\/[\w-]+/g; const pattern2 = /https:\/\/github\.com\/user-attachments\/assets\/[\w-]+/g; @@ -182,6 +190,7 @@ export default function GitHubIssuesPlugin(options: GitHubIssuesPluginOptions): const changelogSource = path.join(process.cwd(), '../CHANGELOG.md'); const changelogDestination = path.join(docsDir, 'changelog.md'); copyFile(changelogSource, changelogDestination); + prependToFile(changelogDestination, '# 变更日志'); for (const issue of issues) { // 仅处理包含 "文档" 标签的 issue diff --git a/xiaomusic/static/default/index.html b/xiaomusic/static/default/index.html index 41a0120..bb516a7 100644 --- a/xiaomusic/static/default/index.html +++ b/xiaomusic/static/default/index.html @@ -26,7 +26,7 @@

小爱音箱播放器 - 版本 + 版本 1.0.0

diff --git a/xiaomusic/static/default/setting.html b/xiaomusic/static/default/setting.html index 0190e43..17ee07d 100644 --- a/xiaomusic/static/default/setting.html +++ b/xiaomusic/static/default/setting.html @@ -31,7 +31,7 @@ var vConsole = new window.VConsole();

小爱音箱设置面板 - (版本未知) + (版本未知)


diff --git a/xiaomusic/static/default_past/index.html b/xiaomusic/static/default_past/index.html index fe50cb2..935166d 100644 --- a/xiaomusic/static/default_past/index.html +++ b/xiaomusic/static/default_past/index.html @@ -30,7 +30,7 @@ var vConsole = new window.VConsole();

小爱音箱操控面板 - (版本未知) + (版本未知)


diff --git a/xiaomusic/static/default_past/setting.html b/xiaomusic/static/default_past/setting.html index 82d2688..e32045a 100644 --- a/xiaomusic/static/default_past/setting.html +++ b/xiaomusic/static/default_past/setting.html @@ -30,7 +30,7 @@ var vConsole = new window.VConsole();

小爱音箱设置面板 - (版本未知) + (版本未知)