The table of contents is the list of documents that is displayed on the left
side of every page on fuchsia.dev. It is represented by a hierarchical set of
_toc.yaml files. The top level
_toc.yaml file is
If you add a new document or if you want to change how existing documents are
organized in the source documentation section of
fuchsia.dev, you need to change the navigation table of contents, defined in
_toc.yaml files. These files are located in the same directory of
the documentation file or in a parent directory.
To change the documentation navigation for an existing document:
Locate the corresponding
_toc.yamlfile for the document in the source code tree.
_toc.yamlfile. You have to specify the published location of the document in the
_toc.yamlfiles instead of the actual path in the Fuchsia source code. See
To add navigation for a new document:
Locate the closest
_toc.yamlfile for the document. If the directory where you created the document has a
_toc.yamlfile, use that file. If not, navigate through the parent directories until you locate the closest
_toc.yaml file can contain single entries or expandable sections
with multiple entries:
A single entry in the table of contents navigation is represented by a title and a path in the corresponding
_toc.yamlfile. Each entry must also use the correct indentation like the other entries in
Paths must follow these requirements:
- Paths to files should be the full path from the root of the project. For
- Paths to directories should not include a trailing slash, and the directory
must have a file named
For example, to add an entry for the Zircon
concepts.mdpage in its respective
_toc.yaml, you should add an entry:
- title: "Kernel concepts" path: /docs/concepts/kernel/concepts.md
- Paths to files should be the full path from the root of the project. For example,
An expandable section is an expandable group of multiple entries in a table of contents. For example, see the expandable sections, such as Networking and Graphics, in the Concepts section. Each expandable section has an arrow to the left of the section name.
You can create a group of entries with a
sectionelement. Each section must also use the correct indentation like the other entries in
_toc.yaml. Then, you can add single entries to the section.
For example, to add a section in the "System" table of contents
_toc.yaml, add a
sectiongroup and its corresponding entries. Usually the entries are included from another _toc.yaml file:
- title: "Zircon kernel" section: - include: /docs/concepts/kernel/_toc.yaml
Once you have made these changes, you can submit your changes for review.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.