Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'master' into fs/docs-homepage

Francesco Sansalvadoref027427f6eae
diff --cc apps/docs/layouts/guides/index.tsx
index a05a7f99bc4,390945e7b2e..b0af7dfd509
--- a/apps/docs/layouts/guides/index.tsx
+++ b/apps/docs/layouts/guides/index.tsx
@@@ -106,12 -105,55 +106,55 @@@ const Layout: FC<Props> = (props) =>
},
}}
/>
+ <LayoutMainContent className="pb-0">
- <div className={['grid grid-cols-12 relative gap-4'].join(' ')}>
+ <div className={['grid grid-cols-12 relative gap-4'].join(' ')}>
+ <div
+ className={[
+ 'relative',
+ !props.hideToc ? 'col-span-12 md:col-span-9' : 'col-span-12',
+ 'transition-all ease-out',
+ 'duration-100',
+ ].join(' ')}
+ >
+ {props.meta.breadcrumb && (
+ <p className="text-brand-900 tracking-wider mb-3">{props.meta.breadcrumb}</p>
+ )}
+ <article
+ ref={articleRef}
+ className={`${
+ props.meta?.hide_table_of_contents || !hasTableOfContents ? '' : ''
+ } prose dark:prose-dark max-w-none`}
+ >
+ <h1 className="mb-0">{props.meta.title}</h1>
+ {props.meta.subtitle && (
+ <h2 className="mt-3 text-xl text-scale-1100">{props.meta.subtitle}</h2>
+ )}
+ <div className="w-full h-[1px] bg-scale-500 my-8"></div>
+ <MDXProvider components={components}>{props.children}</MDXProvider>
+
+ {EDIT_BUTTON_EXCLUDE_LIST.includes(router.route) ? (
+ <></>
+ ) : (
+ <div className="mt-16 not-prose">
+ <div>
+ <Link
+ href={`https://github.com/supabase/supabase/edit/master/apps/docs/pages${router.asPath}.mdx`}
+ passHref
+ >
+ <a className="text-sm transition flex items-center gap-1 text-scale-1000 hover:text-scale-1200">
+ Edit this page on GitHub <IconExternalLink size={14} strokeWidth={1.5} />
+ </a>
+ </Link>
+ </div>
+ </div>
+ )}
+ </article>
+ </div>
+ {!props.hideToc && hasTableOfContents && !props.meta?.hide_table_of_contents && (
<div
className={[
- 'col-span-3',
- 'border-scale-400 dark:bg-scale-200 table-of-contents-height',
- 'thin-scrollbar overflow-y-auto sticky hidden md:block md:col-span-3 px-2',
+ 'relative',
+ !props.hideToc ? 'col-span-12 md:col-span-9' : 'col-span-12',
'transition-all ease-out',
'duration-100',
].join(' ')}