我有一个Django项目,使用reST在docstrings中记录文档来实现以下功能:
- 帮助IDE中的对话框
- 后来使用Sphinx构建HTML文档
我的文档在IDE(PyCharm)中正常显示,但我无法配置Sphinx来生成HTML文档。
这是我的项目结构
+--------------------------------------------+
| /saassapp # django project path |
| /docs # dir for sphinx |
| conf.py # sphinx config file |
| ... |
| settings.py # django settings |
| /studyview # django app |
| ...
| ... |
+--------------------------------------------+
有什么想法吗?conf.py
文件的示例会非常有用。谢谢。
编辑
我的项目名称是saassapp,我正在为其创建名为studyview的文档模块。
- Sphinx
conf.py
文件:http://pastebin.com/HTYdc1rR - Sphinx
index
文件:http://pastebin.com/bu1r38TQ make html
的结果:http://pastebin.com/MWJj94EE
make html
命令时,都会出现有关导入Django设置的错误... - miki725