Structure
NavigationSidebarBuilder
Builds the navigation sidebar HTML from a navigation index.
struct NavigationSidebarBuilder
Overview
This builder creates a hierarchical sidebar with:
-
Disclosure chevrons for expandable items (pure CSS, no JavaScript)
-
Selected item highlighting
-
Proper icons/badges for different symbol types
Topics
Initializers
?
init(navigationIndex:)
Creates a new navigation sidebar builder.
Instance Methods
F
buildModuleSection(_:isCurrentModule:currentPath:depth:)
Builds a module section in the multi-module sidebar.
F
buildMultiModuleSidebar(allModules:currentModuleName:currentPath:depth:)
Builds a sidebar showing all modules with expandable navigation.
F
buildSidebar(moduleName:currentPath:depth:)
Builds the sidebar HTML showing all modules with the current module expanded.