pip install sphinx

# Create a directory where the docs will be written
mkdir docs
cd docs

# Bootstrap sphinx (select separate sorce and build directories)
# Among others, this will create a conf.py and also index.rst which is
# the entry point for ReStructuredText parser
# This should be done once
sphinx-quickstart

# Create the RST files for all the modules of the package
sphinx-apidoc -o source/ ../src/

# Build the HTML doc
sphinx-build -b html source/ build
make html