Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.6 KB

README.md

File metadata and controls

46 lines (35 loc) · 1.6 KB

How to update the documentation

To update the RST files:

sphinx-apidoc -o docs camel/

Helpful article here.

Building Documentation

To build the documentation:

  1. Install CAMEL from source.

  2. Install Sphinx, Sphinx theme and recommonmark (Sphinx extension that enables Markdown support) by running the following command in your terminal or command prompt:

pip install sphinx
pip install sphinx_book_theme
pip install sphinx-autobuild
pip install recommonmark
  1. Build the document and launch the HTML documentation.
cd docs
sphinx-autobuild . _build/html --port 8000

This command starts a local HTTP server on port 8080 by default. Once the server is running, open your web browser and enter the following URL:

127.0.0.1:8000

This will load the HTML documentation in your web browser from the local server. The server will watch for changes in your source files and automatically rebuild the documentation and refresh the page in the browser when you make changes – so changes in docs will be immediately reflected in the rendered doc.

You can navigate through the documentation using the links and interact with it as you would with any other web page.

To stop the local server, go back to the terminal or command prompt where it is running and press Ctrl+C to terminate the server.

In case the autobuild does not work, you may use the traditional build approach:

cd docs
make html
cd _build/html
python -m http.server