docs: improvements
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user