從GITHUB上下載的python文檔有rst格式沒法打開,通常有README.txt裏說明要轉換爲html。原文:
html
You need Sphinx to build this documentation. Or you can read it in ASCII. ;)python
Better run:ide
# pip install sphinxui
and once Sphinx is installed on your system, run:this
$ make htmlspa
To build a copy of HTML'ed PySNMP documentation.3d
以pysnmp爲例,GitHub下載的pysnmp-master文件,查看pysnmp-master\docs下,都是rst格式。如今咱們須要轉換爲htmlhtm
pip install sphinxblog
將pysnmp-master.zip解壓到你須要放置的目錄,我這裏D:\Pythonwork\pysnmp-masterip
找到source目錄的所在目錄,打開cmd,進入source目錄的上級目錄(我這裏source目錄在D:\Pythonwork\pysnmp-master\docs下),CD D:\Pythonwork\pysnmp-master\docs
執行轉換命令sphinx-build -b html 源目錄 目標目錄,源目錄必須選擇source目錄我這裏由於已經進入了當前source的上級目錄,所以不須要絕對路徑,個人目標目錄設置爲html
sphinx-build -b html source D:\Pythonwork\pysnmp-master\docs\html
完成
打開目標目錄找到html文件,完美。