Skip to content

Advanced Folder Configurations

Section Index Pages

The Section Index Pages plugin allows you to turn a standard MkDocs navigation section title into a clickable link that opens a specific landing document. By default, MkDocs treats folder titles in your navigation sidebar strictly as collapsible headers that cannot hold content. To make a folder’s name clickable as a page, enable the navigation.indexes plugin:

theme:
  name: material
  features:
    - navigation.indexes
Name your file index.md inside the folder:

 nav:
  - Home: index.md
  - Tutorials:
    - tutorials/index.md
    - Installing: tutorials/install.md
    - Configuration: tutorials/config.md
Example site

Auto-Collapse Folders

Use the navigation.expand feature to decide if folders stay open or closed by default in the sidebar.

Add Icons to Folders

Use the navigation.sections feature to group folders into distinct visual categories with icons.