mirror of
https://github.com/Dokploy/website.git
synced 2026-06-16 04:35:26 +02:00
- Enhanced API documentation with new MDX files and improved structure. - Updated OpenAPI specifications to reflect recent changes and added new components. - Refined global CSS and layout configurations for better styling and user experience. - Added various images and icons to enrich the visual aspects of the documentation. - Updated package dependencies to ensure compatibility with the latest features.
29 lines
745 B
TypeScript
29 lines
745 B
TypeScript
import defaultMdxComponents from 'fumadocs-ui/mdx';
|
|
import type { MDXComponents } from 'mdx/types';
|
|
import { ImageZoom } from 'fumadocs-ui/components/image-zoom';
|
|
import { Callout } from 'fumadocs-ui/components/callout';
|
|
import { APIPage } from '@/lib/source';
|
|
|
|
export function getMDXComponents(components?: MDXComponents): MDXComponents {
|
|
return {
|
|
...defaultMdxComponents,
|
|
ImageZoom,
|
|
Callout,
|
|
APIPage,
|
|
...components,
|
|
p: ({ children }) => (
|
|
<p className="text-[#3E4342] dark:text-muted-foreground">
|
|
{children}
|
|
</p>
|
|
),
|
|
li: ({ children, id }) => (
|
|
<li
|
|
{...{ id }}
|
|
className="text-[#3E4342] dark:text-muted-foreground"
|
|
>
|
|
{children}
|
|
</li>
|
|
),
|
|
};
|
|
}
|