Skip to content

Commit 36f0b29

Browse files
committed
fix: update hardcoded changelog path 10-changelog → 11-changelog
- plugins/changelog-json-plugin.ts: fix build-breaking path reference - scripts/backfill-en-covers.mjs: fix utility script path - scripts/generate-changelog-cover.mjs: fix utility script path
1 parent 6b0ae73 commit 36f0b29

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎plugins/changelog-json-plugin.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Docusaurus 插件:构建时生成 changelog.json
33
*
4-
* 读取 docs/05-more/10-changelog/v*.md,解析 frontmatter 和 markdown sections,
4+
* 读取 docs/05-more/11-changelog/v*.md,解析 frontmatter 和 markdown sections,
55
* 输出结构化 JSON 到 static/api/changelog.json(开发+构建均可用)。
66
*/
77

@@ -137,7 +137,7 @@ function writeChangelogJson(targetDir: string, data: ChangelogJson): void {
137137
}
138138

139139
export default function changelogJsonPlugin(context: LoadContext): Plugin {
140-
const changelogDir = path.join(context.siteDir, 'docs', '05-more', '10-changelog')
140+
const changelogDir = path.join(context.siteDir, 'docs', '05-more', '11-changelog')
141141

142142
return {
143143
name: 'changelog-json-plugin',

‎scripts/backfill-en-covers.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const sharp = require('sharp')
1919

2020
const __dirname = dirname(fileURLToPath(import.meta.url))
2121
const ROOT = resolve(__dirname, '..')
22-
const ZH_DIR = resolve(ROOT, 'docs/05-more/10-changelog')
23-
const EN_DIR = resolve(ROOT, 'i18n/en/docusaurus-plugin-content-docs/current/05-more/10-changelog')
22+
const ZH_DIR = resolve(ROOT, 'docs/05-more/11-changelog')
23+
const EN_DIR = resolve(ROOT, 'i18n/en/docusaurus-plugin-content-docs/current/05-more/11-changelog')
2424
const IMG_DIR = resolve(ROOT, 'static/img/changelog')
2525

2626
// 从 generate-changelog-cover.mjs 中导入共享的函数和常量

‎scripts/generate-changelog-cover.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const sharp = require('sharp')
3030

3131
const __dirname = dirname(fileURLToPath(import.meta.url))
3232
const ROOT = resolve(__dirname, '..')
33-
const CHANGELOG_DIR_ZH = resolve(ROOT, 'docs/05-more/10-changelog')
34-
const CHANGELOG_DIR_EN = resolve(ROOT, 'i18n/en/docusaurus-plugin-content-docs/current/05-more/10-changelog')
33+
const CHANGELOG_DIR_ZH = resolve(ROOT, 'docs/05-more/11-changelog')
34+
const CHANGELOG_DIR_EN = resolve(ROOT, 'i18n/en/docusaurus-plugin-content-docs/current/05-more/11-changelog')
3535
const IMG_DIR = resolve(ROOT, 'static/img/changelog')
3636

3737
// 输出宣传图尺寸(文字叠加层布局按此尺寸计算)

0 commit comments

Comments
 (0)