【发布时间】:2019-01-30 16:12:51
【问题描述】:
我需要按标题对我的toctree 进行排序。我使用:glob: 属性,它只按我的文件名排序。
你有解决办法吗?
示例:
.. toctree::
:maxdepth: 1
:titlesonly:
:glob:
myfile1.rst
myfile2.rst
myfile1.rst
BBBB
=====
myfile2.rst
AAAA
=====
我在我的 HTML 页面中获得:
BBBB
AAAA
我想拥有:
AAAA
BBBB
【问题讨论】:
标签: sorting python-sphinx glob toctree