是否可以使用 Sphinx autodoc 从函数 docstrings 为我的 fabfile 生成文档?
setup_development
例如,对于包含我尝试过的任务的 fabfile :
.. automodule::fabfile
:members:
.. autofunction:: setup_development
但是什么也没有产生。
fabfile 片段:
@task
def setup_development(remote='origin', branch='development'):
"""Setup your development environment.
* Checkout development branch & pull updates from remote
* Install required python packages
* Symlink development settings
* Sync and migrate database
* Build HTML Documentation and open in web browser
Args:
remote: Name of remote git repository. Default: 'origin'.
branch: Name of your development branch. Default: 'development'.
"""
<code>