Le 12/12/20 à 18h11, Komiya Takeshi a écrit :
> Hi,
Hi,
> Sphinx does not mind the depth of the document itself. It only minds
> how sections are "nested".
OK.
> To make your subsections "nested", please append sub-toctree to
> foo0.rst and subfolder1/foo1.rst like following:
>
> ```
> # foo0.rst
>
> This a title
> ============
>
> .. toctree::
>
> subfoloder1/foo1
> ```
>
> ```
> # subfoloder1/foo1.rst
>
> This a title
> ============
>
> .. toctree::
>
> subfoloder2/foo2
> ```
>
> Then you'll see a ToC tree as expected.
Thanks!
Nevertheless, the trouble with this solution is, I have about a thousand
files that are currently included in the main index.rst file. So I would
have to edit all of them to write the toctree directive and the path of
the right subfile to include :$
--
Denis