Sphinx
Sphinx is widely used to generate python document. Here is a brief tutorial to generate your own doc
Quick Start

1. sphinx-quickstart, inside "S4" folder, sphinx-quickstart doc, if on Linux system
2. sphinx-apidoc -o doc . inside "S4" folder, generate a rst file for each py file or each package under "S4" folder, and save them to "doc" folder

3. edit conf.py in "doc" folder, define where to search the source code
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
4. edit index.rst in "doc" folder, add rst files for the modules and packages that will be shown in index.html, use reStructuredText to edit the file, rst files are initial documentation files
.. toctree:: 
     :maxdepth: 2
     :caption: Contents:
     :glob: 
---Blank Line--- 
     convert.rst
     format.rst
     modules.rst
5. make html in "doc" folder, save the generated html doc to _build
Change theme
1. edit conf.py in "doc" folder
html_theme = 'classic'
			
2. make html, in "doc" folder
Add logo

1. edit conf.py in "doc" folder
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
html_logo = '../img/logo.jpg' 
			
2. make html, in "doc" folder
Generate pdf doc
  • Mac OS
  • Ubuntu
  • Reference
  • Sphinx Themes
  • Sphinx Autodoc Tutorial for Dummies
  • Sphinx themes
  • Sphinx Docs, Logo and Updated Docstrings
  • Brandon’s Sphinx Tutorial
  • Installing LaTeX on Linux or Mac OS X