mirror of
https://github.com/dathere/ckanaction.git
synced 2026-07-05 17:12:19 +00:00
docs(build): update dependencies and use pnpm
This commit is contained in:
parent
aed973683f
commit
1947c2f5eb
141 changed files with 6255 additions and 1775 deletions
|
|
@ -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),
|
||||
})}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue