Files
supabase/apps/docs/data/content-listings/getting-started.data.ts
T
Danny White c0f1ef51fb feat(docs): migrate resources and getting-started to ContentListings (#48517)
## What kind of change does this PR introduce?

Docs update / follow-up to #48379.

## What is the current behavior?

`/guides/resources` and `/guides/getting-started` hand-roll `GlassPanel`
grids in MDX. They look like ContentListings cards after the chrome PR,
but they do not use the shared data files, so they miss PostHog
`docs_content_listing_clicked` telemetry and the CONTRIBUTING
contribution path.

## What is the new behavior?

Those pages use `<ContentListings id="…" />` backed by
`resources.data.ts` and `getting-started.data.ts`, same pattern as
storage.

- Section-level `$Show` wrappers stay for framework / web / mobile
blocks
- Nimbus stays a `$Partial` behind `$Show`
- New optional per-item `feature` field gates SDK links (e.g. Flutter /
Swift / Kotlin) without splitting whole sections
- CONTRIBUTING notes when to use `feature` vs a partial-level `$Show`

## To test

Compare the following against `master`:

-
[Resources](https://docs-git-dnywh-docs-content-listings-resources-239158-supabase.vercel.app/docs/guides/resources):
overview, migrate, and postgres grids; icons in light/dark
- [Getting
started](https://docs-git-dnywh-docs-content-listings-resources-239158-supabase.vercel.app/docs/guides/getting-started):
overview, use cases, framework quickstarts, web demos, mobile tutorials;
nimbus partial when enabled
- Click a card and confirm `docs_content_listing_clicked` fires with the
expected `listingId`

Everything should look and feel the same. It’s just that we’re using
`ContentListings` instead of `GlassPanel` grids.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added centralized Getting Started and Resources content listings,
including quickstarts, demos, tutorials, migration guides, and Postgres
resources.
- Added feature-based visibility controls for individual content listing
items.

- **Improvements**
- Disabled content is now automatically hidden from documentation pages
and generated Markdown.
  - Pages and sections with no available content are omitted entirely.
  - External documentation links are more secure.
- Updated contribution guidance with instructions and examples for
feature flags.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-03 00:52:44 +00:00

328 lines
12 KiB
TypeScript

import type { ContentListingGroup } from '~/lib/content-listings.schema'
export const gettingStartedOverview: ContentListingGroup = {
id: 'getting-started-overview',
type: 'grid',
items: [
{
title: 'Build with AI tools',
href: '/guides/ai-tools',
description: 'Develop with Supabase AI-first using plugins, MCP, and skills.',
},
{
title: 'API Keys',
href: '/guides/getting-started/api-keys',
description: 'Learn about the different API keys in Supabase and how to use them.',
},
{
title: 'Local Development',
href: '/guides/local-development',
description: 'Use the Supabase CLI to develop locally and collaborate between teams.',
},
],
}
export const gettingStartedUseCases: ContentListingGroup = {
id: 'getting-started-use-cases',
heading: 'Use cases',
headingLevel: 'h3',
type: 'grid',
items: [
{
title: 'AI, Vectors, and embeddings',
href: '/guides/ai#examples',
icon: '/docs/img/icons/openai_logo',
hasLightIcon: true,
description: 'Build AI-enabled applications using our Vector toolkit.',
},
{
title: 'Subscription Payments (SaaS)',
href: 'https://github.com/vercel/nextjs-subscription-payments#nextjs-subscription-payments-starter',
icon: '/docs/img/icons/nextjs-icon',
hasLightIcon: false,
description:
'Clone, deploy, and fully customize a SaaS subscription application with Next.js.',
},
{
title: 'Partner Gallery',
href: 'https://github.com/supabase-community/partner-gallery-example#supabase-partner-gallery-example',
icon: '/docs/img/icons/nextjs-icon',
hasLightIcon: false,
description: 'Postgres full-text search, image storage, and more.',
},
],
}
export const gettingStartedFrameworkQuickstarts: ContentListingGroup = {
id: 'getting-started-framework-quickstarts',
heading: 'Framework quickstarts',
headingLevel: 'h3',
type: 'grid',
items: [
{
title: 'React',
href: '/guides/getting-started/quickstarts/reactjs',
icon: '/docs/img/icons/react-icon',
hasLightIcon: false,
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from a React app.',
},
{
title: 'Next.js',
href: '/guides/getting-started/quickstarts/nextjs',
icon: '/docs/img/icons/nextjs-icon',
hasLightIcon: true,
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Next.js app.',
},
{
title: 'Nuxt',
href: '/guides/getting-started/quickstarts/nuxtjs',
icon: '/docs/img/icons/nuxt-icon',
hasLightIcon: false,
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Nuxt app.',
},
{
title: 'Hono',
href: '/guides/getting-started/quickstarts/hono',
icon: '/docs/img/icons/hono-icon',
hasLightIcon: false,
description:
'Learn how to create a Supabase project, add some sample data to your database, secure it with auth, and query the data from a Hono app.',
},
{
title: 'RedwoodJS',
href: '/guides/getting-started/quickstarts/redwoodjs',
icon: '/docs/img/icons/redwood-icon',
hasLightIcon: false,
description:
'Learn how to create a Supabase project, add some sample data to your database using Prisma migration and seeds, and query the data from a RedwoodJS app.',
},
{
title: 'Flutter',
href: '/guides/getting-started/quickstarts/flutter',
icon: '/docs/img/icons/flutter-icon',
hasLightIcon: false,
feature: 'sdk:dart',
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Flutter app.',
},
{
title: 'iOS SwiftUI',
href: '/guides/getting-started/quickstarts/ios-swiftui',
icon: '/docs/img/icons/swift-icon',
hasLightIcon: false,
feature: 'sdk:swift',
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from an iOS app.',
},
{
title: 'Android Kotlin',
href: '/guides/getting-started/quickstarts/kotlin',
icon: '/docs/img/icons/kotlin-icon',
hasLightIcon: false,
feature: 'sdk:kotlin',
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from an Android Kotlin app.',
},
{
title: 'SvelteKit',
href: '/guides/getting-started/quickstarts/sveltekit',
icon: '/docs/img/icons/svelte-icon',
hasLightIcon: false,
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from a SvelteKit app.',
},
{
title: 'SolidJS',
href: '/guides/getting-started/quickstarts/solidjs',
icon: '/docs/img/icons/solidjs-icon',
hasLightIcon: false,
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from a SolidJS app.',
},
{
title: 'Vue',
href: '/guides/getting-started/quickstarts/vue',
icon: '/docs/img/icons/vuejs-icon',
hasLightIcon: false,
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Vue app.',
},
{
title: 'TanStack Start',
href: '/guides/getting-started/quickstarts/tanstack',
icon: '/docs/img/icons/tanstack-icon',
hasLightIcon: true,
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from a TanStack Start app.',
},
{
title: 'Refine',
href: '/guides/getting-started/quickstarts/refine',
icon: '/docs/img/icons/refine-icon',
hasLightIcon: false,
description:
'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Refine app.',
},
],
}
export const gettingStartedWebAppDemos: ContentListingGroup = {
id: 'getting-started-web-app-demos',
heading: 'Web app demos',
headingLevel: 'h3',
type: 'grid',
items: [
{
title: 'Next.js',
href: '/guides/getting-started/tutorials/with-nextjs',
icon: '/docs/img/icons/nextjs-icon',
hasLightIcon: true,
description:
'Learn how to build a user management app with Next.js and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'React',
href: '/guides/getting-started/tutorials/with-react',
icon: '/docs/img/icons/react-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with React and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'Vue 3',
href: '/guides/getting-started/tutorials/with-vue-3',
icon: '/docs/img/icons/vuejs-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with Vue 3 and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'Nuxt 3',
href: '/guides/getting-started/tutorials/with-nuxt-3',
icon: '/docs/img/icons/nuxt-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with Nuxt 3 and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'Angular',
href: '/guides/getting-started/tutorials/with-angular',
icon: '/docs/img/icons/angular-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with Angular and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'RedwoodJS',
href: '/guides/getting-started/tutorials/with-redwoodjs',
icon: '/docs/img/icons/redwood-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with RedwoodJS and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'Svelte',
href: '/guides/getting-started/tutorials/with-svelte',
icon: '/docs/img/icons/svelte-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with Svelte and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'SvelteKit',
href: '/guides/getting-started/tutorials/with-sveltekit',
icon: '/docs/img/icons/svelte-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with SvelteKit and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'Refine',
href: '/guides/getting-started/tutorials/with-refine',
icon: '/docs/img/icons/refine-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with Refine and Supabase Database, Auth, and Storage functionality.',
},
],
}
export const gettingStartedMobileTutorials: ContentListingGroup = {
id: 'getting-started-mobile-tutorials',
heading: 'Mobile tutorials',
headingLevel: 'h3',
type: 'grid',
items: [
{
title: 'Flutter',
href: '/guides/getting-started/tutorials/with-flutter',
icon: '/docs/img/icons/flutter-icon',
hasLightIcon: false,
feature: 'sdk:dart',
description:
'Learn how to build a user management app with Flutter and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'Expo React Native',
href: '/guides/getting-started/tutorials/with-expo-react-native',
icon: '/docs/img/icons/expo-icon',
hasLightIcon: true,
description:
'Learn how to build a user management app with Expo React Native and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'Expo React Native Social Auth',
href: '/guides/auth/quickstarts/with-expo-react-native-social-auth',
icon: '/docs/img/icons/expo-icon',
hasLightIcon: true,
description:
'Learn how to implement social authentication in an app with Expo React Native and Supabase Database and Auth functionality.',
},
{
title: 'Android Kotlin',
href: '/guides/getting-started/tutorials/with-kotlin',
icon: '/docs/img/icons/kotlin-icon',
hasLightIcon: false,
feature: 'sdk:kotlin',
description:
'Learn how to build a product management app with Android and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'iOS Swift',
href: '/guides/getting-started/tutorials/with-swift',
icon: '/docs/img/icons/swift-icon',
hasLightIcon: false,
feature: 'sdk:swift',
description:
'Learn how to build a user management app with iOS and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'Ionic React',
href: '/guides/getting-started/tutorials/with-ionic-react',
icon: '/docs/img/icons/ionic-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with Ionic React and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'Ionic Vue',
href: '/guides/getting-started/tutorials/with-ionic-vue',
icon: '/docs/img/icons/ionic-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with Ionic Vue and Supabase Database, Auth, and Storage functionality.',
},
{
title: 'Ionic Angular',
href: '/guides/getting-started/tutorials/with-ionic-angular',
icon: '/docs/img/icons/ionic-icon',
hasLightIcon: false,
description:
'Learn how to build a user management app with Ionic Angular and Supabase Database, Auth, and Storage functionality.',
},
],
}