API documentation guidelines#
This section collects guidelines for documenting MolSysViewer’s public API and for testing examples embedded in docstrings.
docstrings.mddescribes the structure, style, and required sections for docstrings on functions, methods, classes, modules, and attributes.doctests.mdexplains how we usepytest --doctest-modulesto keep allExamplesup to date and executable.
Docstrings are written in NumPy style with Sphinx roles (such as :ref: and
:func:), while the surrounding documentation uses MyST and the cross-linking
patterns described in docs/content/developer/documentation/web/.