@@ -39,9 +39,7 @@ public static class ScaffoldTemplates
3939 public static string DocsPageRazor => """
4040 @page "/docs/{*Path:nonfile}"
4141 @layout DocsLayout
42- @using Microsoft.AspNetCore.Components.Sections
4342 @using ShellDocs.Components
44- @using ShellDocs.Components.Chrome
4543 @using ShellDocs.Components.Content
4644 @using ShellDocs.Components.Layouts
4745 @using ShellDocs.Core
@@ -54,11 +52,6 @@ @inject MarkdownRenderer Renderer
5452 @if (_document is not null)
5553 {
5654 <MarkdownContent Document="_document" />
57- <PrevNextNav Prev="_prev" Next="_next" />
58-
59- <SectionContent SectionName="docs-toc">
60- <TableOfContents Headings="_document.Headings" />
61- </SectionContent>
6255 }
6356 else
6457 {
@@ -74,8 +67,6 @@ @inject MarkdownRenderer Renderer
7467
7568 private RenderedDocument? _document;
7669 private string _title = "";
77- private NavigationNode? _prev;
78- private NavigationNode? _next;
7970
8071 protected override void OnParametersSet()
8172 {
@@ -85,14 +76,11 @@ protected override void OnParametersSet()
8576 {
8677 _document = Renderer.RenderFile(node.Path);
8778 _title = node.Title + " — Docs";
88- (_prev, _next) = Graph.GetPrevNext(node);
8979 }
9080 else
9181 {
9282 _document = null;
9383 _title = "Not found";
94- _prev = null;
95- _next = null;
9684 }
9785 }
9886 }
0 commit comments