feat: Add deployment/ci federated content and data (#48041)

This commit is contained in:
Jeremias Menichelli authored and GitHub committed 2026-07-21 12:17:05 +02:00
1 parent 0b53a1869f
commit fe5aff692d
6 files changed
+77 -134

No files matched your search

@@ -125,6 +125,8 @@ async function fetchPage(source: FederatedContentSource, page: FederatedPage): P
editLink: `${source.org}/${source.repo}/blob/${source.branch}/${remotePath(source, page)}`,
}
if (page.meta.subtitle) frontmatter.subtitle = page.meta.subtitle
if (page.meta.description) frontmatter.description = page.meta.description
if (page.meta.tocVideo) frontmatter.tocVideo = page.meta.tocVideo
return matter.stringify(`${content}\n`, frontmatter)
}
@@ -0,0 +1,46 @@
import type { FederatedContentSource } from '../types'
// We fetch these docs at build time from an external repo
const ci: FederatedContentSource = {
section: 'deployment/ci',
org: 'supabase',
repo: 'setup-cli',
branch: 'gh-pages',
docsDir: 'docs',
externalSite: 'https://supabase.github.io/setup-cli',
pageMap: [
{
slug: 'generating-types',
meta: {
title: 'Generate types using GitHub Actions',
description: 'End-to-end type safety across client, server, and database.',
subtitle: 'End-to-end type safety across client, server, and database.',
tocVideo: 'VSNgAIObBdw',
},
remoteFile: 'generating-types.md',
dropLeadingHeading: true,
},
{
slug: 'testing',
meta: {
title: 'Automated testing using GitHub Actions',
description: 'Run your tests when you or your team make changes.',
subtitle: 'Run your tests when you or your team make changes.',
},
remoteFile: 'testing.md',
dropLeadingHeading: true,
},
{
slug: 'backups',
meta: {
title: 'Automated backups using GitHub Actions',
description: 'Backup your database on a regular basis.',
subtitle: 'Backup your database on a regular basis.',
},
remoteFile: 'backups.md',
dropLeadingHeading: true,
},
],
}
export default ci
@@ -7,6 +7,8 @@ export interface FederatedPage {
meta: {
title: string
subtitle?: string
description?: string
tocVideo?: string
}
/** Path of the file in the remote repo, relative to `docsDir`. */
remoteFile: string