index.rst 只构建其余页面的链接 - 狮身人面像

问题描述

我有一个带有这个 sintaxis 的 index.rst:

Example
======================================================

.. toctree::
   :maxdepth: 0 
   :caption: Contents:

   item 
Items and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

另一方面,我有一个 item.rst 文件

Another page
======================================================

.. toctree::
   :maxdepth: 0 
   :caption: Contents:

   item2

有什么问题吗?我有一个索引:

enter image description here

但是我不想要这个。 item.rst 的所有内容(Another page) 推入另一个不在索引中的页面时应该显示

我只想在索引中显示其余页面链接,如下所示:

内容

  • 另一页
  • 一个第二页
  • 又是第三页。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)