+@inject Web.Services.DocsService DocsService
+
+? notes;
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
@@ -42,4 +58,9 @@
collapseNavMenu = !collapseNavMenu;
}
-}
\ No newline at end of file
+ protected override async Task OnInitializedAsync()
+ {
+ var index = await DocsService.GetIndexAsync();
+ notes = index.Notes.OrderBy(n => n.Title).ToList();
+ }
+}
diff --git a/ET/Web/Layout/NavMenu.razor.css b/ET/Web/Layout/NavMenu.razor.css
index 617b89c..198564f 100644
--- a/ET/Web/Layout/NavMenu.razor.css
+++ b/ET/Web/Layout/NavMenu.razor.css
@@ -65,6 +65,23 @@
color: white;
}
+.nav-item-doc ::deep a {
+ padding-left: 1.5rem !important;
+ font-size: 0.8rem;
+ height: 2rem !important;
+ line-height: 2rem !important;
+}
+
+.nav-section-header {
+ font-size: 0.7rem;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 0.08em;
+ color: rgba(255,255,255,0.5);
+ padding-top: 1rem;
+ padding-bottom: 0.25rem;
+}
+
@media (min-width: 641px) {
.navbar-toggler {
display: none;
diff --git a/ET/Web/Pages/Docs.razor b/ET/Web/Pages/Docs.razor
index a4133fc..cb63f5c 100644
--- a/ET/Web/Pages/Docs.razor
+++ b/ET/Web/Pages/Docs.razor
@@ -1,38 +1,7 @@
@page "/docs"
-@inject Web.Services.DocsService DocsService
Docs
? notes;
-
- protected override async Task OnInitializedAsync()
- {
- var index = await DocsService.GetIndexAsync();
- notes = index.Notes;
- }
-}
+
-
@code {
private bool collapseNavMenu = true;
+ private List
-
- Docs
-
-
+
+ Documentation
+
+ @if (notes == null)
+ {
+ Loading...
+ }
+ else
+ {
+ @foreach (var note in notes)
+ {
+
+
+ @note.Title
+
+
+ }
+ }
Documentation
-@if (notes == null) -{ -Loading...
-} -else -{ -
- @foreach (var note in notes.OrderBy(n => n.Title))
- {
-
-
-}
-
-@code {
- private List- @note.Title - @if (!string.IsNullOrEmpty(note.Category)) - { - @note.Category - } -
- - } -Select a note from the sidebar to view its contents.