在类的Sphinx文档中添加方法表

时间:2019-09-17 15:20:33

标签: python python-sphinx

如何使用Sphinx自动为给定类的表添加方法列表?类似于scikit-learn文档(example):

enter image description here

非常感谢。

编辑:非常感谢mzjn!感谢autosummary,现在有了一个表,其中包含方法的说明。但是布局不是很漂亮:

enter image description here

在API文件上看起来更好:

enter image description here

参数列表过长时会出现点。

0 个答案:

没有答案