-
install sphinx
apt-get install python-sphinx
-
to quickstart, go to docs/ directory and:
sphinx-quickstart
the yes and nos should be pretty darn straightforward. -
create rst files in docs/source directory
sphinx-apidoc -e -f -o source/ ../fastai
this create rst files, one rst for each module
-f: force overwirte existing documentations
-e: seperate (or you’ll get one giant rst file, which turns into one giant html file )
-o: outputdir -
go to docs/source/conf.py, and add following lines:
import os
import sys
sys.path.insert(0, os.path.abspath(’…/…’)) -
to create html under docs/build/html directory:
make html
now you should see deployable html documentation.
Just open docs/build/html/index.html and enjoy!