Add table of methods in Sphinx documentation of a class

本秂侑毒 提交于 2019-12-25 01:42:45

问题


How can I automatically add a table with the list of the methods for a given class using Sphinx? Something like in the scikit-learn documentation (example):

Thanks very much.

Edit: Thank you very much mzjn! Thanks to autosummary, there is now a table with the description of the methods. However the layout is not very pretty:

It looks better on the API file:

There are dots when the list of parameters is too long.

来源:https://stackoverflow.com/questions/57977411/add-table-of-methods-in-sphinx-documentation-of-a-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!