fatiando / verde

Processing and gridding spatial data, machine-learning style
https://www.fatiando.org/verde
BSD 3-Clause "New" or "Revised" License
603 stars 72 forks source link

Replace Sphinx napoleon for numpydoc #450

Closed santisoler closed 6 months ago

santisoler commented 7 months ago

Replace the built-in Sphinx plugin napoleon for numpydoc. This solves the issue of attributes with trailing underscore not rendering properly in docs. Add numpydoc as requirement for building the docs and add it to the Sphinx configuration file. Remove napoleon from Sphinx configuration. Remove the "Methods Summary" section in the Sphinx class template since numpydoc builds its own list of all methods.

Relevant issues/PRs:

Related to fatiando/community#149

leouieda commented 6 months ago

Thanks @santisoler!