Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 820 Bytes

building_docs.md

File metadata and controls

23 lines (19 loc) · 820 Bytes

How to use Sphinx

  1. Create a directory called docs
  2. 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
  3. Follow the prompts accepting everything default and adding the option to auto doc files.
  4. Add the path of your scripts to the conf.py file:
import sys
sys.path.append('../../heat/')
  1. In terminal run make html
  2. Open and view the html open build/html/index.html
  3. 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
  4. 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