自动toctree更新 [英] Automatic toctree update
本文介绍了自动toctree更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不确定这是否可行.但是我希望在目录中以及在编译过程中将多个.rst文件放入目录中.我希望将这些文件自动插入到 toctree
中.我该怎么办?
I'm not sure if this is possible. But I'm hoping to put multiple .rst files in a directory, and during compilation. I want these files to automatically be inserted in the toctree
. How can I go about this?
推荐答案
您可以使用 glob
选项启用通配符.像这样:
You can use the glob
option which enables wildcards. Like this:
.. toctree::
:glob:
*
这会将同一目录中的所有其他* .rst文件添加到toctree.
This adds all other *.rst files in the same directory to the toctree.
这篇关于自动toctree更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文