mirror of
https://github.com/dathere/ckanaction.git
synced 2025-11-09 14:19:49 +00:00
13 lines
485 B
TypeScript
13 lines
485 B
TypeScript
import defaultMdxComponents from 'fumadocs-ui/mdx';
|
|
import { APIPage } from 'fumadocs-openapi/ui';
|
|
import { openapi } from '@/lib/openapi';
|
|
import type { MDXComponents } from 'mdx/types';
|
|
|
|
// use this function to get MDX components, you will need it for rendering MDX
|
|
export function getMDXComponents(components?: MDXComponents): MDXComponents {
|
|
return {
|
|
...defaultMdxComponents,
|
|
APIPage: (props) => <APIPage {...openapi.getAPIPageProps(props)} />,
|
|
...components,
|
|
};
|
|
}
|