We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 974feda commit b869b74Copy full SHA for b869b74
1 file changed
apps/docs/app/docs/[[...slug]]/page.tsx
@@ -11,13 +11,18 @@ export default async function Page(props: {
11
const page = await source.getPage(params.slug ?? []);
12
if (!page) notFound();
13
14
- const Content = (page.data as any).body;
+ const data = page.data as any;
15
+ const Content = data.body;
16
17
return (
- <DocsPage>
18
+ <DocsPage toc={data.toc} full={data.full}>
19
<DocsBody>
- <h1>{page.data.title}</h1>
20
- {page.data.description && <p>{page.data.description}</p>}
+ <h1 className="mb-2 text-3xl font-bold text-foreground">{page.data.title}</h1>
21
+ {page.data.description && (
22
+ <p className="mb-8 text-lg text-muted-foreground">
23
+ {page.data.description}
24
+ </p>
25
+ )}
26
<Content components={defaultMdxComponents} />
27
</DocsBody>
28
</DocsPage>
0 commit comments