mac下sphinx写rst文档

# 安装pip
sudo easy_install pip  

# 安装sphinx 
pip install sphinx 

# 初始化sphinx环境
sphinx-quickstart   # 能够一路默认

#  编辑index.rst,只写入如下内容
用Sphinx编写技术文档
===================

使用场景
--------

# 生成html,本地9527端口查看
make html # make html -I test/  # 可使用-I指定目录
python -m SimpleHTTPServer 9527


参考连接html

http://pm.readthedocs.org/zh_CN/latest/doc/sphinx.htmlpython

相关文章
相关标签/搜索