问题
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?
回答1:
You can use the glob
option which enables wildcards. Like this:
.. toctree::
:glob:
*
This adds all other *.rst files in the same directory to the toctree.
Reference: "Use “globbing” in toctree directives"
来源:https://stackoverflow.com/questions/28773398/automatic-toctree-update