rom-py / rompy

Relocatable Ocean Modelling in PYthon (rompy) combines templated cookie-cutter model configuration with various xarray extensions to assist in the setup and evaluation of coastal ocean model
https://rom-py.github.io/rompy/
BSD 3-Clause "New" or "Revised" License
3 stars 9 forks source link

Make subclasses inherit fields from parents in the docs #35

Open rafa-guedes opened 1 year ago

rafa-guedes commented 1 year ago

The fields from a parent class are currently not defined in the docs of a subclass. Investigate if there is some sphinx config to allow for these to be shown.

rafa-guedes commented 1 year ago

This is now fixed in the api section of the docs by adding the :inherited-members: BaseModel argument to the .. automodule:: directives. However in other parts of the docs which use the .. autosummary:: directive this is still a problem.