![]() |
||
---|---|---|
.. | ||
locales/zh_CN/LC_MESSAGES | ||
source | ||
Makefile | ||
README.md | ||
make.bat | ||
requirements-docs.txt |
README.md
Qwen Documentation
This is the source of the documentation at https://qwen.readthedocs.io.
Quick Start
We use sphinx
to manage the documentation and use the furo
theme.
To get started, simply run
pip install -r requirements-docs.txt
Then run make html
and it will compile the docs and put it under the _build/html
or build/html
directory.
Translation
The documentation is available in both English and Simplified Chinese. We use
sphinx-intl
to work with Sphinx translation flow, following this article.
You need to install the Python package sphinx-intl
before starting.
-
After updating the English documentation, run
make gettext
, and the pot files will be placed in the_build/gettext
orbuild/gettext
directory. -
Use the generated pot files to update the po files:
sphinx-intl update -p <pot_directory> -l zh_CN
-
Translate po files at
locales\zh_CN\LC_MESSAGES
. Please be careful not to break reST notation. -
Build translated document:
make -e SPHINXOPTS="-D language='zh_cn'" html