Multiple tables of contents
Article last updated at August 11, 2026
You can split a documentation project into parts by grouping articles into multiple tables of contents and linking them with cross-references.
How to group articles
If you create a table of contents file toc.yaml in a project folder, all articles in that folder and its subfolders will display the table of contents from that file.
For example, in the following structure:
input-folder
|-- toc.yaml # корневое оглавление
|-- article1.md
|-- article2.md
|-- folder1
|-- article3.md
|-- folder2
|-- toc.yaml # оглавление подраздела
|-- article4.md
|-- article5.md
|-- folder3
|-- article6.md
- the files
article1.md,article2.md,article3.mdwill use the table of contents from the roottoc.yaml, - the files
article4.md,article5.md,article6.mdwill use the table of contents fromfolder2/toc.yaml.
You can create cross-references between tables of contents by including items from another table of contents in toc.yaml or by using the project's extended navigation.
Possible contents of the table of contents files from the example:
|
toc.yaml |
folder2/toc.yaml |
|
|
Was the article helpful?
Previous