Built with mdBook. Available in English and Chinese (zh-CN).
cargo install mdbook
cargo install mdbook-i18n-helpers# English (opens browser with live-reload)
mdbook serve --open
# Chinese
MDBOOK_BOOK__LANGUAGE=zh-CN mdbook serve -d book/zh-CN --open# English
mdbook build
# Chinese
MDBOOK_BOOK__LANGUAGE=zh-CN mdbook build -d book/zh-CNAfter editing English source files in src/, re-extract and update translations:
# Re-extract translatable strings
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' mdbook build -d po
# Apply translations to zh-CN.po
python3 translate.py
# Verify Chinese build
MDBOOK_BOOK__LANGUAGE=zh-CN mdbook build -d book/zh-CN