The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
moved a lot of docs around
Jonathan Summers-Muir64238c3ae77d
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 664b9f690da..8af489d28d8 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -39,110 +39,101 @@ export const REFERENCES: References = {export const gettingstarted = {icon: 'getting-started',title: 'Getting Started',- label: 'Overview',items: [+ { name: 'Features', url: '/guides/getting-started/features', items: [] },+ { name: 'Architecture', url: '/guides/getting-started/architecture', items: [] },{- name: 'Framework Quickstarts',+ name: 'Quickstarts',items: [- { name: 'NextJS', url: '/getting-started/quickstarts/nextjs', items: [] },- { name: 'ReactJS', url: '/getting-started/quickstarts/reactjs', items: [] },+ { name: 'NextJS', url: '/guides/getting-started/quickstarts/nextjs', items: [] },+ { name: 'ReactJS', url: '/guides/getting-started/quickstarts/reactjs', items: [] },],},- ],-}--export const tutorials = {- icon: 'tutorials',- label: 'Quickstarts',- items: [{- name: 'Web apps',+ name: 'Web app tutorials',items: [{name: 'Next.js',- url: '/guides/tutorials/with-nextjs',+ url: '/guides/getting-started/tutorials/with-nextjs',items: [],},{name: 'React',- url: '/guides/tutorials/with-react',+ url: '/guides/getting-started/tutorials/with-react',items: [],icon: '/img/icons/react-icon.svg',},{name: 'Vue 3',- url: '/guides/tutorials/with-vue-3',+ url: '/guides/getting-started/tutorials/with-vue-3',items: [],},{name: 'Nuxt 3',- url: '/guides/tutorials/with-nuxt-3',+ url: '/guides/getting-started/tutorials/with-nuxt-3',items: [],},{name: 'Angular',- url: '/guides/tutorials/with-angular',+ url: '/guides/getting-started/tutorials/with-angular',items: [],},{name: 'RedwoodJS',- url: '/guides/tutorials/with-redwoodjs',+ url: '/guides/getting-started/tutorials/with-redwoodjs',items: [],},{name: 'SolidJS',- url: '/guides/tutorials/with-solidjs',+ url: '/guides/getting-started/tutorials/with-solidjs',items: [],},{name: 'Svelte',- url: '/guides/tutorials/with-svelte',+ url: '/guides/getting-started/tutorials/with-svelte',items: [],},{name: 'SvelteKit',- url: '/guides/tutorials/with-sveltekit',+ url: '/guides/getting-started/tutorials/with-sveltekit',items: [],},],},{- name: 'Mobile',+ name: 'Mobile tutorials',items: [{name: 'Flutter',- url: '/guides/tutorials/with-flutter',+ url: '/guides/getting-started/tutorials/with-flutter',items: [],},{name: 'Expo',- url: '/guides/tutorials/with-expo',+ url: '/guides/getting-started/tutorials/with-expo',items: [],},- ],- },- {- name: 'Low code',- items: [+{name: 'Ionic React',- url: '/guides/tutorials/with-ionic-react',+ url: '/guides/getting-started/tutorials/with-ionic-react',items: [],},{name: 'Ionic Vue',- url: '/guides/tutorials/with-ionic-vue',+ url: '/guides/getting-started/tutorials/with-ionic-vue',items: [],},{name: 'Ionic Angular',- url: '/guides/tutorials/with-ionic-angular',+ url: '/guides/getting-started/tutorials/with-ionic-angular',items: [],},],},],}+export const cli = {label: 'CLI',items: [@@ -570,6 +561,29 @@ export const resources = {{ name: 'Docker', url: '/guides/resources/self-hosting/docker', items: [] },],},+ {+ name: 'Self-Hosting reference docs',+ items: [+ {+ name: 'Auth server',+ parent: 'reference_self_hosting_auth',+ icon: '/docs/img/icons/menu/reference-auth',+ items: [],+ },+ {+ name: 'Storage server',+ parent: 'reference_self_hosting_storage',+ icon: '/docs/img/icons/menu/reference-storage',+ items: [],+ },+ {+ name: 'Realtime server',+ parent: 'reference_self_hosting_realtime',+ icon: '/docs/img/icons/menu/reference-realtime',+ items: [],+ },+ ],+ },],}diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsxindex c3b3468fdaa..d382fde223c 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx@@ -85,12 +85,9 @@ const SideNav = () => {case `/docs`:setLevel('home')break- case url.includes(`/docs/getting-started`) && url:+ case url.includes(`/docs/guides/getting-started`) && url:setLevel('gettingstarted')break- case url.includes(`/docs/guides/tutorials`) && url:- setLevel('tutorials')- breakcase url.includes(`/docs/guides/database`) && url:setLevel('database')break@@ -173,15 +170,9 @@ const SideNav = () => {{label: 'Getting Started',icon: '/img/icons/menu/getting-started',- href: '/getting-started',+ href: '/guides/getting-started',level: 'gettingstarted',},- {- label: 'Tutorials',- icon: '/img/icons/menu/tutorials',- href: '/guides/tutorials',- level: 'tutorials',- },],[{@@ -246,13 +237,6 @@ const SideNav = () => {href: '/reference/javascript/introduction',level: 'reference_javascript',},- // {- // label: 'Python Client Library',- // icon: '/img/icons/python-icon',- // hasLightIcon: false,- // href: '/reference/javascript/start',- // level: 'reference_javascript',- // },{label: 'Flutter',icon: '/img/icons/menu/reference-dart',@@ -304,20 +288,13 @@ const SideNav = () => {],]- // generate Open API specs-- // @ts-ignore- // const apiSpec = gen_v3(apiSpecRaw, 'wat', { apiUrl: 'apiv0' })-return (<div className="flex relative">{/* // main menu */}<divclassName={[- '','transition-all duration-150 ease-out',level === 'home' ? 'opacity-100 ml-0 delay-150' : 'opacity-0 -ml-8 invisible absolute',- // level !== 'home' && 'opacity-0 invisible'].join(' ')}><ul className="relative w-full flex flex-col gap-4">@@ -381,14 +358,13 @@ const SideNav = () => {</div><NavigationMenuGuideList id={'gettingstarted'} currentLevel={level} />- <NavigationMenuGuideList id={'tutorials'} currentLevel={level} /><NavigationMenuGuideList id={'database'} currentLevel={level} /><NavigationMenuGuideList id={'auth'} currentLevel={level} /><NavigationMenuGuideList id={'functions'} currentLevel={level} /><NavigationMenuGuideList id={'realtime'} currentLevel={level} /><NavigationMenuGuideList id={'storage'} currentLevel={level} /><NavigationMenuGuideList id={'platform'} currentLevel={level} />- <NavigationMenuGuideList id={'resources'} currentLevel={level} />+ <NavigationMenuGuideList id={'resources'} currentLevel={level} setLevel={setLevel} /><NavigationMenuGuideList id={'integrations'} currentLevel={level} /><NavigationMenuGuideList id={'reference'} currentLevel={level} />{/* // Client Libs */}diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsxindex 1b8e4a8bda1..c1e8dd2dfb0 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx@@ -1,14 +1,12 @@+import * as Accordion from '@radix-ui/react-accordion'+import { useTheme } from 'common/Providers'+import Image from 'next/image'import Link from 'next/link'import { useRouter } from 'next/router'-import rehypeFilter from 'react-markdown/lib/rehype-filter'import { IconChevronLeft } from '~/../../packages/ui'import * as NavItems from './NavigationMenu.constants'-import * as Accordion from '@radix-ui/react-accordion'-import { useEffect } from 'react'-import Image from 'next/image'-import { useTheme } from 'common/Providers'-const NavigationMenuGuideList = ({ currentLevel, id }) => {+const NavigationMenuGuideList = ({ currentLevel, id, setLevel }) => {const router = useRouter()const { isDarkMode } = useTheme()@@ -106,6 +104,27 @@ const NavigationMenuGuideList = ({ currentLevel, id }) => {subItemMenuOpen = true}+ const LinkContainer = (props) => {+ if (props.url) {+ return (+ <Link href={props.url} passHref>+ <a className={props.className}>{props.children}</a>+ </Link>+ )+ } else {+ return (+ <button+ className={props.className}+ onClick={() => {+ if (props.parent) setLevel(props.parent)+ }}+ >+ {props.children}+ </button>+ )+ }+ }+return (<>{subItemIndex === 0 && (@@ -118,18 +137,36 @@ const NavigationMenuGuideList = ({ currentLevel, id }) => {)}<Accordion.Item key={subItem.label} value={subItem.url}><li key={subItem.name}>- <Link href={`${subItem.url}`} passHref>+ <LinkContainer+ url={subItem.url}+ className={[+ 'flex items-center gap-2',+ 'cursor-pointer transition text-sm',+ subItem.url === router.pathname+ ? 'text-brand-900'+ : 'hover:text-brand-900 text-scale-1000',+ ].join(' ')}+ parent={subItem.parent}+ >+ {subItem.icon && <img src={`${subItem.icon}.svg`} className="w-3" />}+ {subItem.name}+ </LinkContainer>+ {/* <Link href={`${subItem.url}`} passHref><aclassName={[+ 'flex items-center gap-2','cursor-pointer transition text-sm',subItem.url === router.pathname? 'text-brand-900': 'hover:text-brand-900 text-scale-1000',].join(' ')}>+ {subItem.icon && (+ <img src={`${subItem.icon}.svg`} className="w-3" />+ )}{subItem.name}</a>- </Link>+ </Link> */}</li>{subItem.items && subItem.items.length > 0 && (diff --git a/apps/docs/pages/guides/getting-started.mdx b/apps/docs/pages/guides/getting-started.mdxnew file mode 100644index 00000000000..5bd6e232132--- /dev/null+++ b/apps/docs/pages/guides/getting-started.mdx@@ -0,0 +1,275 @@+import Layout from '~/layouts/DefaultLayout'+import Link from 'next/link'+import { GlassPanel, IconPanel, Button, IconChevronRight } from 'ui'++export const meta = {+ id: 'getting-started',+ title: 'Getting started',+ description: 'Resources for getting started building with Supabase.',+}++<div className="flex flex-col gap-12 my-12">++<div>++ <div className="grid grid-cols-12 gap-6 not-prose">+ {resources.map((resource) => {+ return (+ <Link+ href={`${resource.href}`}+ key={resource.title}+ passHref+ >+ <a className={'col-span-12 md:col-span-4'}>+ <GlassPanel {...resource} background={false} showIconBg={true}>+ {resource.description}+ </GlassPanel>+ </a>+ </Link>+ )++})}++ </div>++</div>++<div>+ <div className="max-w-xl mb-6">++### Migrate to Supabase++ </div>++ <div className="grid grid-cols-12 gap-6 not-prose">+ {migrationGuides.map((product) => {+ return (+ <Link+ href={`${product.href}`}+ key={product.title}+ passHref+ >+ <a className={product.span ?? 'col-span-6 md:col-span-3'}>+ <IconPanel {...product} background={true} showIconBg={true} showLink={true}>+ {product.description}+ </IconPanel>+ </a>+ </Link>+ )++})}++ </div>++</div>++<div className="grid gap-16 md:grid-cols-2">++ <div>++ ### Supabase CLI++ Develop your project locally, manage your Supabase projects, handle database migrations, CI/CD workflows, and generate types from your database schema, all from the comfort of your Terminal.++[Learn more](/docs/guides/resources/supabase-cli)++ </div>++ <div>++ ### Self-Hosting Supabase++ We're happy to host your next big thing, but we also make it easy to host Supabase on your own. We use Docker to help make setup as painless as possible.++[Learn more](/docs/guides/resources/self-hosting)++ </div>++</div>++{/* end of container */}++</div>++### Tutorials++#### Webapps++<div className="grid grid-cols-12 gap-6 not-prose">+ {webapps.map((item) => {+ return (+ <Link href={`/${item.href}`} key={item.title} passHref>+ <a className={'col-span-4'}>+ <GlassPanel title={item.title} span="col-span-6" background={false} icon={item.icon}>+ {item.description}+ </GlassPanel>+ </a>+ </Link>+ )+ })}+</div>++#### Mobile++<div className="grid grid-cols-12 gap-6 not-prose">+ {mobile.map((item) => {+ return (+ <Link href={`/${item.href}`} key={item.title} passHref>+ <a className={'col-span-4'}>+ <GlassPanel title={item.title} span="col-span-6" background={false} icon={item.icon}>+ {item.description}+ </GlassPanel>+ </a>+ </Link>+ )+ })}+</div>++export const webapps = [+ {+ title: 'NextJS',+ href: '/guides/tutorials/with-nextjs',+ description:+ 'Learn how to build a user management app with NextJS and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/nextjs-icon',+ },+ {+ title: 'React',+ href: '/guides/tutorials/with-react',+ description:+ 'Learn how to build a user management app with React and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/react-icon',+ },+ {+ title: 'Vue 3',+ href: '/guides/tutorials/with-vue-3',+ description:+ 'Learn how to build a user management app with Vue 3 and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/vuejs-icon',+ },+ {+ title: 'Nuxt 3',+ href: '/guides/tutorials/with-nuxt-3',+ description:+ 'Learn how to build a user management app with Nuxt 3 and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/nuxt-icon',+ },+ {+ title: 'Anglular',+ href: '/guides/tutorials/with-angular',+ description:+ 'Learn how to build a user management app with Nuxt 3 and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/angular-icon',+ },+ {+ title: 'RedwoodJS',+ href: '/guides/tutorials/with-redwoodjs',+ description:+ 'Learn how to build a user management app with Nuxt 3 and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/redwood-icon',+ },+ {+ title: 'Svelte',+ href: '/guides/tutorials/with-svelte',+ description:+ 'Learn how to build a user management app with Nuxt 3 and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/svelte-icon',+ },+ {+ title: 'SvelteKit',+ href: '/guides/tutorials/with-sveltekit',+ description:+ 'Learn how to build a user management app with Nuxt 3 and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/svelte-icon',+ },+]++export const mobile = [+ {+ title: 'Flutter',+ href: '/guides/tutorials/with-flutter',+ description:+ 'Learn how to build a user management app with Flutter and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/flutter-icon',+ },+ {+ title: 'Expo',+ href: '/guides/tutorials/with-expo',+ description:+ 'Learn how to build a user management app with React and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/expo-icon',+ },+ {+ title: 'Ionic React',+ href: '/guides/tutorials/with-ionic-react',+ description:+ 'Learn how to build a user management app with React and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/ionic-icon',+ },+ {+ title: 'Ionic Vue',+ href: '/guides/tutorials/with-ionic-vue',+ description:+ 'Learn how to build a user management app with Flutter and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/ionic-icon',+ },+ {+ title: 'Ionic Angular',+ href: '/guides/tutorials/with-ionic-angular',+ description:+ 'Learn how to build a user management app with NextJS and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/ionic-icon',+ },+]++export const resources = [+ {+ title: 'Examples',+ hasLightIcon: true,+ href: '/guides/resources/examples',+ description: 'Official GitHub examples, curated content from the community, and more.',+ },+ {+ title: 'Features',+ hasLightIcon: true,+ href: '/features',+ description: 'A non-exhaustive list of features that Supabase provides for every project.',+ },+ {+ title: 'Glossary',+ hasLightIcon: true,+ href: '/guides/resources/glossary',+ description: 'Definitions for terminology and acronyms used in the Supabase documentation.',+ },+]++export const migrationGuides = [+ {+ title: 'Firebase Auth',+ icon: '/docs/img/icons/firebase-icon',+ href: '/guides/migrations/firebase-auth',+ description: 'Move your auth users from a Firebase project to a Supabase project.',+ },+ {+ title: 'Firebase Data',+ icon: '/docs/img/icons/firebase-icon',+ href: '/guides/migrations/firestore-data',+ description: 'Migrate the contents of a Firestore collection to a single PostgreSQL table.',+ },+ {+ title: 'Firebase Storage',+ icon: '/docs/img/icons/firebase-icon',+ href: '/guides/migrations/firebase-storage',+ description: 'Convert your Firebase Storage files to Supabase Storage.',+ },+ {+ title: 'Heroku',+ icon: '/docs/img/icons/heroku-icon',+ href: '/guides/migrations/heroku',+ description: 'Migrate your Heroku Postgres database to Supabase.',+ },+]++export const Page = ({ children }) => <Layout meta={meta} children={children} />++export default Pagediff --git a/apps/docs/pages/guides/getting-started/architecture.mdx b/apps/docs/pages/guides/getting-started/architecture.mdxnew file mode 100644index 00000000000..4784794feb9--- /dev/null+++ b/apps/docs/pages/guides/getting-started/architecture.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/architecture.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/getting-started/features.mdx b/apps/docs/pages/guides/getting-started/features.mdxnew file mode 100644index 00000000000..db7bbb78d32--- /dev/null+++ b/apps/docs/pages/guides/getting-started/features.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/features.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/getting-started/quickstarts/nextjs.mdx b/apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdxsimilarity index 100%rename from apps/docs/pages/getting-started/quickstarts/nextjs.mdxrename to apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdxdiff --git a/apps/docs/pages/getting-started/quickstarts/nuxtjs.mdx b/apps/docs/pages/guides/getting-started/quickstarts/nuxtjs.mdxsimilarity index 100%rename from apps/docs/pages/getting-started/quickstarts/nuxtjs.mdxrename to apps/docs/pages/guides/getting-started/quickstarts/nuxtjs.mdxdiff --git a/apps/docs/pages/getting-started/quickstarts/reactjs.mdx b/apps/docs/pages/guides/getting-started/quickstarts/reactjs.mdxsimilarity index 100%rename from apps/docs/pages/getting-started/quickstarts/reactjs.mdxrename to apps/docs/pages/guides/getting-started/quickstarts/reactjs.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-angular.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-angular.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-expo.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-expo.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-expo.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-expo.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-flutter.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-flutter.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-ionic-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-angular.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-ionic-angular.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-ionic-angular.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-ionic-react.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-react.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-ionic-react.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-ionic-react.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-ionic-vue.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-vue.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-ionic-vue.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-ionic-vue.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-nextjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-nextjs.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-nuxt-3.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-nuxt-3.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-nuxt-3.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-nuxt-3.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-react.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-react.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-react.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-react.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-redwoodjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-redwoodjs.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-redwoodjs.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-redwoodjs.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-solidjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-solidjs.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-solidjs.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-solidjs.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-svelte.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-svelte.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-svelte.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-svelte.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-sveltekit.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-sveltekit.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdxdiff --git a/apps/docs/pages/guides/tutorials/with-vue-3.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-vue-3.mdxsimilarity index 100%rename from apps/docs/pages/guides/tutorials/with-vue-3.mdxrename to apps/docs/pages/guides/getting-started/tutorials/with-vue-3.mdxdiff --git a/apps/docs/pages/guides/resources.mdx b/apps/docs/pages/guides/resources.mdxindex 467986fd4b0..c5f2480f960 100644--- a/apps/docs/pages/guides/resources.mdx+++ b/apps/docs/pages/guides/resources.mdx@@ -22,7 +22,7 @@ export const meta = {passHref><a className={'col-span-12 md:col-span-4'}>- <GlassPanel {...resource} background={true} showIconBg={true}>+ <GlassPanel {...resource} background={false} showIconBg={true}>{resource.description}</GlassPanel></a>@@ -36,24 +36,24 @@ export const meta = {</div><div>- <div className="max-w-xl">+ <div className="max-w-xl mb-6">### Migrate to Supabase</div><div className="grid grid-cols-12 gap-6 not-prose">- {products.map((product) => {+ {migrationGuides.map((product) => {return (<Linkhref={`${product.href}`}key={product.title}passHref>- <a className={product.span ?? 'col-span-12 md:col-span-4'}>- <GlassPanel {...product} background={true} showIconBg={true} showLink={true}>+ <a className={product.span ?? 'col-span-6 md:col-span-3'}>+ <IconPanel {...product} background={true} showIconBg={true} showLink={true}>{product.description}- </GlassPanel>+ </IconPanel></a></Link>)@@ -95,59 +95,48 @@ export const meta = {export const resources = [{title: 'Examples',- icon: '/docs/img/icons/menu/resources',hasLightIcon: true,href: '/guides/resources/examples',description: 'Official GitHub examples, curated content from the community, and more.',},{title: 'Features',- icon: '/docs/img/icons/menu/resources',hasLightIcon: true,href: '/features',description: 'A non-exhaustive list of features that Supabase provides for every project.',},{title: 'Glossary',- icon: '/docs/img/icons/menu/resources',hasLightIcon: true,href: '/guides/resources/glossary',description: 'Definitions for terminology and acronyms used in the Supabase documentation.',},]-export const products = [+export const migrationGuides = [{title: 'Firebase Auth',- icon: '/docs/img/icons/menu/auth',- hasLightIcon: true,+ icon: '/docs/img/icons/firebase-icon',href: '/guides/migrations/firebase-auth',description: 'Move your auth users from a Firebase project to a Supabase project.',- span: 'col-span-12 md:col-span-6',},{title: 'Firebase Data',- icon: '/docs/img/icons/menu/database',- hasLightIcon: true,+ icon: '/docs/img/icons/firebase-icon',href: '/guides/migrations/firestore-data',description: 'Migrate the contents of a Firestore collection to a single PostgreSQL table.',- span: 'col-span-12 md:col-span-6',},{title: 'Firebase Storage',- icon: '/docs/img/icons/menu/storage',- hasLightIcon: true,+ icon: '/docs/img/icons/firebase-icon',href: '/guides/migrations/firebase-storage',description: 'Convert your Firebase Storage files to Supabase Storage.',- span: 'col-span-12 md:col-span-6',},{title: 'Heroku',- icon: '/docs/img/icons/menu/database',- hasLightIcon: true,+ icon: '/docs/img/icons/heroku-icon',href: '/guides/migrations/heroku',description: 'Migrate your Heroku Postgres database to Supabase.',- span: 'col-span-12 md:col-span-6',},]diff --git a/apps/docs/pages/new/index.mdx b/apps/docs/pages/new/index.mdxindex fedfc3d6e9c..471c300ccaf 100644--- a/apps/docs/pages/new/index.mdx+++ b/apps/docs/pages/new/index.mdx@@ -28,7 +28,7 @@ export const meta = {px-8 md:px-12 py-5 md:py-12"><div className="col-span-12 lg:col-span-7 flex flex-col gap-6">- <img className="hidden lg:visible absolute right-0 top-0 w-[500px]" src="/docs/img/cards/dark.png" />+ <img className="hidden lg:block absolute right-0 top-0 w-[500px]" src="/docs/img/cards/dark.png" /><div classNam=""><h3 className="text-2xl m-0 mb-3">Getting Started</h3>diff --git a/apps/docs/public/img/icons/firebase-icon.svg b/apps/docs/public/img/icons/firebase-icon.svgnew file mode 100644index 00000000000..57bc1df1880--- /dev/null+++ b/apps/docs/public/img/icons/firebase-icon.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" height="64" viewBox="0 0 32 32" width="64"><path d="M19.62 11.558l-3.203 2.98-2.972-5.995 1.538-3.448c.4-.7 1.024-.692 1.414 0z" fill="#ffa000"/><path d="M13.445 8.543l2.972 5.995-11.97 11.135z" fill="#f57f17"/><path d="M23.123 7.003c.572-.55 1.164-.362 1.315.417l3.116 18.105-10.328 6.2c-.36.2-1.32.286-1.32.286s-.874-.104-1.207-.3L4.447 25.673z" fill="#ffca28"/><path d="M13.445 8.543l-8.997 17.13L8.455.638c.148-.78.592-.855.988-.167z" fill="#ffa000"/></svg>\ No newline at end of filediff --git a/apps/docs/public/img/icons/heroku-icon.svg b/apps/docs/public/img/icons/heroku-icon.svgnew file mode 100644index 00000000000..eba45563758--- /dev/null+++ b/apps/docs/public/img/icons/heroku-icon.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="512px" height="512px"><path fill="#7e57c2" d="M7,41L7,7c0-2.209,1.791-4,4-4h26c2.209,0,4,1.785,4,3.994c0,8.018,0,25.991,0,34.01C41,43.214,39.209,45,37,45H11C8.791,45,7,43.209,7,41z"/><path fill="#fff" d="M28.292,39.221v-16.68c0,0,1.085-3.991-13.364,1.633c-0.026,0.071-0.026-15.424-0.026-15.424l4.721-0.029v9.928c0,0,13.218-5.206,13.218,3.948v16.623L28.292,39.221L28.292,39.221L28.292,39.221z M30.982,14.73h-5.007c1.802-2.204,3.434-5.98,3.434-5.98h5.178C34.586,8.751,33.7,11.211,30.982,14.73L30.982,14.73L30.982,14.73z M14.987,39.192v-9.498l4.75,4.75L14.987,39.192L14.987,39.192z"/></svg>\ No newline at end of file