mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
## What The `build:llms` script no longer exists in apps/docs (its output, `apps/docs/public/llms/*.txt`, is superseded by `apps/www/app/llms/[slug]/route.ts` serving the generated reference markdown directly). Four stale references remained: - `apps/docs/.gitignore`: removed the `public/llms/` entry and its comment referencing the dead script. Nothing writes to that directory anymore; if you have leftover local files there, delete them. - `apps/docs/spec/reference/README.md`: the react-server `tsx` warning cited `pnpm build:llms` as the consumer. Replaced with `pnpm embeddings`, a live script that runs under `tsx --conditions=react-server`. I verified the constraint still holds: importing `Reference.utils.ts` crashes under `--conditions=react-server` (in `next/navigation`) and loads fine under plain `tsx`. - `apps/www/pages/modules/vector.tsx`: the maintenance comment pointed at `public/llms/vector.txt`, which doesn't exist in www. The hand-maintained markdown sibling lives at `content/md/modules/vector.md`. - `.agents/skills/ask-the-docs/reference/llm-agent-parity.md`: the "In-flux / stale wiring" bullet asserted the exact `.gitignore` line this PR deletes (and its "generation path is unclear" caveat no longer holds; per-source links resolve live via `apps/www/app/llms/[slug]/route.ts`). Removed the bullet so the ask-the-docs skill doesn't report a gitignore entry that no longer exists. No behavior change; docs and comments only (plus a gitignore entry). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Updated the embeddings documentation to use the current `pnpm embeddings` command. - Clarified where vector module content should be maintained alongside the corresponding page. - Removed outdated references to generated per-source LLM files and retired documentation describing stale generation paths. - Improved consistency between reference documentation and the current content-generation workflow. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
96 lines
3.7 KiB
TypeScript
96 lines
3.7 KiB
TypeScript
import 'swiper/css'
|
|
|
|
import DefaultLayout from '~/components/Layouts/Default'
|
|
import ModulesNav from '~/components/Modules/ModulesNav'
|
|
import vectorPageData from '~/data/products/modules/vector'
|
|
import { useBreakpoint } from 'common'
|
|
import { NextSeo } from 'next-seo'
|
|
import dynamic from 'next/dynamic'
|
|
import Head from 'next/head'
|
|
import { PRODUCT_MODULES_NAMES, PRODUCT_MODULES_SHORTNAMES } from 'shared-data/products'
|
|
|
|
import { breadcrumbs } from '@/lib/breadcrumbs'
|
|
import { breadcrumbListSchema, serializeJsonLd, softwareApplicationSchema } from '@/lib/json-ld'
|
|
|
|
const ProductModulesHeader = dynamic(() => import('~/components/Sections/ProductModulesHeader'))
|
|
const HighlightCards = dynamic(() => import('~/components/Sections/HighlightCards'))
|
|
const FeaturesSection = dynamic(() => import('~/components/Sections/FeaturesSection'))
|
|
const UseCasesSection = dynamic(() => import('~/components/Sections/UseCasesSection'))
|
|
const CenteredTitleImage = dynamic(() => import('~/components/Sections/CenteredTitleImage'))
|
|
const CustomerQuotesSection = dynamic(() => import('~/components/Sections/CustomerQuotesSection'))
|
|
const TimedTabsSection = dynamic(() => import('~/components/Sections/TimedTabsSection'))
|
|
const ProductsCta = dynamic(() => import('~/components/Sections/ProductsCta'))
|
|
const EnterpriseCta = dynamic(() => import('~/components/Sections/EnterpriseCta'))
|
|
|
|
// When updating page content, also update content/md/modules/vector.md
|
|
|
|
function VectorPage() {
|
|
// base path for images
|
|
const isXs = useBreakpoint(640)
|
|
const pageData = vectorPageData(isXs)
|
|
const meta_title = pageData.metaTitle
|
|
const meta_description = pageData.metaDescription
|
|
const meta_image = pageData.metaImage
|
|
|
|
return (
|
|
<>
|
|
<NextSeo
|
|
title={meta_title}
|
|
description={meta_description}
|
|
openGraph={{
|
|
title: meta_title,
|
|
description: meta_description,
|
|
url: `https://supabase.com/modules/vector`,
|
|
images: [
|
|
{
|
|
url: meta_image,
|
|
},
|
|
],
|
|
}}
|
|
/>
|
|
<Head>
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{
|
|
__html: serializeJsonLd(
|
|
softwareApplicationSchema({
|
|
name: 'Supabase Vector',
|
|
description: meta_description,
|
|
url: 'https://supabase.com/modules/vector',
|
|
image: meta_image,
|
|
})
|
|
),
|
|
}}
|
|
/>
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{
|
|
__html: serializeJsonLd(breadcrumbListSchema(breadcrumbs.vector)),
|
|
}}
|
|
/>
|
|
</Head>
|
|
<DefaultLayout className="bg-alternative!" stickyNavbar={false}>
|
|
<ModulesNav activePage={PRODUCT_MODULES_NAMES.VECTOR} docsUrl={pageData.docsUrl} />
|
|
<ProductModulesHeader {...pageData.heroSection} />
|
|
<HighlightCards {...(pageData.highlightsSection as any)} />
|
|
<CenteredTitleImage {...pageData.integrations} />
|
|
<TimedTabsSection {...pageData.APIsection} />
|
|
<div className="bg-alternative">
|
|
<UseCasesSection {...pageData.useCasesSection} />
|
|
<FeaturesSection {...pageData.featuresSection} />
|
|
</div>
|
|
<CustomerQuotesSection {...pageData.quotesSection} />
|
|
<div className="bg-linear-to-t from-alternative to-transparent">
|
|
<EnterpriseCta />
|
|
</div>
|
|
<div className="bg-background">
|
|
<div className="w-full h-px bg-linear-to-r from-background-alternative via-border to-background-alternative" />
|
|
<ProductsCta currentProduct={PRODUCT_MODULES_SHORTNAMES.VECTOR} />
|
|
</div>
|
|
</DefaultLayout>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default VectorPage
|