- 環(huán)境配置
# pip install sphinx sphinx_rtd_theme
- 原始代碼目錄
# tree
文件夾 PATH 列表
卷序列號為 0007-1DAC
D:.
├─web
└─web_gzip.py
- 創(chuàng)建api文檔
# 在代碼目錄中創(chuàng)建doc目錄瘪菌,存放相應(yīng)的信息
# sphinx-apidoc -o ./doc/ .
Creating file ./doc/web_gzip.rst.
Creating file ./doc/modules.rst.
- 運(yùn)行sphinx-quictstart
# sphinx-quickstart


5. 修改conf.py
在最開始處加入rtd theme相關(guān)配置

同時要注釋原來的theme設(shè)置

6. 修改index.rst

7. 執(zhí)行make.bat html

8. 查看



最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者