How To Make Toctree Link Refer To The Separate File Like It Refers To The Subsections
Structure The following structure of the project: index.rst MyProject ========= Contents: .. toctree:: group1 group1.rst Group1 ------ Subgroup1 ========= Subgroup1 conte
Solution 1:
You need to have a file per page of content. Sphinx doesn't break files into multiple pages.
What works for me is creating toctree
directives that reference files containing sub-toctree
directives. I like to create the sub-groups in directories, but you could do this within one directory.
index.rst
:
MyProject
=========
Contents:
.. toctree::
group1/index
group1/index.rst
:
Group1
======
.. toctree::
subgroup1
subgroup2
group1/subgroup1.rst
:
Subgroup1
=========
Subgroup1 contents
group1/subgroup2.rst
:
Subgroup2
=========
Subgroup2 contents
Post a Comment for "How To Make Toctree Link Refer To The Separate File Like It Refers To The Subsections"