【发布时间】:2019-08-08 12:08:56
【问题描述】:
根据标题,是否可以有一个菜单条目,其中整个条目的作用类似于 +/- 用于展开和折叠并且不会更改活动页面?
有点像当您已经在实际条目上并再次单击它时,它只会展开/折叠。
index.rst
Introduction
============
Some introductory text here
.. toctree::
:hidden:
self
srg/index
srg/index.rst
srg
===
Normal menu entry that shows this as its page
.. toctree::
:hidden:
objects/index
srg/objects/index.rst
Objects
=======
I don't want this to be a page but only an expand/collapse entry.
.. toctree ::
:hidden:
list
srg/objects/list.rst
list
====
Page content again
【问题讨论】:
标签: python python-sphinx read-the-docs expandable toctree