我需要按标题对我的toctree进行排序。我使用:glob:属性,它只对我的文件名进行排序。
你有解决方案吗?
例如:
.. toctree::
:maxdepth: 1
:titlesonly:
:glob:
myfile1.rst
myfile2.rstmyfile1.rst
BBBB
=====myfile2.rst
AAAA
=====我在我的HTML页面中获得:
BBBB
AAAA我想要有:
AAAA
BBBB发布于 2019-01-31 04:42:21
glob是不必要的,因为您没有使用全局表达式。
您可以手动对toctree directive中的文件进行排序。文件扩展名是不必要的。
.. toctree::
:maxdepth: 1
:titlesonly:
myfile2
myfile1https://stackoverflow.com/questions/54444868
复制相似问题