Contributing Documentation#
We make use of mkdocs-material, mkdocstrings-python and their extensions.
Docstring Style#
We use the google style for documentation. More info and examples here.
Cross References#
Typically, the class to be cross-referenced must be present/exposed in the topmost
__init__.py
, and can then be (cross-)referenced from anywhere as follows:
The type of a property or its default value should not be mentioned in the docstring, as they are already described in their respective definitions, and made visible to the user by our docs engine.
Admonition#
Method 1#
type
can be: 'note' (default), 'attention', 'caution', 'danger', 'error', 'tip', 'hint', 'warning'
(Visual example)
Method 2#
Where Note
can literally be replaced by anything, which will then be used as title of the Detail.
However, for appropriate icons/colors, use predefined types, such as 'Note' (default), 'Attention', 'Caution', 'Danger', 'Error', 'Tip', 'Hint', 'Warning' (Visual example)
To specify a custom title:
Details#
type
can be: 'note' (default), 'attention', 'caution', 'danger', 'error', 'tip', 'hint', 'warning'
(Visual example)
Tabs#
Code#
Images#
Images are usually not centered when displayed. A hack to quickly center an image is to have add a caption block below it. It must not contain text.