This commit is contained in:
Bereket Engida
2024-11-21 22:54:01 +03:00
parent 3d8d560420
commit 8c0e2fcada
6 changed files with 522 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ import { ForkButton } from "@/components/fork-button";
import Link from "next/link";
import defaultMdxComponents from "fumadocs-ui/mdx";
import { AutoTypeTable } from "fumadocs-typescript/ui";
import { openapi } from '@/app/source';
export default async function Page({
params,
@@ -73,6 +74,7 @@ export default async function Page({
Features,
ForkButton,
DatabaseTable,
APIPage: openapi.APIPage,
iframe: (props) => (
<iframe {...props} className="w-full h-[500px]" />
),

View File

@@ -1,6 +1,7 @@
import { docs, meta, changelog as _changelog } from "@/.source";
import { createMDXSource } from "fumadocs-mdx";
import { loader } from "fumadocs-core/source";
import { createOpenAPI } from "fumadocs-openapi/server";
export const source = loader({
baseUrl: "/docs",
@@ -11,3 +12,5 @@ export const changelog = loader({
baseUrl: "/changelog",
source: createMDXSource(_changelog, meta),
});
export const openapi = createOpenAPI({});