mirror of
https://github.com/supabase/supabase.git
synced 2026-06-20 19:16:04 +08:00
New Docs IA, mainly splitting up the miscellaneous bucket that is Platform into multiple sections
27 lines
891 B
TypeScript
27 lines
891 B
TypeScript
import { readFile } from 'node:fs/promises'
|
|
import { dirname, join } from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
import { ContributingToc } from '~/app/contributing/ContributingToC'
|
|
import { MDXProviderGuides } from '~/features/docs/GuidesMdx.client'
|
|
import { MDXRemoteBase } from '~/features/docs/MdxBase'
|
|
import { SidebarSkeleton } from '~/layouts/MainSkeleton'
|
|
|
|
export default async function ContributingPage() {
|
|
const contentFile = join(dirname(fileURLToPath(import.meta.url)), 'content.mdx')
|
|
const content = await readFile(contentFile, 'utf-8')
|
|
|
|
return (
|
|
<SidebarSkeleton hideSideNav>
|
|
<div className="px-8 py-16">
|
|
<article className="prose mx-auto">
|
|
<MDXProviderGuides>
|
|
<MDXRemoteBase source={content} />
|
|
</MDXProviderGuides>
|
|
</article>
|
|
<ContributingToc />
|
|
</div>
|
|
</SidebarSkeleton>
|
|
)
|
|
}
|