MHKiT-Software / MHKiT

MHKiT Documentation
https://MHKiT-Software.github.io/MHKiT/
4 stars 14 forks source link

Improving our API documentation #63

Open akeeste opened 6 months ago

akeeste commented 6 months ago

We can further reduce duplication of text in our API by replacing all high level descriptions of modules with the automodule feature. Modules have varying level of detail and should be kept up to date in the source, which is then propagated to the API.

e.g. the mhkit-python/api.mooring.rst was previously the following::

IO
""""""""""""
The io submodule contains a function to
load MoorDyn data and convert it to xarray:

.. autosummary::
   :nosignatures:

   ~mhkit.mooring.io.read_moordyn

.. automodule:: mhkit.mooring.io
    :members:
    :undoc-members:
    :show-inheritance:

Instead we can replace the short sentence with the automodule which is more detailed.

Also, it is unclear to me when we would use autosummary vs autofunction in the API. Our use seems inconsistent.