docs: improvements

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-08 13:53:11 +01:00
parent 2dda50fc7c
commit abf5353ab3
11 changed files with 321 additions and 39 deletions

View File

@@ -3,6 +3,7 @@ import { SectionHeader } from '@/components/section';
import { url } from '@/lib/layout.shared';
import { getOgImageUrl, getPageMetadata } from '@/lib/metadata';
import { pageSource } from '@/lib/source';
import { getMDXComponents } from '@/mdx-components';
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';
import Script from 'next/script';
@@ -81,9 +82,11 @@ export default async function Page({
description={page.data.description}
/>
</HeroContainer>
<article className="container col prose">
<Body />
</article>
<main className="container">
<article className="prose">
<Body components={getMDXComponents()} />
</article>
</main>
</div>
);
}

View File

@@ -36,6 +36,7 @@ export async function Footer() {
{ title: 'Documentation', url: '/docs' },
{ title: 'SDKs', url: '/docs/sdks' },
{ title: 'Articles', url: '/articles' },
{ title: 'Compare', url: '/compare' },
]}
/>
</div>

View File

@@ -1,4 +1,5 @@
import { FaqItem, Faqs } from '@/components/faq';
import { Figure } from '@/components/figure';
import { WindowImage } from '@/components/window-image';
import { Accordion, Accordions } from 'fumadocs-ui/components/accordion';
import * as FilesComponents from 'fumadocs-ui/components/files';
@@ -19,6 +20,7 @@ export function getMDXComponents(components?: MDXComponents) {
Faqs,
FaqItem,
WindowImage,
Figure,
} satisfies MDXComponents;
}