且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Sphinx autodoc不够自动化

更新时间:2023-02-05 22:45:58

您可以查看我制作的脚本。我认为它可以为您提供帮助。

You can check this script that I've made. I think it can help you.

此脚本解析目录树以查找python模块和软件包,并适当地创建ReST文件以使用Sphinx创建代码文档。

This script parses a directory tree looking for python modules and packages and creates ReST files appropriately to create code documentation with Sphinx. It also creates a modules index.

UPDATE

此脚本现在已成为一部分Sphinx 1.1的 apidoc

This script is now part of Sphinx 1.1 as apidoc.