提交vllm0.11.0开发分支

This commit is contained in:
chenyili
2025-12-10 17:51:24 +08:00
parent deab7dd0b6
commit 7c22d621fb
175 changed files with 31856 additions and 8683 deletions

View File

@@ -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
```