Skip to content

Files

Latest commit

309c1f6 · Aug 9, 2024

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 3, 2024
Mar 9, 2024
Mar 9, 2024
Aug 9, 2024

Build the documentation locally (UNIX only)

The chfem documentation is generated automatically using Sphinx, compiled online by ReadTheDocs at every main branch new commit. The main commands that tell sphinx how to compile the documentation are inside the docs/source/conf.py file, which is called by the Makefile, whereas the main layout of the different webpages is controlled by the index.rst file.

In order to compile the documentation locally, you need to install a new conda environment as:

conda env create --file sphinx_env.yml
conda activate sphinx_rtd
make html

This creates the documentation inside the docs/build/html folder (just double click the index.html file to open it in a browser). Alternatively, the "make latex" command compiles a pdf file, which serves as the user-manual. Finally, you can use "make clean" to clear previous builds.