1- import DocsNavbar from '@/components/docs/navbar' ;
2- import { mdxComponents } from '@/components/mdx' ;
3- import TableOfContents from '@/components/toc/toc' ;
4- import { docs } from '@/lib/source' ;
51import { Flex , Headline , Text } from '@raystack/apsara' ;
62import { createRelativeLink } from 'fumadocs-ui/mdx' ;
73import type { Metadata } from 'next' ;
84import { notFound } from 'next/navigation' ;
5+ import DocsFooter from '@/components/docs/footer' ;
6+ import DocsNavbar from '@/components/docs/navbar' ;
7+ import { mdxComponents } from '@/components/mdx' ;
8+ import TableOfContents from '@/components/toc/toc' ;
9+ import { docs } from '@/lib/source' ;
910import styles from './page.module.css' ;
1011
1112export default async function Page ( props : PageProps < '/docs/[[...slug]]' > ) {
@@ -15,8 +16,6 @@ export default async function Page(props: PageProps<'/docs/[[...slug]]'>) {
1516
1617 const MDX = page . data . body ;
1718
18- console . log ( 'page' , page ) ;
19-
2019 return (
2120 < Flex
2221 direction = 'column'
@@ -33,22 +32,25 @@ export default async function Page(props: PageProps<'/docs/[[...slug]]'>) {
3332 />
3433 < Flex width = 'full' align = 'start' >
3534 < Flex direction = 'column' align = 'center' justify = 'center' width = 'full' >
36- < Flex direction = 'column' gap = { 6 } className = { styles . content } >
37- < Flex direction = 'column' gap = { 3 } >
38- < Headline size = 't4' > { page . data . title } </ Headline >
39- < Text size = 'regular' variant = 'secondary' >
40- { page . data . description }
41- </ Text >
42- </ Flex >
43- < Flex direction = 'column' className = 'prose' >
44- < MDX
45- components = { {
46- ...mdxComponents ,
47- // this allows you to link to other pages with relative file paths
48- a : createRelativeLink ( docs , page )
49- } }
50- />
35+ < Flex direction = 'column' className = { styles . content } justify = 'between' >
36+ < Flex direction = 'column' gap = { 6 } >
37+ < Flex direction = 'column' gap = { 3 } >
38+ < Headline size = 't4' > { page . data . title } </ Headline >
39+ < Text size = 'regular' variant = 'secondary' >
40+ { page . data . description }
41+ </ Text >
42+ </ Flex >
43+ < Flex direction = 'column' className = 'prose' >
44+ < MDX
45+ components = { {
46+ ...mdxComponents ,
47+ // this allows you to link to other pages with relative file paths
48+ a : createRelativeLink ( docs , page )
49+ } }
50+ />
51+ </ Flex >
5152 </ Flex >
53+ < DocsFooter url = { page . url } />
5254 </ Flex >
5355 </ Flex >
5456 < aside
@@ -58,6 +60,7 @@ export default async function Page(props: PageProps<'/docs/[[...slug]]'>) {
5860 position : 'sticky' ,
5961 top : '50px' ,
6062 padding : '40px 0' ,
63+ paddingRight : 'var(--rs-space-7)' ,
6164 display : 'flex' ,
6265 flexDirection : 'column' ,
6366 justifyContent : 'center' ,
0 commit comments