mirror of
https://github.com/Dokploy/website.git
synced 2026-06-15 20:25:25 +02:00
- Standardized import statements across various components to use double quotes for consistency. - Updated component files to ensure proper formatting and adherence to coding standards. - Enhanced overall code readability by aligning code structure and improving comment clarity. - Made minor adjustments to ensure all components follow the same coding conventions, improving maintainability.
24 lines
673 B
TypeScript
24 lines
673 B
TypeScript
import { APIPage } from "@/lib/source";
|
|
import { Callout } from "fumadocs-ui/components/callout";
|
|
import { ImageZoom } from "fumadocs-ui/components/image-zoom";
|
|
import defaultMdxComponents from "fumadocs-ui/mdx";
|
|
import type { MDXComponents } from "mdx/types";
|
|
|
|
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>
|
|
),
|
|
};
|
|
}
|