Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Dora User Guide

Built with mdBook. Available in English and Chinese (zh-CN).

Prerequisites

cargo install mdbook
cargo install mdbook-i18n-helpers

Build and Serve

# English (opens browser with live-reload)
mdbook serve --open

# Chinese
MDBOOK_BOOK__LANGUAGE=zh-CN mdbook serve -d book/zh-CN --open

Build Only

# English
mdbook build

# Chinese
MDBOOK_BOOK__LANGUAGE=zh-CN mdbook build -d book/zh-CN

Updating Translations

After 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