Update this documentationο
π If you think it can be clearer, or you want to add more details or tutorials β¦
Generating local docsο
First you need a few dependencies (besides those for marge3d).
For that download the source code
and install the package with all the docs dependencies locally :
git clone https://github.com/CompMath-TUHH/MaRGE_3D_solver.git
cd MaRGE_3D_solver
pip install -e .[docs] # on MAC-OS : pip install -e ".[docs]"
π The
-eoption ensures that your installed python package is directly linked to the sources (no copy of code), hence modifying any part of the source code (in particular the documentation) will be taken into account whensphinxwill parse the code docstring.
Then to generate the documentation website locally, simply run :
cd docs
make html
This builds the sphinx documentation automatically in a _build folder,
and you can view it by opening docs/_build/html/index.html using your favorite browser.
Updating a tutorialο
When changing a notebook tutorial, you should also regenerate it entirely, in particular if you modified parts of the code. You can do that by running :
cd notebooks
./run.sh $NOTEBOOK_FILE
If you modified several notebooks, and as a safety, it is also possible to regenerate all doing :
./run.sh --all
π£ When modifying only the markdown text in a notebooks, it is not necessary to regenerate it.
Adding a tutorialο
Just add a notebook in the notebook folder with a name like this :
{idx}_{shortName}.ipynb with idx a zero-padded index (starts at 01).
This will be automatically added in the documentation and tested by the CI pipeline.
π‘ Donβt hesitate to look at the other notebooks to use a common and consistent formatting β¦