我正在尝试使用sphinx
(与autodoc
和numpydoc
一起)来记录我的模块,但是在基本设置之后,运行make html
仅生成基本的HTML,没有包括任何文档字符串。 我正在运行Python 3.3版本,项目结构概述如下:
Kineticlib
|--docs
| |--build
| |--source
| | |--conf.py
|--src
| |--kineticmulti
| | |--__init__.py
| | |--file1.py
| | |--file2.py
|--setup.py
__init__.py
是空的,在docs/source
目录下的conf.py
中,我添加了sys.path.insert(0, os.path.abspath('../..'))
在docs
目录下运行make html
会得到以下输出:
sphinx-build -b html -d build/doctrees source build/html
Running Sphinx v1.2.2
loading pickled environment... done
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
Build finished. The HTML pages are in build/html.
那么,我做错了什么?