我是狮身人面像的新手。我尝试了教程,但未能在内容中生成链接。我得到的错误
C:\Users\mhaikalm\sphinxtest\source\index.rst:11: WARNING: toctree contains refe
rence to document 'intro' that doesn't have a title: no link will be generated
C:\Users\mhaikalm\sphinxtest\source\index.rst:11: WARNING: toctree contains refe
rence to document 'zuhdi' that doesn't have a title: no link will be generated
writing additional files... (0 module code pages) genindex search
copying static files... done
dumping search index... done
dumping object inventory... done
build succeeded, 3 warnings.
Build finished. The HTML pages are in build/html.
我已经创建zuhdi.rst
并intro.rst
在同一目录中index.rst
。我怎样才能给文件加上标题?
供您参考,我的 index.rst 包含以下几行:
Contents:
.. toctree::
:maxdepth: 2
intro
zuhdi
我必须存在这些文件才能将链接放入目录树中吗?intro.rst
andzuhdi.rst
只是一个空文件。