DOLFINx 0.9.0
DOLFINx C++ interface
|
The documentation for the DOLFINx demos is written by hand and located together with the demos in the DOLFINx source tree. To document a (new) DOLFINx demo located in the directory foo (for instance pde/poisson), follow the two steps below. In general, the simplest way is probably to look at one of the documented demos for instance (demo/pde/poisson/) and follow the same setup.
1) Add these 3 files
foo/python/documentation.rst – containing the reST source file with the documentation that is specific to the Python version of the demo.
If either the C++ or the Python version of the demo does not exist, feel free to add the version and continue.
2) Move the directory foo from the directory undocumented/ to the suitable directory (for instance pde/ or la/).
Note
The demo documentation is automatically included in the complete DOLFINx documentation when running make doc after building DOLFINx. While documenting a demo, it may be handy to only run make doc_demo and then make doc_html_[python|cpp].
Note
Tests for the validity of the code snippets used in the demo documentation are included in the standard DOLFINx tests.
The C++ and Python documentation reST source files should