ç¨Sphinx
以win32ç³»ç»ä¸ºä¾ï¼æç®åçå®è£
æ¹å¼æ¯å¨Dosä¸è¾å
¥å¦ä¸ä»£ç
pip install -U sphinx
å®è£
好äºä¹åï¼ç¨æç®åçåèªå¨çæAPIææ¡£çæ¹å¼è¿è¡
ä¾å¦ï¼ä½ çpythonå®è£
å¨C:\python27ï¼ æ³è¦ç»flaskå
èªå¨å¶ä½ææ¡£ï¼å¶ä½å®æçææ¡£æ¾å¨C:\python_doc\flaskçæ件夹
代ç å¦ä¸ï¼
sphinx-apidoc -F -o C:\python_doc\flask C:\python27\lib\site-packages\
ï¼æ¤å¤-oåºç´§è·è¾åºæ件夹ï¼ä¸ç¶ä¼äº§çä¸ä¸ª-Fçæ件夹ï¼å¤è°¢@Hyaczï¼
ç¶åè¿å
¥C:\python_doc\flaskæ件夹
cd C:\python_doc\flask
æ¤æ件夹ä¸æä¸ä¸ªmake.batæ件ï¼åæ§è¡ä¸ä¸
make html
ç¶åå°±è½å¨\_build\htmlæ件夹ä¸çå°çæ好çææ¡£äºï¼è¿æ¯ææ¥æ¾çåè½
温馨提示:答案为网友推荐,仅供参考