Skip to content
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

How to build the doc locally

Liang Bo Wang edited this page Dec 10, 2015 · 3 revisions

在本地端建立 Python 中文說明文件

Python 環境準備

使用 Python 3.5 即可。

下載 Python 原始碼(含翻譯)

目前專案在 Bitbucket 上,使用 mercurial(hg) 版本控制。

$ hg clone ssh://[email protected]/ccwang002/cpython-tw
$ cd cpython-tw
$ hg update -r 3.5

專案約 1.x GB 需要一點時間 clone。完成後進入 Doc/ 安裝所需套件。

$ cd Doc
$ pip install -r requirements.txt

Build doc

先將 po 檔編譯成 mo 檔,再輸出 HTML 文件。

$ sphinx-intl build
$ make html
Clone this wiki locally