Skip to content

Commit

Permalink
Create AiServer.cshtml
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Oct 3, 2024
1 parent 6c364ea commit 075fa82
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions MyApp/Pages/AiServer.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@page "/ai-server/{**slug}"
@model MyApp.Page
@inject MarkdownPages Markdown
@implements IRenderStatic<MyApp.Page>

@functions {
public List<Page> GetStaticProps(RenderContext ctx) =>
ctx.Resolve<MarkdownPages>().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))

0 comments on commit 075fa82

Please sign in to comment.