feat: refresh course through workflow and goal loops

This commit is contained in:
Haoran
2026-07-30 19:14:04 +08:00
parent 2dd1852d9e
commit cb8fae1bdd
125 changed files with 10882 additions and 7661 deletions

View File

@@ -166,7 +166,7 @@ function copyChapterAssets(chapter: ChapterSource): ChapterImage[] {
}
function localeReadmeName(locale: Locale): string {
if (locale === "zh") return "README.md";
if (locale === "en") return "README.md";
return `README.${locale}.md`;
}
@@ -178,7 +178,7 @@ function rewriteChapterMarkdown(
let next = content;
next = next.replace(
/^\[中文\]\(README\.md\)\s*.\s*\[English\]\(README\.en\.md\)\s*.\s*\[日本語\]\(README\.ja\.md\)\n\n?/m,
/^\[English\]\(README\.md\)\s*.\s*\[中文\]\(README\.zh\.md\)\s*.\s*\[日本語\]\(README\.ja\.md\)\n\n?/m,
""
);