我正在尝试使用Sphinx来记录我一直在使用的Python库。我一直在使用这个职位作为一个粗略的指南。但是,我很难让狮身人面像正常工作。
一旦所有设置就绪,Sphinx就已经安装好了,并且我在我的代码中添加了从我的项目根目录中输入的文档:
sphinx-apidoc -F -o docs/ mypackage/输出:
Creating file docs/mypackage.rst.
Creating file docs/mypackage.helpers.rst.
Creating file docs/conf.py.
Creating file docs/index.rst.
Creating file docs/Makefile.
Creating file docs/make.bat.接下来,我分别编辑docs/conf.py . my,确保我的sys.path.insert(0,os.path.abspath(‘/os.path.abspath/path/to/mypackage’))是正确的。
但是,当我试图通过以下方法构建文档时(从docs目录中):
build html我受到以下的欢迎:
-bash: make: command not found我使用过斯芬克斯-apidoc,并与其他库一起制作html,从未遇到过这种情况,所以我有点不知所措。有什么想法吗?
发布于 2013-12-28 01:29:14
如@Blender在评论中所述。没有安装make。最近我不得不重新安装Xcode,并忘记重新安装命令行工具。
为了澄清,我运行OSX 10.8.5。
要使用make,首先通过app store安装Xcode,然后打开Xcode,然后通过导航到:Xcode->Preferences->Downloads下载/安装Command Line Tools
https://stackoverflow.com/questions/20809950
复制相似问题