This commit is contained in:
2026-06-11 12:26:33 -04:00
parent e147856b57
commit 6609d911fc
8 changed files with 141 additions and 13 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="docs/overview">
<NavLink class="nav-link" href="overview">
<span class="bi bi-book-nav-menu" aria-hidden="true"></span> Overview
</NavLink>
</div>
+1 -1
View File
@@ -7,7 +7,7 @@
<h1 class="display-4 mb-3">Earthborne Trailblazer</h1>
<p class="lead mb-4">Your essential companion guide for navigating the Valley and mastering your craft.</p>
<div class="hero-actions">
<NavLink href="docs/overview" class="btn btn-primary btn-lg px-4">Begin Journey</NavLink>
<NavLink href="overview" class="btn btn-primary btn-lg px-4">Begin Journey</NavLink>
</div>
</div>
</div>
+48
View File
@@ -0,0 +1,48 @@
@page "/overview"
@inject DocsService DocsService
<PageTitle>Overview</PageTitle>
@if (loading)
{
<div class="d-flex justify-content-center py-5">
<div class="spinner-border text-success" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
}
else if (doc == null)
{
<h1>Overview Not Found</h1>
<p>The overview document could not be found.</p>
}
else
{
<div class="section-header d-flex align-items-center mb-4">
<h1 class="mb-0">@doc.Title</h1>
<div class="ms-3 flex-grow-1 border-bottom opacity-25"></div>
</div>
@if (!string.IsNullOrEmpty(doc.FrontmatterHtml))
{
<details class="frontmatter-section" open>
<summary>Frontmatter</summary>
@((MarkupString)doc.FrontmatterHtml)
</details>
}
<div class="markdown-body overview-markdown">
@((MarkupString)doc.HtmlContent)
</div>
}
@code {
private NoteDocument? doc;
private bool loading = true;
protected override async Task OnInitializedAsync()
{
doc = await DocsService.GetNoteAsync("overview");
loading = false;
}
}
+1 -1
View File
@@ -200,7 +200,7 @@ public class DocsService
{
return Regex.Replace(
text,
@"\[\[([^\]]+)\]\]",
@"(?<!!)\[\[([^\]]+)\]\]",
match =>
{
var content = match.Groups[1].Value;