bilingual

  1. Write the documentation in English.

  2. Change directory to the /docs and input two commands below.

1sphinx-build -b gettext ./source ./build/gettext
2sphinx-intl update -p ./build/gettext -l zh_CN
  1. Fetch the *.po files in /docs/locales and translate as needed.

  2. Compile the documentation just in the target language.

1sphinx-build -b html -D language=zh_CN ./source/ build/html/zh_CN