mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## Problem Missing meta descriptions on generated pages (wrappers, python client, terraform guides). ## Solution Add a `description` to the `meta` of each `pageMap` entry in: - `scripts/federated-content/sources/wrappers.ts` - `scripts/federated-content/sources/python.ts` - `scripts/federated-content/sources/terraform.ts` ## Review instructions Sanity check the descriptions. Rendered on the pages: <img width="1217" height="492" alt="image" src="https://github.com/user-attachments/assets/c962da15-9bdc-4440-80de-8bf2bbbce456" /> If needed, can check the output of pages, but probably not necessary given these aren't user facing. | Page | Before (live) | After (preview) | | --- | --- | --- | | Airtable wrapper | https://supabase.com/docs/guides/database/extensions/wrappers/airtable | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/database/extensions/wrappers/airtable | | Stripe wrapper | https://supabase.com/docs/guides/database/extensions/wrappers/stripe | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/database/extensions/wrappers/stripe | | S3 wrapper | https://supabase.com/docs/guides/database/extensions/wrappers/s3 | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/database/extensions/wrappers/s3 | | Python API | https://supabase.com/docs/guides/ai/python/api | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/ai/python/api | | Terraform provider | https://supabase.com/docs/guides/deployment/terraform | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/deployment/terraform | | Terraform tutorial | https://supabase.com/docs/guides/deployment/terraform/tutorial | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/deployment/terraform/tutorial | Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
52 lines
1.4 KiB
TypeScript
52 lines
1.4 KiB
TypeScript
import type { FederatedContentSource } from '../types'
|
|
|
|
// We fetch these docs at build time from an external repo
|
|
const python: FederatedContentSource = {
|
|
section: 'ai/python',
|
|
org: 'supabase',
|
|
repo: 'vecs',
|
|
branch: 'main',
|
|
docsDir: 'docs',
|
|
externalSite: 'https://supabase.github.io/vecs',
|
|
pageMap: [
|
|
{
|
|
slug: 'api',
|
|
meta: {
|
|
title: 'API',
|
|
description:
|
|
'Reference for the vecs Python client, covering installation, connecting to Postgres, and creating and querying vector collections.',
|
|
},
|
|
remoteFile: 'api.md',
|
|
},
|
|
{
|
|
slug: 'collections',
|
|
meta: {
|
|
title: 'Collections',
|
|
description:
|
|
'Explains vecs collections, the Postgres tables that store vector records with an ID, a vector, and JSON metadata.',
|
|
},
|
|
remoteFile: 'concepts_collections.md',
|
|
},
|
|
{
|
|
slug: 'indexes',
|
|
meta: {
|
|
title: 'Indexes',
|
|
description:
|
|
'Explains how to create an index on a vecs collection to speed up vector queries, and the distance measures and index methods to choose from.',
|
|
},
|
|
remoteFile: 'concepts_indexes.md',
|
|
},
|
|
{
|
|
slug: 'metadata',
|
|
meta: {
|
|
title: 'Metadata',
|
|
description:
|
|
'Describes the metadata types and query operators that vecs supports for filtering vector queries on metadata fields.',
|
|
},
|
|
remoteFile: 'concepts_metadata.md',
|
|
},
|
|
],
|
|
}
|
|
|
|
export default python
|