mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added an "AI Tools" guides section with landing, overview, and troubleshooting pages; guides render from Markdown. * **Documentation** * New AI Tools guides: local development, Quickstart, CLI overview, troubleshooting, and detailed overview pages. * **Chores** * Site navigation updated to include an AI Tools entry and renamed subsection to "AI"; added permanent redirects from prior Getting Started AI URLs to the new AI Tools locations. * **Bug Fixes** * Updated internal guide links so AI prompt pages point to the new AI Tools paths. [](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/45795) <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
27 lines
861 B
TypeScript
27 lines
861 B
TypeScript
import { GuideTemplate } from '~/features/docs/GuidesMdx.template'
|
|
import {
|
|
genGuideMeta,
|
|
genGuidesStaticParams,
|
|
getGuidesMarkdown,
|
|
} from '~/features/docs/GuidesMdx.utils'
|
|
import { getEmptyArray } from '~/features/helpers.fn'
|
|
import { IS_DEV } from '~/lib/constants'
|
|
|
|
type Params = { slug?: string[] }
|
|
|
|
const AiToolsGuidePage = async (props: { params: Promise<Params> }) => {
|
|
const params = await props.params
|
|
const slug = ['ai-tools', ...(params.slug ?? [])]
|
|
const data = await getGuidesMarkdown(slug)
|
|
|
|
return <GuideTemplate {...data!} />
|
|
}
|
|
|
|
const generateStaticParams = !IS_DEV ? genGuidesStaticParams('ai-tools') : getEmptyArray
|
|
const generateMetadata = genGuideMeta((params: { slug?: string[] }) =>
|
|
getGuidesMarkdown(['ai-tools', ...(params.slug ?? [])])
|
|
)
|
|
|
|
export default AiToolsGuidePage
|
|
export { generateMetadata, generateStaticParams }
|