擅长:python、mysql、java
<p>为了简化操作,您可以使用此脚本(查看页面底部的最新版本):
<a href="http://bitbucket.org/birkenfeld/sphinx/issue/98/add-the-autogenerate-script-to-sphinx" rel="noreferrer">http://bitbucket.org/birkenfeld/sphinx/issue/98/add-the-autogenerate-script-to-sphinx</a></p>
<p>这个脚本将解析您的包/模块,并生成从docstrings构建doc所需的所有rest文件。</p>
<p>我是这个剧本的原作者。</p>
<p><strong>更新</strong></p>
<p>这个脚本现在是Sphinx 1.1的一部分,即<em><a href="http://sphinx.pocoo.org/man/sphinx-apidoc.html?highlight=apidoc" rel="noreferrer">apidoc</a></em>。</p>