我试图让 TOC 出现在我的所有页面中。我的设置非常简单。在 index.rst 中,我有
Installation
============
Scripting
=========
.. toctree::
:maxdepth: 2
:caption: Contents:
class ASAT
""""""""""
.. toctree::
:maxdepth: 2
asat
more class ...
在其他页面中,我有:
class asat.SomeClass
"""""""""""""""""""""
.. autoclass:: modeule.SomeClass
:members:
.. automethod:: __init__
为了让 TOC 出现,我改为conf.py
反映:
html_sidebars = {
'**': [
'globaltoc.html',
'relations.html',
'searchbox.html'
]
}
但这样做时,index.rst
任何 TOC 中都不会出现任何嵌套内容。这是它的截图:
如何从雪花石膏中获取原始/正常 TOC 以显示在我的所有页面中?