Section Indexes#
When the section index theme feature is enabled, documents can be directly attached to sections. This is particularly useful for providing overview pages.
Example Scenario#
Let's say you have a site with Release Notes and About documents. The Release Notes documents are a subsection of the About section. Both sections contain an overview page:
With Section Indexes Feature#
About and Release Notes are clickable in the side navigation. The index page for the About section does not appear as a subpage of the About category:
Without Section Indexes Feature#
About and Release Notes are not clickable in the side navigation. Instead, they are rendered as greyed out text. The index page for the About section appears as a subpage of the About category:
Setup#
-
Add the
navigation.side.indexes
feature to the theme configuration inmkdocs.yml
:theme: name: terminal features: - navigation.side.indexes
-
Add a page with the title 'Index' as a subpage in the
nav
config inmkdocs.yml
: