Build documentation with Sphinx¶
Build HTML locally¶
Make sure the svmbir dependencies are installed in your conda environment. To do this, go to the package root directory and run:
$ pip install -r requirements.txt
Then go to the docs folder:
$ cd docs
Install sphinx dependencies:
$ pip install -r requirements.txt
The documentation contains a Jupyter Notebook example which will require Pandoc. If the build in the next step fails Pandoc will have to be [installed]. On a Mac with Homebrew, run
brew install pandoc
.
Build HTML files:
$ SVMBIR_BUILD_DOCS=true make html
If the build was successful, the HTML files will be in the svmbir/docs/build/html folder. Open index.html to review the documentation.
Build HTML in readthedocs¶
Register in readthedocs.
Import your project from GitHub.
Click in your project, click Admin section below your project’s name.
Click advanced setting, in Default settings. Put docs/requirements.txt to Requirements file. Enable “Install Project”.