docs(build): update dependencies and use pnpm

This commit is contained in:
rzmk 2026-06-11 17:43:59 -04:00
parent aed973683f
commit 1947c2f5eb
141 changed files with 6255 additions and 1775 deletions

View file

@ -9,21 +9,29 @@ import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { getPageImage, source } from "@/lib/source";
import { getMDXComponents } from "@/mdx-components";
import { OpenAPIPage } from "@/components/api-page";
import { openapi } from "@/lib/openapi";
export default async function Page(props: PageProps<"/docs/[[...slug]]">) {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) notFound();
// @ts-expect-error
const MDX = page.data.body;
return (
// @ts-expect-error
<DocsPage toc={page.data.toc} full={page.data.full}>
<DocsTitle>{page.data.title}</DocsTitle>
<DocsDescription>{page.data.description}</DocsDescription>
<DocsBody>
<MDX
components={getMDXComponents({
OpenAPIPage: async (props) => (
// @ts-expect-error
<OpenAPIPage {...await openapi.preloadOpenAPIPage(page)} {...props} />
),
// this allows you to link to other pages with relative file paths
a: createRelativeLink(source, page),
})}