2011-03-07 40 views
0

试图使用sphinx的autdoc扩展,但它不工作。我在djano项目文件夹中保存了“docs”文件夹。它没有为我的模块生成文档。另外我不确定自动待办事项是如何工作的。sphinx autodoc help

回答

1

没有看到您的index.rst文件,我们只能猜测,我猜会错过这样的事:

.. automodule:: myproject.myapp 
    :members: 

这里当然你与你的应用程序替换myprojectmyapp

你也可以尝试使用这个非常新的项目http://pypi.python.org/pypi/django-sphinx-autodoc/0.0,这是新的0.0版本!

这里有一些博客文章讨论如何使用车博士:

http://yml-blog.blogspot.com/2009/06/sphinx-autodoc-and-django-app.html

http://www.toast38coza.com/incomplete-thoughts/setting-up-sphinx-documenter-with-a-django-project-a-quickstart-tutorial