RazorDocs Search

ViewComponents

Type

SidebarViewComponent

A view component that renders the sidebar navigation for documentation pages. Groups documents by their directory structure for organized navigation.

Method

InvokeAsync

Task<IViewComponentResult> InvokeAsync()

Retrieves all documentation nodes and groups them by directory for sidebar display.

Returns

A view result containing documentation nodes grouped by their parent directory, ordered alphabetically by directory name.

Remarks

Documents without a directory path are grouped under "General".