Welcome to the official documentation for the Sidebar Navigation Schema!
This schema defines a modular, extensible, and deeply recursive data structure for modeling navigational sidebars in documentation platforms, developer portals, content-heavy sites, and schema-driven UIs.
The Sidebar Navigation Schema provides a clear, structured way to represent hierarchical sidebar menus in YAML or JSON. It was designed to:
id, slug, path, and descriptions for advanced automationTraditional sidebar configs (especially in static site generators) can quickly become unmanageable. This schema brings:
linkItem, topicItem, and categoryItem are independently defined and reused.leafHeading and parentHeading.$defs + allOfThe schema uses allOf composition to combine reusable fragments like labelledObject and commonMeta.
Key components include:
linkItem: URI-based navigation linkscategoryItem: groups of links or topicstopicItem: structural headings with optional content listsemptySidebar / populatedSidebar: foundational sidebar containersleafHeading and parentHeading: represent structured document treesFields like:
description, summary, brief: flexible annotation fieldsid: regex-enforced to mimic filenamesslug: lowercase, hyphenated formatpath: leading-slash optional URL-style routingThese enable sidebar content to be parsed, indexed, rendered, or auto-labeled.
Future versions of the schema may include:
autoLabel: boolean flag to auto-generate labels from slug or pathExplore the definitions and integrations guide to go deeper โ this schema is built to scale with your content platform.