Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Building documentation

This is a guide to building documentation locally. Online documentation gets updated whenever master branch is updated.

Prerequsites

Install sphinx, sphinx-rtd-theme, sphinxcontrib-napoleon, sphinx-autodoc-napoleon-typehints with pip.

Build

  1. Use sphinx-build
cd docs
sphinx-build -b html source build

The documentation is generated in html format and is in the docs/build folder. Start with index.html file.

  1. Use the supplied makefile
cd docs
make html 

The documentation is generated in html format and is in the docs/build/html folder. Start with index.html file.

Update the documentation

Whenever the code is updated, repopulate the code tree and run either step-1 or step-2.

cd docs
sphinx-apidoc -f -o source ../src/simsopt