feat(website): add multilingual editions and translation workflow

This commit is contained in:
N0zoM1z0
2026-10-11 17:24:46 +08:00
committed by Ysopwnable
parent ff57b75e22
commit a2d3338e90
79 changed files with 250648 additions and 471 deletions
+8 -3
View File
@@ -76,9 +76,14 @@ def prepare_notes_example(site):
print(f"Prepared examples/notes-example.zip ({len(EXAMPLE_FILES)} files).")
if __name__ == "__main__":
root = Path(__file__).resolve().parent.parent
site = root / "website/public"
def prepare_assets(site):
"""Finish the shared publish artifact before it replaces the current preview."""
prepare_sharing_image(site)
prepare_sitemap(site)
prepare_notes_example(site)
if __name__ == "__main__":
root = Path(__file__).resolve().parent.parent
from website_i18n import build_translations
build_translations(root, root / "website/_site", finalize=prepare_assets)