feat(website): add multilingual editions and translation workflow
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user