- Create a directory called
docs
- Open the directory
/usr/local/Cellar/sphinx-doc/1.7.5_1/bin
and drag the quickstart
thing into a terminal which is cd docs
- Follow the prompts accepting everything default and adding the option to auto doc files.
- Add the path of your scripts to the conf.py file:
import sys
sys.path.append('../../heat/')
- In terminal run
make html
- Open and view the html
open build/html/index.html
- To run the auto doc go
sphinx-apidoc -o source/ ../heat
where source is where the .rst file is stored and mylib is my library
- Remake the html and open to view it. It may be necessary to add the modules.rst file as a line modules in the Toc of index.rst:
.. toctree::
:maxdepth: 2
:caption: Contents:
modules