mirror of
https://github.com/Kaelio/ktx.git
synced 2026-07-13 11:22:11 +02:00
docs: close unified ingest public docs gaps
This commit is contained in:
parent
7309fbde94
commit
644bf58c37
10 changed files with 50 additions and 14 deletions
|
|
@ -9,6 +9,7 @@ import { notFound, redirect } from "next/navigation";
|
|||
import defaultMdxComponents from "fumadocs-ui/mdx";
|
||||
import { CodeBlock } from "@/components/code-block";
|
||||
import { DocsPageActions } from "@/components/docs-page-actions";
|
||||
import { readDocsPageMarkdown } from "@/lib/docs-markdown";
|
||||
|
||||
const docsIndexPath = "/docs/getting-started/introduction";
|
||||
const docsIndexSlug = ["getting-started", "introduction"] as const;
|
||||
|
|
@ -33,6 +34,7 @@ export default async function Page(props: {
|
|||
if (!page) notFound();
|
||||
|
||||
const MDX = page.data.body;
|
||||
const mdxSource = await readDocsPageMarkdown(page.slugs);
|
||||
|
||||
const hero = isHeroPage(params.slug);
|
||||
|
||||
|
|
@ -44,7 +46,7 @@ export default async function Page(props: {
|
|||
<DocsTitle>{page.data.title}</DocsTitle>
|
||||
<DocsPageActions
|
||||
markdownUrl={`${page.url}.md`}
|
||||
mdxSource={page.data.content}
|
||||
mdxSource={mdxSource}
|
||||
/>
|
||||
</div>
|
||||
<DocsDescription>{page.data.description}</DocsDescription>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import "./global.css";
|
||||
import { RootProvider } from "fumadocs-ui/provider";
|
||||
import { RootProvider } from "fumadocs-ui/provider/next";
|
||||
import { Outfit, Inter, Geist_Mono } from "next/font/google";
|
||||
import type { ReactNode } from "react";
|
||||
import type { Metadata } from "next";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue