Python rst File Open
RST is similar to Python Javadoc and Java.
If you download someone else's Python source, there is an RST folder, we can turn to HTML after the browser open
Index.rst of an open source project
1. Install the Python Sphinx module:
Pip install Sphinxpip install-i http://pypi.douban.com/simple/sphinx_rtd_theme--trusted-host pypi.douban.com
Directory of 2.build output HTML
Go to the doc's parent folder, such as
Directory of Python-prompt-toolkit-master>dirpython-prompt-toolkit-master. Gitignore. travis.yml Authors.rst CHANGELOG docs Examples LICENSE manifest.in prompt_toolkit readme.rst setup.py
Using commands
Python-prompt-toolkit-master>sphinx-build-b HTML Docs Build
Docs is a directory containing RST, and build is the directory of the output HTML
After running it can be viewed in the browser, generally from build/index.html into
Python-doc rst File Open