Install sphinx and sphinx-rtd-theme
1 | workon py3dev |
Init a project with sphinx.
1 | mkdir sphinx_demo |
Config sphinx.
Edit source/conf.py
Set python source folder.
1 | # add those lines. |
Enable autodoc plugins.
1 | extensions = [ |
Enable read-the-doc theme.
1 | html_theme = 'sphinx_rtd_theme' |
Build sphinx docs.
1 | make html # build the docs by html builder. |