autotoctree¶
- class docfly.directives.autotoctree.AutoTocTree(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]¶
Automatically includes
index.rst
in toctree from:<current_dir>/<any-folder>/index.rst
Any toctree directive arguments are supported.
Example, the content of
<current_dir>/index.rst
:.. autodoctree::
Will be converted to:
.. toctree:: ./section1/index.rst ./section2/index.rst ...