Qwen2/docs
Ren Xuancheng 1182f4b3ce update zh doc 2024-06-07 13:25:44 +08:00
..
locales/zh_CN/LC_MESSAGES update zh doc 2024-06-07 13:25:44 +08:00
source update zh doc 2024-06-07 13:25:44 +08:00
Makefile add docs and finetune scripts 2024-02-21 18:22:46 +08:00
README.md try fix (#481) 2024-06-07 00:28:59 +08:00
make.bat add docs and finetune scripts 2024-02-21 18:22:46 +08:00
requirements-docs.txt Update requirements-docs.txt 2024-02-21 18:38:37 +08:00

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.

  1. After updating the English documentation, run make gettext, and the pot files will be placed in the _build/gettext or build/gettext directory.

  2. Use the generated pot files to update the po files:

    sphinx-intl update -p <pot_directory> -l zh_CN
    
  3. Translate po files at locales\zh_CN\LC_MESSAGES. Please be careful not to break reST notation.

  4. Build translated document: make -e SPHINXOPTS="-D language='zh_cn'" html