提交vllm0.11.0开发分支
This commit is contained in:
@@ -5,53 +5,52 @@
|
||||
uv venv myenv --python 3.12 --seed
|
||||
source myenv/bin/activate
|
||||
|
||||
|
||||
# Step 1: Enter the docs directory
|
||||
# 步骤1:进入docs目录
|
||||
cd docs
|
||||
|
||||
# Step 2: Install dependencies (using uv)
|
||||
# 步骤2:安装依赖(使用uv)
|
||||
uv pip install -r requirements-docs.txt
|
||||
|
||||
# Install sphinx-autobuild (if not in requirements file)
|
||||
# 安装 sphinx-autobuild(如果没在 requirements 文件里)
|
||||
uv pip install sphinx-autobuild
|
||||
|
||||
# Run from the docs directory:
|
||||
# 从 docs 目录运行:
|
||||
sphinx-autobuild ./source ./_build/html --port 8000
|
||||
|
||||
# Step 1: Clean up old files
|
||||
# 步骤1:清理旧文件
|
||||
make clean
|
||||
|
||||
# Step 2: Build HTML
|
||||
# 步骤2:构建HTML
|
||||
make html
|
||||
|
||||
# Step 3: Local preview
|
||||
# 步骤3:本地预览
|
||||
python -m http.server -d _build/html/
|
||||
|
||||
Browser access: http://localhost:8000
|
||||
浏览器访问:http://localhost:8000
|
||||
|
||||
🌍 Internationalization
|
||||
Internationalization translation process (taking Chinese as an example)
|
||||
国际化翻译流程(以中文为例)
|
||||
|
||||
# Step 1: Extract translatable text (generate .pot)
|
||||
# 步骤1:提取可翻译文本(生成 .pot)
|
||||
sphinx-build -b gettext source _build/gettext
|
||||
|
||||
# Step 2: Generate/update Chinese .po file
|
||||
# 步骤2:生成/更新中文 .po 文件
|
||||
sphinx-intl update -p _build/gettext -l zh_CN
|
||||
|
||||
# Step 3: Manually translate .po file
|
||||
# Use a text editor to open source/locale/zh_CN/LC_MESSAGES/*.po
|
||||
# Fill in the Chinese translation in msgstr ""
|
||||
# 步骤3:人工翻译 .po 文件
|
||||
# 用文本编辑器打开 source/locale/zh_CN/LC_MESSAGES/*.po
|
||||
# 在 msgstr "" 里填入中文翻译
|
||||
|
||||
# Step 4: Compile and build Chinese documentation
|
||||
# 步骤4:编译并构建中文文档
|
||||
make intl
|
||||
|
||||
# Step 5: View the effect
|
||||
# 步骤5:查看效果
|
||||
python -m http.server -d _build/html
|
||||
|
||||
|
||||
Browser access:
|
||||
浏览器访问:
|
||||
|
||||
English version: http://localhost:8000
|
||||
Chinese version: http://localhost:8000/zh-cn
|
||||
英文版: http://localhost:8000
|
||||
中文版: http://localhost:8000/zh-cn
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user