Skip to content

Latest commit

 

History

History
35 lines (17 loc) · 1.57 KB

File metadata and controls

35 lines (17 loc) · 1.57 KB

Building the documentation

Compile documentation locally

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:

  1. Change to this directory (e.g. cd docs if you are in the Bellman_v2 git repository's base directory)

  2. Install docs dependencies:

    pip install -r docs_requirements.txt

    If 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.deb for Ubuntu), and try running step 2) again.

  3. Compile the documentation:

    make html

  4. Run a web server:

    python -m http.server

  5. Check documentation locally by opening (in a browser):

    http://localhost:8000/_build/html/

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.