From 075fa826ed86a52d2ceecbdfa2a8f4de99d4f9a4 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Thu, 3 Oct 2024 12:47:19 +0800 Subject: [PATCH] Create AiServer.cshtml --- MyApp/Pages/AiServer.cshtml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 MyApp/Pages/AiServer.cshtml diff --git a/MyApp/Pages/AiServer.cshtml b/MyApp/Pages/AiServer.cshtml new file mode 100644 index 000000000..a21c52d66 --- /dev/null +++ b/MyApp/Pages/AiServer.cshtml @@ -0,0 +1,20 @@ +@page "/ai-server/{**slug}" +@model MyApp.Page +@inject MarkdownPages Markdown +@implements IRenderStatic + +@functions { + public List GetStaticProps(RenderContext ctx) => + ctx.Resolve().GetVisiblePages("ai-server", allDirectories:true).Map(page => new Page { Slug = page.Slug.RightPart('/') }); +} + +@await Html.PartialAsync("DocsPage", new Shared.DocsPage { + Brand = "AI Server", + Slug = Model.Slug, + Folder = "ai-server", + DefaultMenu = new MarkdownMenu { + Icon = Markdown.DefaultMenuIcon, + Text = "AI Server", + Link = "/ai-server/", + }, +}.Init(this, Markdown))