mirror of
https://github.com/Dokploy/website.git
synced 2026-06-15 20:25:25 +02:00
- Added a new script to generate templates from external sources, improving the documentation process. - Integrated new components (Tabs and Tab) into the MDX documentation for better content organization. - Updated the Next.js configuration to allow images from the templates URL. - Implemented batch processing for fetching and generating template files, enhancing performance and error handling. These changes streamline the documentation generation workflow and improve the user experience when accessing template information.
27 lines
745 B
TypeScript
27 lines
745 B
TypeScript
import { APIPage } from "@/lib/source";
|
|
import { Callout } from "fumadocs-ui/components/callout";
|
|
import { ImageZoom } from "fumadocs-ui/components/image-zoom";
|
|
import { Tab, Tabs } from "fumadocs-ui/components/tabs";
|
|
import defaultMdxComponents from "fumadocs-ui/mdx";
|
|
import type { MDXComponents } from "mdx/types";
|
|
|
|
export function getMDXComponents(components?: MDXComponents): MDXComponents {
|
|
return {
|
|
...defaultMdxComponents,
|
|
ImageZoom,
|
|
Callout,
|
|
Tab,
|
|
Tabs,
|
|
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>
|
|
),
|
|
};
|
|
}
|