Structure File Reference

The structure.yaml defines the tab and subtab structure of your project, and maps tabs to content in specific subdirectories.

This document contains the reference documentation for the file.

For usage and examples, see tabs and sub-tabs.

Configuration Example

An example structure.yaml demonstrating the available configuration options.

tabs:
  - label: Home
    icon:
      set: lucide
      name: home
    subtabs:
      - label: Home
        path: /
  - label: Desktop
    subtabs:
      - label: Introduction
        path: /desktop/introduction/
      - label: Advanced
        path: /desktop/advanced/
  - label: Dashboard
    subtabs:
      - label: Introduction
        path: /dashboard/introduction/
      - label: Advanced
        path: /dashboard/advanced/
  - label: Changelog
    external: http://example.com/

Reference

Below are explanations of all the objects and their fields in the structure definition.

Tab object

The tab object requires

fielddescriptionrequired?default
labelThe title of the tabtrue
subtabsList of sub-tabs in the tab (see below)true*
externalLinkSections in the tabtrue*
iconIcon to display for the tab (see below)false

Note: You must either specify subtabs or external for a tab.

Sub-tab object

fielddescriptionrequired?default
labelThe title of the sectiontrue
pathFolder to include in the section.true
iconIcon to display for the subtab (see below)false

Icon object

The icon field expects an object with the following fields:

fielddescriptionrequired?default
setName of the icon set (either lucide or devicon)true
nameThe name of the icon in the settrue

Was this page helpful?