一个项目模板基于cookiecutter
pip install cookiecutter
cookiecutter https://github.com/yishenggudou/cookiecutter-sphinx-doc.git
(python3) ➜ /tmp cookiecutter https://github.com/yishenggudou/cookiecutter-sphinx-doc.git
You've downloaded /Users/timgerk/.cookiecutters/cookiecutter-sphinx-doc before. Is it okay to delete and re-download it? [yes]: yes
project []: simple doc project
project_slug []: sdp
book_title []: 项实例项目
author []: 作者
version [0.0.1]:
release [0.0.1]:
description []: 长的简介
src []: docs
然后进入docs
看到
(python3) ➜ docs tree
.
├── Makefile
├── conf.py
├── index.rst
├── intro.md
├── make.bat
├── plantuml.jar
├── releasenotes.py
├── test.rst
└── topdf.sh
0 directories, 9 files
make html
pip install -r requirements.txt
./topdf.sh
文件实例 pdf实例文件
- 支持markdown
- 支持planuml
- pdf中文支持
测试仅在mac
环境下验证了python3
建议2
的用户 virtualenv
到 3