Skip to content

Commit

Permalink
fix typesetting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xujianxin committed Aug 31, 2018
1 parent 8aefc90 commit 08d6a53
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@ cd nebdocs
make html
```

## 如何添加新的语言版本?
1. 创建新的分支,例如中文版本:
```bash
git checkout -b zh-CN
```
2. 修改./docs/conf.py里面的github配置, 找到html_context定义,将其github_version字段的值修改为新的分支名zh-CN,如下:

```python
# VCS options:
html_context = {
"display_github": True, # Integrate GitHub
"github_user": "nebulasio", # Username
"github_repo": "nebdocs", # Repo name
"github_version": "zh-CN", # Version
"conf_py_path": "/", # Path in the checkout to the docs root
}
```

3. 将需要翻译的文档替换成新语言版本。

4. 提交到github:

```bash
git push --set-upstream zh-CN
```
5. 通知管理员在readthedocs的在线文档上添加新的语言版本。
## 如何添加新的语言版本?
1. 创建新的分支,例如中文版本:
```bash
git checkout -b zh-CN
```
2. 修改./docs/conf.py里面的github配置, 找到html_context定义,将其github_version字段的值修改为新的分支名zh-CN,如下:

```python
# VCS options:
html_context = {
"display_github": True, # Integrate GitHub
"github_user": "nebulasio", # Username
"github_repo": "nebdocs", # Repo name
"github_version": "zh-CN", # Version
"conf_py_path": "/", # Path in the checkout to the docs root
}
```

3. 将需要翻译的文档替换成新语言版本。

4. 提交到github:

```bash
git push --set-upstream zh-CN
```
5. 通知管理员在readthedocs的在线文档上添加新的语言版本。

0 comments on commit 08d6a53

Please sign in to comment.