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

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/06279a6e-d9e4-4193-8f41-48ba3f93fa0fn%40googlegroups.com.

Reply via email to