Documentation Language: Swift

Method

buildSidebar(moduleName:currentPath:depth:)

Builds the sidebar HTML showing all modules with the current module expanded.

mutating func buildSidebar(moduleName: String, currentPath: String, depth: Int) -> String

Parameters

moduleName

The name of the current module (will be expanded).

currentPath

The path of the currently selected page.

depth

The depth of the current page for relative URL calculation.

Return Value

The sidebar HTML string.