- 环境配置
# pip install sphinx sphinx_rtd_theme
- 原始代码目录
# tree
文件夹 PATH 列表
卷序列号为 0007-1DAC
D:.
├─web
└─web_gzip.py
- 创建api文档
# 在代码目录中创建doc目录,存放相应的信息
# sphinx-apidoc -o ./doc/ .
Creating file ./doc/web_gzip.rst.
Creating file ./doc/modules.rst.
- 运行sphinx-quictstart
# sphinx-quickstart


5. 修改conf.py
在最开始处加入rtd theme相关配置

同时要注释原来的theme设置

6. 修改index.rst

7. 执行make.bat html

8. 查看


