sphinx的autodoc
修改conf.py 先把项目目录加上
sys.path.append(os.path.abspath(‘d:/wsgi/biz_python’))
# — General configuration —————————————————–
添加扩展 sphinx.ext.autodoc
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named ‘sphinx.ext.*’) or your custom ones.
extensions = ['sphinx.ext.autodoc']
这就可以用了,在文档使用吧
.. function:: foo(x)
foo(y, z)
:module: some.module.name
Return a line of text input from the user.