Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
一起写Python文章,一起看Python文章 - 利用readthedocs的Python技术文章的收集和翻译。
branch: master

This branch is 48 commits behind hit9:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
TODO
docs
.gitignore
Readme.rst
requirements.pip

Readme.rst

关于

利用readthedocs的Python技术文章的翻译和收集。

订阅

RSS: https://pyzh.readthedocs.org/en/latest/rss.xml

Online: https://pyzh.readthedocs.org/en/latest/

约定

  • 文件名必须是英文。一个文章的多个文件如下命名:

    xxxx-Part1.rst, xxxx-Part2.rst ..
    
  • 文第一行注明日期:

    :Date: 2013-04-15 22:00:00
    
  • 翻译的文章,需要注明原文链接

如何开始

  1. clone 这个Repo:

    git clone git@github.com:HIT-ON-Github/PyZh.git
    
  2. 初始化环境:

    cd PyZh
    virtualenv venv
    pip install -r requirements.pip
    
  3. 编写文章:

    vim docs/xxxxx.rst
    
  4. 编译预览:

    cd docs
    make html
    python -m SimpleHTTPServer
    
打开 http://localhost:8000 预览
  1. 更新Readthedocs文档:
push上去到Github, 然后到https://readthedocs.org/projects/pyzh build下即可

RST

RST文档的语法: https://github.com/ralsina/rst-cheatsheet/blob/master/rst-cheatsheet.rst

Example可以看项目中其它文章的源码

Something went wrong with that request. Please try again.