我正在使用sphinx来记录我的项目。内置的index.rst文件包含:
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`它自动生成一个py-modindex.html页面。这在我的本地机器上运行得非常好。
所以我试着在readthedoc.org上托管这个文档。但是,readthedoc所做的是转到我的github,找到conf.py,生成所有的html。但是因为
* :ref:`modindex` 需要所有可从本地导入的模块,他们可能不会这样做。因此,我看不到py-modindex.html页面。你知道怎么把它带回来吗?
这是我的readthedoc页面:http://windtalker.readthedocs.org/en/latest/index.html
这就是我想要的页面(但它不在上面):http://windtalker.readthedocs.org/en/latest/py-modindex.html
这是github项目页面:https://github.com/MacHu-GWU/windtalker
发布于 2015-08-15 04:14:03
我太傻了..。只需启用virturalenv功能,即可成功构建我的文档
https://stackoverflow.com/questions/32000116
复制相似问题