@layout PageLayout @inject IDocumentationService DocumentationService @using Markdig @implements IDisposable @page "/docs/{text?}" @if (!DocumentationService.IsLoaded()) { } else { Documentation
Section:
@foreach (var doc in DocumentationService.DocumentationModels) { if (selectedSection != "All" && doc.Section != selectedSection) { continue; }
@doc.Section
Last Updated on @doc.UpdatedDate.ToString("MM/dd/yyyy")
@doc.Name
@((MarkupString)Markdown.ToHtml(doc.Description))
}
} @code { [Parameter] public string? Text { get; set; } string selectedSection = "All"; protected override void OnInitialized() { DocumentationService.Subscribe(StateHasChanged); DocumentationService.Load(); } public void Dispose() { DocumentationService.Unsubscribe(StateHasChanged); } void OnSectionChanged(ChangeEventArgs e) { selectedSection = e.Value.ToString(); StateHasChanged(); } }