These instructions assume a Python 3.7 virtualenv in which bellman has already been installed (see instructions for installation in ../README.md)
To compile and view the documentation locally:
-
Change to this directory (e.g.
cd docsif you are in the Bellman_v2 git repository's base directory) -
Install docs dependencies:
pip install -r docs_requirements.txtIf pandoc does not install via pip, or step 3) fails with a 'Pandoc' error, download and install Pandoc separately from
https://github.com/jgm/pandoc/releases/(eg.pandoc-<version>-amd64.debfor Ubuntu), and try running step 2) again. -
Compile the documentation:
make html -
Run a web server:
python -m http.server -
Check documentation locally by opening (in a browser):
If you want to create or edit a Jupyter Notebook for inclusion in this doc set, see notebooks/README.md.
Automatic builds for the Bellman website (bellman.dev)
A GitHub action publish-docs.yml triggers a GitHub action of the website repo Bellman-devs.github.io that actually compiles the documentation and commits it to a correct directory of the website. Latest version of the documentation can be found at bellman.dev/docs/latest. We didn't use a popular service like ReadTheDocs as their servers for compiling the documentation of open-source projects are too constrained for our needs.