【发布时间】:2018-06-18 23:59:33
【问题描述】:
我想创建我的讲义的数字版本。我安装了 sphinx 并更改了 config.py 文件,以便 ReadTheDocs 主题正常工作。
我希望有类似以下屏幕截图中的结构(来自Read the Docs Documentation)
我的 index.rst 看起来像
.. Lectures documentation master file, created by
sphinx-quickstart on Tue Jan 9 20:20:10 2018.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
iLectures
======================================
Hello!
.. toctree::
:maxdepth: 2
:caption: Contents:
intro
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
如何更改 index.rst 以使其具有与屏幕截图中类似的结构?如果我可以在我的网站上有一个与导航相同的文件夹结构,那也很好吗?如何引用不在同一目录中的文件?我真的很感激任何帮助。
尝试在 intro 之后缩进新内容,但它只会导致错误。
【问题讨论】:
标签: python-sphinx read-the-docs