The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix build error + improving search index granularity
Joshen Limad7628a81384
diff --git a/apps/temp-docs/components/ButtonCard.tsx b/apps/temp-docs/components/ButtonCard.tsxindex 8ac61494589..e3238678634 100644--- a/apps/temp-docs/components/ButtonCard.tsx+++ b/apps/temp-docs/components/ButtonCard.tsx@@ -1,5 +1,6 @@import React from 'react'import Link from 'next/link'+import Image from 'next/image'export default function ButtonCard({children = undefined,@@ -11,22 +12,33 @@ export default function ButtonCard({}) {return (<Link href={to}>- <a className={['button-card h-full pb-4 block', `button-card--${layout}`].join(' ')}>+ <a+ className={[+ 'h-full block shadow-none bg-scale-400 rounded transition',+ 'border border-transparent hover:border-scale-600',+ ].join('')}+ >{children ? (children) : (<div- className={`button-card__inner p-4 gap-1 flex ${+ className={`px-6 py-4 gap-x-4 gap-y-2 flex ${layout === 'vertical' ? 'flex-col' : 'items-center'}`}+ className={[+ 'px-6 py-4 gap-x-4 gap-y-2 flex',+ `${layout === 'vertical' ? 'flex-col' : 'items-center'}`,+ ].join(' ')}>{icon && typeof icon == 'string' ? (- <img className="m-0" src={icon} width={24} alt={title} />+ <div className="w-[24px] h-[24px]">+ <Image className="m-0" src={icon} width={24} height={24} alt={title} />+ </div>) : (icon)}- <h3 className="mt-0">{title}</h3>- <p>{description}</p>+ <h3 className="my-0 text-base truncate">{title}</h3>+ <p className="my-0 text-sm truncate">{description}</p></div>)}</a>diff --git a/apps/temp-docs/components/Frameworks.tsx b/apps/temp-docs/components/Frameworks.tsxindex 69eb20ac53e..8e012ba08ae 100644--- a/apps/temp-docs/components/Frameworks.tsx+++ b/apps/temp-docs/components/Frameworks.tsx@@ -4,56 +4,82 @@ const Frameworks = () => {const frameworks = [{name: 'Angular',- // logo: AngularLogo,+ logo: {+ light: '/docs/img/libraries/angular-icon.svg',+ dark: '/docs/img/libraries/angular-icon.svg',+ },href: '/guides/with-angular',},{name: 'Expo',- // logo: ExpoLogo,+ logo: {+ light: '/docs/img/libraries/expo-icon.svg',+ dark: '/docs/img/libraries/expo-icon.svg',+ },href: '/guides/with-expo',},{name: 'Flutter',- // logo: FlutterLogo,+ logo: {+ light: '/docs/img/libraries/dart-icon.svg',+ dark: '/docs/img/libraries/dart-icon.svg',+ },href: '/guides/with-flutter',},{name: 'JavaScript',- // logo: JavascriptLogo,+ logo: {+ light: '/docs/img/libraries/javascript-icon.svg',+ dark: '/docs/img/libraries/javascript-icon.svg',+ },href: '/reference/javascript/installing#javascript',},{name: 'Next.js',- themed: true,logo: {- dark: '/img/libraries/nextjs-dark-icon.svg',- light: '/img/libraries/nextjs-light-icon.svg',+ light: '/docs/img/libraries/nextjs-icon.svg',+ dark: '/docs/img/libraries/nextjs-icon.svg',},href: '/guides/with-nextjs',},{name: 'React',- // logo: ReactLogo,+ logo: {+ light: '/docs/img/libraries/react-icon.svg',+ dark: '/docs/img/libraries/react-icon.svg',+ },href: '/guides/with-react',},{name: 'RedwoodJS',- // logo: RedwoodJsLogo,+ logo: {+ light: '/docs/img/libraries/redwoodjs-icon.svg',+ dark: '/docs/img/libraries/redwoodjs-icon.svg',+ },href: '/guides/with-redwoodjs',},{name: 'SolidJS',- // logo: SolidJSLogo,+ logo: {+ light: '/docs/img/libraries/solidjs-icon.svg',+ dark: '/docs/img/libraries/solidjs-icon.svg',+ },href: '/guides/with-solidjs',},{name: 'Svelte',- // logo: SvelteLogo,+ logo: {+ light: '/docs/img/libraries/svelte-icon.svg',+ dark: '/docs/img/libraries/svelte-icon.svg',+ },href: '/guides/with-svelte',},{name: 'Vue',- // logo: VuejsLogo,+ logo: {+ light: '/docs/img/libraries/vuejs-icon.svg',+ dark: '/docs/img/libraries/vuejs-icon.svg',+ },href: '/guides/with-vue-3',},]@@ -65,30 +91,8 @@ const Frameworks = () => {layout="horizontal"to={x.href}title={x.name}- // icon={- // x.logo && !x.themed ? (- // <x.logo- // width="20"- // alt={x.name}- // style={{ display: 'block', maxHeight: 20, minWidth: 20 }}- // />- // ) : (- // <ThemedImage- // style={{- // display: 'block',- // maxHeight: 20,- // minWidth: 20,- // margin: 0,- // }}- // alt={x.name}- // width="20"- // sources={{- // light: useBaseUrl(x.logo.light),- // dark: useBaseUrl(x.logo.dark),- // }}- // />- // )- // }+ // [Joshen] Nice to have: theming+ icon={x.logo.dark}/></div>))}diff --git a/apps/temp-docs/components/Navigation/Search.tsx b/apps/temp-docs/components/Navigation/Search.tsxindex d81fef5b97f..979e685eebd 100644--- a/apps/temp-docs/components/Navigation/Search.tsx+++ b/apps/temp-docs/components/Navigation/Search.tsx@@ -1,5 +1,5 @@import { render } from 'react-dom'-import { IconCommand } from 'ui'+import { Badge, IconCommand } from 'ui'import { createElement, FC, useEffect, useRef, Fragment } from 'react'import algoliasearch from 'algoliasearch/lite'import { autocomplete, getAlgoliaResults } from '@algolia/autocomplete-js'@@ -53,16 +53,11 @@ const Search: FC<Props> = ({}) => {// @ts-ignorerenderer: { createElement, Fragment, render },placeholder: 'Search docs',- navigator: {- navigate({ itemUrl }) {- // router.push(itemUrl);- },- },plugins: [recentSearchesPlugin],renderNoResults({ state, render }, root) {render(<div className="text-scale-1100 py-2 text-sm px-4">- No results found for "{state.query}".+ No results found for {state.query}.</div>,root)@@ -74,16 +69,30 @@ const Search: FC<Props> = ({}) => {sourceId: 'pages',templates: {item({ item, components }) {- console.log(item)return (- <a href={item.url as string} className="aa-ItemLink">- <div className="aa-ItemContent">- <div className="aa-ItemTitle">- <components.Highlight hit={item} attribute="title" />+ <Link href={item.url as string}>+ <a className="aa-ItemLink truncate flex justify-between space-x-4">+ <div className="aa-ItemContent w-full">+ <div className="aa-ItemTitle flex items-center space-x-1">+ {item.category && (+ <p+ className={`${item.category === 'cli' ? 'uppercase' : 'capitalize'}`}+ >+ {item.category}+ {item.version ? ` (${item.version})` : ''}:+ </p>+ )}+ <p>+ <components.Highlight hit={item} attribute="title" />+ </p>+ </div>+ <p className="aa-ItemContentSubtitle">{item.description}</p></div>- <p className="aa-ItemContentSubtitle">{item.description}</p>- </div>- </a>+ {/* <div>+ <Badge color="gray">{item.source}</Badge>+ </div> */}+ </a>+ </Link>)},},diff --git a/apps/temp-docs/docs/introduction.mdx b/apps/temp-docs/docs/introduction.mdxindex c21dc539c4f..ec5ed2a00b4 100644--- a/apps/temp-docs/docs/introduction.mdx+++ b/apps/temp-docs/docs/introduction.mdx@@ -2,6 +2,7 @@id: 'introduction'title: 'Introduction'description: 'Introduction to Supabase'+hide_table_of_contents: true---# Introductiondiff --git a/apps/temp-docs/docs/reference.mdx b/apps/temp-docs/docs/reference.mdxindex 79493f9710c..e48873dbf8a 100644--- a/apps/temp-docs/docs/reference.mdx+++ b/apps/temp-docs/docs/reference.mdx@@ -13,7 +13,7 @@ Reference documentation for the official Supabase client libraries, APIs, and to<div class="container p-0"><div class="grid grid-cols-2 gap-3">- <div class="w-1/2 border">+ <div class="w-1/2"><ButtonCardicon="/docs/img/libraries/javascript-icon.svg"to="/reference/javascript"@@ -21,7 +21,7 @@ Reference documentation for the official Supabase client libraries, APIs, and todescription="JavaScript and TypeScript documentation."/></div>- <div class="w-1/2 border">+ <div class="w-1/2"><ButtonCardicon="/docs/img/libraries/dart-icon.svg"to="/reference/dart"@@ -29,14 +29,14 @@ Reference documentation for the official Supabase client libraries, APIs, and todescription="Flutter and Dart documentation."/></div>- <div class="w-1/2 border">+ <div class="w-1/2"><ButtonCard icon="/docs/img/libraries/cli-icon.svg"to="/reference/cli"title="Supabase CLI"description="Tools for developing your Supabase projects locally."/></div>- <div class="w-1/2 border">+ <div class="w-1/2"><ButtonCard icon="/docs/img/libraries/api-icon.svg"to="/reference/api"title="Supabase API"@@ -52,14 +52,14 @@ Reference documentation for self-hosting Supabase features.<div class="container"><div class="grid grid-cols-2 gap-3">- <div class="w-1/2 border">+ <div class="w-1/2"><ButtonCardto='/reference/auth'title='Auth Server'description=" JSON Web Token (JWT)-based API for managing users and issuing access tokens."/></div>- <div class="w-1/2 border">+ <div class="w-1/2"><ButtonCardto='/reference/storage'title='Storage'diff --git a/apps/temp-docs/layouts/Default.tsx b/apps/temp-docs/layouts/Default.tsxindex 58d53738dc3..698e448bf43 100644--- a/apps/temp-docs/layouts/Default.tsx+++ b/apps/temp-docs/layouts/Default.tsx@@ -52,7 +52,7 @@ const Layout: FC<Props> = ({ meta, children, toc, menuItems, currentPage }) => {<div className="docs-width grid grid-cols-12 gap-4 justify-between p-4 pb-8 w-full"><divclassName={`${- meta?.hide_table_of_contents ? 'col-span-12' : 'col-span-10 xl:col-span-8'+ meta?.hide_table_of_contents ? 'col-span-12' : 'col-span-12 xl:col-span-8'} py-4 px-8`}><article className="prose dark:prose-dark dark:bg-scale-200 width-full mt-8">diff --git a/apps/temp-docs/public/img/libraries/redwoodjs-icon.svg b/apps/temp-docs/public/img/libraries/redwoodjs-icon.svgnew file mode 100644index 00000000000..ed4d687b8c5--- /dev/null+++ b/apps/temp-docs/public/img/libraries/redwoodjs-icon.svg@@ -0,0 +1,3 @@+<svg viewBox="0 0 39 42" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M10.4814 6.07243L18.6366 11.6391C18.8206 11.7617 19.0356 11.8288 19.2563 11.8326C19.4773 11.831 19.6928 11.7637 19.876 11.6391L28.0374 6.0537C28.3545 5.82665 28.5294 5.44815 28.4976 5.05762C28.4658 4.66709 28.2321 4.32232 27.8825 4.1503L19.7272 0.11258C19.4179 -0.0375265 19.0575 -0.0375265 18.7481 0.11258L10.6177 4.1503C10.2618 4.32324 10.025 4.67468 9.99683 5.0716C9.96867 5.46853 10.1535 5.8503 10.4814 6.07243ZM22.0264 13.3865C22.027 13.7557 22.2077 14.1009 22.5097 14.3101L29.0475 18.7785C29.466 19.067 30.026 19.031 30.4047 18.6911L35.889 13.7859C36.1334 13.5675 36.2691 13.2513 36.2595 12.9224C36.25 12.5935 36.0961 12.2858 35.8394 12.0822L30.603 7.89471C30.2223 7.59234 29.6914 7.57216 29.2892 7.84479L22.5097 12.4816C22.213 12.687 22.033 13.024 22.0264 13.3865ZM5.76549 19.4649C6.02972 19.7023 6.16556 20.0524 6.13111 20.4073C6.09678 20.7642 5.89064 21.0814 5.57958 21.256L1.67549 23.5962C1.27973 23.8328 0.780044 23.7987 0.419608 23.5105C0.0591727 23.2224 -0.0871399 22.74 0.0518789 22.2982L1.49577 17.755C1.60904 17.395 1.89615 17.1176 2.258 17.0186C2.61958 16.9133 3.00948 17.0056 3.2867 17.262L5.76549 19.4649ZM26.9405 19.9392L19.8822 15.1089C19.5071 14.8565 19.0179 14.8565 18.6428 15.1089L11.5844 19.9392C11.3037 20.1335 11.1259 20.4458 11.1011 20.7879C11.0828 21.1325 11.2193 21.467 11.4729 21.6991L18.525 28.0084C18.7284 28.1898 18.9908 28.2897 19.2625 28.2892C19.534 28.2891 19.7963 28.1893 19.9999 28.0084L27.0521 21.6991C27.3064 21.468 27.4412 21.1321 27.4177 20.7879C27.398 20.4458 27.2217 20.1322 26.9405 19.9392ZM8.11413 18.6911L2.63601 13.7859C2.38952 13.562 2.2535 13.2401 2.26419 12.906C2.27015 12.5767 2.42255 12.2674 2.67939 12.0635L7.91583 7.85102C8.2991 7.54952 8.83113 7.5294 9.23578 7.8011L16.0091 12.4379C16.3234 12.6441 16.513 12.9962 16.513 13.374C16.513 13.7518 16.3234 14.104 16.0091 14.3101L9.47747 18.7784C9.05639 19.0657 8.49565 19.0298 8.11413 18.6911ZM36.2422 25.7368L30.6649 22.398C30.2507 22.1484 29.7235 22.199 29.3635 22.5229L22.5469 28.6075C22.2593 28.8643 22.1243 29.2527 22.1899 29.6341C22.2556 30.0154 22.5125 30.3354 22.8691 30.4797L32.3257 34.3115C32.4554 34.3654 32.5944 34.393 32.7347 34.3926C33.1736 34.394 33.572 34.1347 33.751 33.7311L36.6822 27.1659C36.9207 26.6464 36.7308 26.0293 36.2422 25.7368ZM37.0168 17.755L38.4607 22.2982H38.4483C38.5551 22.638 38.4944 23.0088 38.285 23.2961C38.0756 23.5835 37.7426 23.7529 37.3886 23.7523C37.1901 23.7529 36.9951 23.699 36.8247 23.5963L32.9144 21.256C32.6097 21.0778 32.4108 20.7609 32.3815 20.4073C32.3449 20.0521 32.4811 19.7011 32.7471 19.4649L35.2259 17.2557C35.5059 17.0048 35.8929 16.9132 36.2546 17.0123C36.6162 17.1156 36.9023 17.3945 37.0168 17.755ZM16.3313 29.631C16.398 29.2512 16.2643 28.8638 15.9781 28.6075L9.16143 22.5229C8.80149 22.199 8.27425 22.1484 7.86007 22.398L2.28279 25.7368C1.79989 26.0306 1.60883 26.6399 1.83661 27.1597L4.77398 33.7249C5.01733 34.2723 5.6465 34.5285 6.19928 34.3053L15.6497 30.4735C16.0064 30.3304 16.2642 30.0117 16.3313 29.631ZM19.6777 31.5032L27.2628 34.5736C27.6337 34.7323 27.8899 35.0811 27.9321 35.4847C27.9801 35.8934 27.7986 36.295 27.4611 36.5269L19.8698 41.8003C19.6879 41.9281 19.4719 41.9977 19.2501 42C19.0285 41.9966 18.8129 41.9271 18.6304 41.8003L11.0453 36.5269C10.7066 36.2956 10.5229 35.8944 10.5682 35.4847C10.6188 35.0769 10.8842 34.7285 11.2622 34.5736L18.8473 31.5032C19.114 31.3968 19.411 31.3968 19.6777 31.5032Z" fill="#BF4722"/>+</svg>diff --git a/apps/temp-docs/public/img/libraries/solidjs-icon.svg b/apps/temp-docs/public/img/libraries/solidjs-icon.svgnew file mode 100644index 00000000000..1e60674bb81--- /dev/null+++ b/apps/temp-docs/public/img/libraries/solidjs-icon.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 166 155.3"><defs><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="27.5" y1="3" x2="152" y2="63.5"><stop offset=".1" stop-color="#76b3e1"/><stop offset=".3" stop-color="#dcf2fd"/><stop offset="1" stop-color="#76b3e1"/></linearGradient><linearGradient id="b" gradientUnits="userSpaceOnUse" x1="95.8" y1="32.6" x2="74" y2="105.2"><stop offset="0" stop-color="#76b3e1"/><stop offset=".5" stop-color="#4377bb"/><stop offset="1" stop-color="#1f3b77"/></linearGradient><linearGradient id="c" gradientUnits="userSpaceOnUse" x1="18.4" y1="64.2" x2="144.3" y2="149.8"><stop offset="0" stop-color="#315aa9"/><stop offset=".5" stop-color="#518ac8"/><stop offset="1" stop-color="#315aa9"/></linearGradient><linearGradient id="d" gradientUnits="userSpaceOnUse" x1="75.2" y1="74.5" x2="24.4" y2="260.8"><stop offset="0" stop-color="#4377bb"/><stop offset=".5" stop-color="#1a336b"/><stop offset="1" stop-color="#1a336b"/></linearGradient></defs><path d="M163 35S110-4 69 5l-3 1c-6 2-11 5-14 9l-2 3-15 26 26 5c11 7 25 10 38 7l46 9 18-30z" fill="#76b3e1"/><path d="M163 35S110-4 69 5l-3 1c-6 2-11 5-14 9l-2 3-15 26 26 5c11 7 25 10 38 7l46 9 18-30z" opacity=".3" fill="url(#a)"/><path d="m52 35-4 1c-17 5-22 21-13 35 10 13 31 20 48 15l62-21S92 26 52 35z" fill="#518ac8"/><path d="m52 35-4 1c-17 5-22 21-13 35 10 13 31 20 48 15l62-21S92 26 52 35z" opacity=".3" fill="url(#b)"/><path d="M134 80a45 45 0 0 0-48-15L24 85 4 120l112 19 20-36c4-7 3-15-2-23z" fill="url(#c)"/><path d="M114 115a45 45 0 0 0-48-15L4 120s53 40 94 30l3-1c17-5 23-21 13-34z" fill="url(#d)"/></svg>\ No newline at end of filediff --git a/apps/temp-docs/scripts/build-search.js b/apps/temp-docs/scripts/build-search.jsindex cd1063c8f78..d39e7cb444a 100644--- a/apps/temp-docs/scripts/build-search.js+++ b/apps/temp-docs/scripts/build-search.js@@ -55,11 +55,33 @@ async function walk(dir) {const { data, content } = matter(fileContents)const { id, title, description } = data- const url = slug.includes('/generated/')- ? slug.replace('/generated', '').replace(/\.mdx$/, '')- : slug.replace(/\.mdx$/, '')+ const url = (slug.includes('/generated') ? slug.replace('/generated', '') : slug)+ .replace('docs', '')+ .replace(/\.mdx$/, '')const source = slug.includes('/reference') ? 'reference' : 'guide'- return { objectID: crypto.randomUUID(), id, title, description, url, source, content }+ const object = {+ objectID: crypto.randomUUID(),+ id,+ title,+ description,+ url,+ source,+ content,+ }++ if (slug.includes('/reference')) {+ const slugSegments = slug.split('/')+ const category = slugSegments[slugSegments.indexOf('reference') + 1]+ const version = slugSegments[slugSegments.indexOf('reference') + 2] || ''++ object.category = category.replace(/\.mdx$/, '')+ if (version.length === 2) object.version = version+ } else {+ object.category = undefined+ object.version = undefined+ }++ return object})// Some of the reference generated files come with an 'index' page that we can ignore.filter((object) => !object.url.endsWith('/index'))diff --git a/apps/temp-docs/styles/algolia-search.scss b/apps/temp-docs/styles/algolia-search.scssindex 164110b7301..d9d9bf0d870 100644--- a/apps/temp-docs/styles/algolia-search.scss+++ b/apps/temp-docs/styles/algolia-search.scss@@ -672,7 +672,6 @@ body {.aa-ItemLink {align-items: center;color: inherit;- display: grid;gap: calc(var(--aa-spacing-half) / 2);grid-auto-flow: column;justify-content: space-between;diff --git a/apps/temp-docs/styles/main.scss b/apps/temp-docs/styles/main.scssindex 5f706b6ca11..1bffa806d5b 100644--- a/apps/temp-docs/styles/main.scss+++ b/apps/temp-docs/styles/main.scss@@ -66,520 +66,6 @@ article h1 {max-width: max-content !important;}-/* search modal */--.DocSearch--active {- @apply overflow-hidden #{!important};-}--.DocSearch-Container {- background: rgba(0, 0, 0, 0.3);- @apply fixed top-0 left-0 z-[200] flex h-screen w-screen flex-col p-4 backdrop-blur-sm sm:p-6 md:p-[10vh] lg:p-[12vh];-}--.DocSearch-LoadingIndicator svg {- @apply hidden;-}--.DocSearch-LoadingIndicator {- display: none;- width: 1.5rem;- height: 1.5rem;- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke-width='2' stroke='%23cffafe' /%3E%3Cpath d='M3,12a9,9 0 1,0 18,0a9,9 0 1,0 -18,0' stroke-width='2' stroke='%2306b6d4' stroke-dasharray='56.5486677646' stroke-dashoffset='37.6991118431' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- background-size: 100% 100%;-}--.DocSearch-Container--Stalled .DocSearch-LoadingIndicator {- @apply block;-}--.DocSearch-Modal {- @apply dark:bg-scale-200 bg-scale-100;- margin: 0 auto;- width: 100%;- max-width: 47.375rem;- display: flex;- flex-direction: column;- min-height: 0;- border-radius: theme('borderRadius.lg');- box-shadow: theme('boxShadow.lg');-}--.DocSearch-SearchBar {- z-index: 1;- padding: 0 1rem;- @apply border-scale-400 relative flex flex-none items-center border-b;-}--.DocSearch-Form {- @apply flex min-w-0 flex-auto items-center;-}--.DocSearch-Dropdown-Container {- @apply pb-6;-}--.DocSearch-Dropdown {- @apply flex-auto overflow-auto;-}--.DocSearch-Hit--Result {- @apply relative mx-6;-}--.DocSearch-Hit--Result.DocSearch-Hit--Child {- @apply ml-12;-}--.DocSearch-Hit--Result.DocSearch-Hit--Child::before {- content: '';- position: absolute;- top: -0.25rem;- bottom: -0.25rem;- left: -1rem;- width: 1px;- background: theme('colors.scale.400');-- // @apply dark:bg-slate-700;-}--.DocSearch-Hit > a {- position: relative;- font-size: 0.875rem;- // border-bottom: 1px solid theme('colors.slate.100');-- // @apply dark:border-slate-200;-}--.DocSearch-Hit--Result {- // @apply border-b-0 #{!important};-}--.DocSearch-MagnifierLabel {- @apply h-6 w-6 flex-none;- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m19 19-3.5-3.5' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='11' cy='11' r='6' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-- .dark & {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m19 19-3.5-3.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='11' cy='11' r='6' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- }-}--.DocSearch-MagnifierLabel svg {- display: none;-}--.DocSearch-Container--Stalled .DocSearch-MagnifierLabel {- display: none;-}--.DocSearch-Input {- @apply text-scale-1200 placeholder-scale-900;- appearance: none;- background: transparent;- height: 3.5rem;- font-size: 1rem;- margin-left: 0.75rem;- margin-right: 1rem;- flex: auto;- min-width: 0;- border: none;-}--@screen sm {- .DocSearch-Input {- font-size: 0.875rem;- }-}--.DocSearch-Input:focus {- outline: 2px dotted transparent;-}--.DocSearch-Input::-webkit-search-cancel-button,-.DocSearch-Input::-webkit-search-decoration,-.DocSearch-Input::-webkit-search-results-button,-.DocSearch-Input::-webkit-search-results-decoration {- display: none;-}--.DocSearch-Reset {- display: none;-}--.DocSearch-Cancel {- appearance: none;- flex: none;- font-size: 0;- border-radius: 0.375rem;- padding: 0.25rem 0.375rem;- @apply ring-scale-900 hover:ring-scale-900 dark:bg-scale-600 shadow-sm ring-1 hover:shadow dark:ring-0;- width: 1.75rem;- height: 1.5rem;- /* esc */- background-image: url("data:image/svg+xml,%3Csvg width='16' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.506 6h3.931V4.986H1.736v-1.39h2.488V2.583H1.736V1.196h2.69V.182H.506V6ZM8.56 1.855h1.18C9.721.818 8.87.102 7.574.102c-1.276 0-2.21.705-2.205 1.762-.003.858.602 1.35 1.585 1.585l.634.159c.633.153.986.335.988.727-.002.426-.406.716-1.03.716-.64 0-1.1-.295-1.14-.878h-1.19c.03 1.259.931 1.91 2.343 1.91 1.42 0 2.256-.68 2.259-1.745-.003-.969-.733-1.483-1.744-1.71l-.523-.125c-.506-.117-.93-.304-.92-.722 0-.375.332-.65.934-.65.588 0 .949.267.994.724ZM15.78 2.219C15.618.875 14.6.102 13.254.102c-1.537 0-2.71 1.086-2.71 2.989 0 1.898 1.153 2.989 2.71 2.989 1.492 0 2.392-.992 2.526-2.063l-1.244-.006c-.117.623-.606.98-1.262.98-.883 0-1.483-.656-1.483-1.9 0-1.21.591-1.9 1.492-1.9.673 0 1.159.389 1.253 1.028h1.244Z' fill='%23334155'/%3E%3C/svg%3E");- background-position: center;- background-repeat: no-repeat;- background-size: 57.1428571429% auto;-- .dark & {- background-image: url("data:image/svg+xml,%3Csvg width='16' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.506 6h3.931V4.986H1.736v-1.39h2.488V2.583H1.736V1.196h2.69V.182H.506V6ZM8.56 1.855h1.18C9.721.818 8.87.102 7.574.102c-1.276 0-2.21.705-2.205 1.762-.003.858.602 1.35 1.585 1.585l.634.159c.633.153.986.335.988.727-.002.426-.406.716-1.03.716-.64 0-1.1-.295-1.14-.878h-1.19c.03 1.259.931 1.91 2.343 1.91 1.42 0 2.256-.68 2.259-1.745-.003-.969-.733-1.483-1.744-1.71l-.523-.125c-.506-.117-.93-.304-.92-.722 0-.375.332-.65.934-.65.588 0 .949.267.994.724ZM15.78 2.219C15.618.875 14.6.102 13.254.102c-1.537 0-2.71 1.086-2.71 2.989 0 1.898 1.153 2.989 2.71 2.989 1.492 0 2.392-.992 2.526-2.063l-1.244-.006c-.117.623-.606.98-1.262.98-.883 0-1.483-.656-1.483-1.9 0-1.21.591-1.9 1.492-1.9.673 0 1.159.389 1.253 1.028h1.244Z' fill='%2394a3b8'/%3E%3C/svg%3E");- }-}--.DocSearch-Reset svg {- display: none;-}--.DocSearch-Hit-source {- line-height: 1.5rem;- font-weight: 400;- color: theme('colors.scale.900');- padding-top: 2.5rem;- margin: 0 1.5rem 1rem;-}--.DocSearch-Hits:first-child .DocSearch-Hit-source {- padding-top: 1.5rem;-}--.DocSearch-Hit-Container {- display: flex;- align-items: center;-}--.DocSearch-Hit-Tree {- display: none;-}--.DocSearch-Hit-icon {- display: none;-}--.DocSearch-Hit--Result .DocSearch-Hit-icon {- display: block;- flex: none;- margin-right: 1rem;- width: 1.5rem;- height: 1.5rem;- border-radius: theme('borderRadius.md');- /* hash icon */- background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.75 1v10M8.25 1v10M1 3.75h10M1 8.25h10' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");- background-repeat: no-repeat;- background-position: center center;-- @apply ring-scale-300 bg-white shadow-sm ring-1 dark:bg-slate-700 dark:ring-0;-}--.DocSearch-Hit--Parent .DocSearch-Hit-icon {- /* book icon */- background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.5 0c1.093 0 2.117.27 3 .743V10a6.344 6.344 0 0 0-3-.743c-1.093 0-2.617.27-3.5.743V.743C.883.27 2.407 0 3.5 0Z' fill='%23BAE6FD'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.5 0c1.093 0 2.617.27 3.5.743V10c-.883-.473-2.407-.743-3.5-.743s-2.117.27-3 .743V.743a6.344 6.344 0 0 1 3-.743Z' fill='%2338BDF8'/%3E%3C/svg%3E");-}--.DocSearch-Hit-icon svg {- display: none;-}--.DocSearch-Hit-content-wrapper {- flex: auto;- display: flex;- flex-direction: column-reverse;- min-width: 0;- z-index: 1;-}--.DocSearch-Hit-path {- align-self: flex-start;- font-size: 0.75rem;- line-height: 1.5rem;- font-weight: 400;- color: theme('colors.scale.1100');- border-radius: 999px;- padding: 0 0.75rem;- @apply bg-scale-300 dark:bg-scale-500;-}--.DocSearch-Hit[aria-selected='true'] .DocSearch-Hit-icon {- // @apply bg-transparent shadow-none ring-1 ring-white/30 dark:ring-white/20;- // background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.75 1v10M8.25 1v10M1 3.75h10M1 8.25h10' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");-}--.DocSearch-Hit[aria-selected='true'] .DocSearch-Hit--Parent .DocSearch-Hit-icon {- /* book icon */- // background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.5 0c1.093 0 2.117.27 3 .743V10a6.344 6.344 0 0 0-3-.743c-1.093 0-2.617.27-3.5.743V.743C.883.27 2.407 0 3.5 0Z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.5 0c1.093 0 2.617.27 3.5.743V10c-.883-.473-2.407-.743-3.5-.743s-2.117.27-3 .743V.743a6.344 6.344 0 0 1 3-.743Z' fill='%23fff'/%3E%3C/svg%3E");-}--.DocSearch-Hit-title {- @apply text-scale-1100 dark:text-scale-1100 truncate leading-6;-}--.DocSearch-Hit-title + .DocSearch-Hit-path {- @apply mb-1;-}--.DocSearch-Hit-action {- @apply ml-3.5 flex-none;-}--.DocSearch-Hit--Result {- .DocSearch-Hit-action svg {- @apply hidden;- }-- .DocSearch-Hit-action {- // @apply h-6 w-6;- // background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m11 9 3 3-3 3' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- }-- [aria-selected='true'] & .DocSearch-Hit-action {- // background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m11 9 3 3-3 3' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- }-- .DocSearch-Hit[aria-selected='true'] & .DocSearch-Hit-path {- // @apply bg-scale-400 dark:bg-scale-400;- }-- .DocSearch-Hit[aria-selected='true'] & .DocSearch-Hit-title {- // @apply text-white;- }-}--.DocSearch-Hit-action-button {- @apply flex;-}--.DocSearch-Hit-action + .DocSearch-Hit-action {- @apply ml-2;-}--.DocSearch-Hit-action path {- stroke-width: 2px;- stroke: #71717a;-}--.DocSearch-Hit[aria-selected='true'] .DocSearch-Hit-action path {- stroke: white;-}--.DocSearch-Hit > a {- @apply block py-4 px-6;-}--.DocSearch-Hit--Result {- @apply py-3 px-4 #{!important};-}--.DocSearch-Hit {- @apply relative;-}--.DocSearch-Hit:first-child > a {- // @apply border-t border-slate-100 dark:border-slate-200;-}--.DocSearch-Hit--Result {- // @apply border-t-0 #{!important};-}--.DocSearch-Hit + .DocSearch-Hit .DocSearch-Hit--Result {- @apply mt-2;-}--.DocSearch-Hit--Result {- @apply dark:bg-scale-300 border-scale-400 rounded-lg border bg-white transition-all;-}--.DocSearch-Hit[aria-selected='true'] > a {- @apply bg-slate-50 dark:bg-slate-700;-}--.DocSearch-Hit[aria-selected='true'] .DocSearch-Hit--Result {- @apply bg-scale-200 dark:bg-scale-600;-}--.DocSearch-Hit--FirstChild::before {- @apply top-0 #{!important};-}--.DocSearch-Hit--LastChild::before {- @apply bottom-0 #{!important};-}--.DocSearch-Hits mark {- background: none;- @apply text-scale-1200 border-scale-900 border-b-2 font-semibold;-}--.DocSearch-Hit-path mark {- @apply border-0;-}--.DocSearch-Hit[aria-selected='true'] mark {- @apply text-scale-1200;- border-bottom-color: currentColor;-}--.DocSearch-Footer {- @apply flex flex-none justify-end border-t border-slate-100 py-4 px-6 dark:border-slate-200;-}--.DocSearch-Commands {- @apply hidden;-}--.DocSearch-Logo a {- @apply text-scale-900 flex items-center text-xs font-medium;-}--.DocSearch-Logo svg {- @apply text-scale-900 ml-3 text-[#5468ff];-}--.DocSearch-Hit--deleting,-.DocSearch-Hit--favoriting {- opacity: 0;- transition: all 250ms linear;-}--.DocSearch-NoResults .DocSearch-Screen-Icon {- @apply hidden;-}--.DocSearch-Title {- @apply mb-10 text-lg leading-6;-}--.DocSearch-Title strong {- @apply text-slate-1200 dark:text-scale-1200 font-normal;-}--.DocSearch-StartScreen .DocSearch-Help {- @apply py-16 px-6 text-center text-slate-400;-}--.DocSearch-NoResults {- @apply px-4 pt-10 pb-8;-}--.DocSearch-NoResults .DocSearch-Title {- text-align: center;- color: theme('colors.scale.1100');-}--.DocSearch-NoResults-Prefill-List .DocSearch-Help {- @apply text-scale-900 dark:text-scale-200 mb-3 text-sm leading-6;-}--.DocSearch-NoResults-Prefill-List ul {- @apply border-scale-300 dark:border-scale-400 dark:bg-scale-300 overflow-hidden rounded-lg border bg-white;-}--.DocSearch-NoResults-Prefill-List button {- padding: 0.5rem 0.75rem;- display: block;- width: 100%;- text-align: left;- font-size: theme('fontSize.sm');- line-height: theme('lineHeight.6');- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m11 9 3 3-3 3' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- background-repeat: no-repeat;- background-position: right 0.75rem center;-- @apply text-scale-900 hover:text-slate-1200 dark:bg-scale-300 hover:bg-scale-200 dark:hover:bg-scale-400 bg-white;-}--.DocSearch-NoResults-Prefill-List li + li button {- @apply border-scale-300 border-t dark:border-slate-400;-}--.DocSearch-NoResults-Prefill-List + .DocSearch-Help {- @apply mt-3 text-xs leading-6;-}--.DocSearch-NoResults-Prefill-List + .DocSearch-Help a {- @apply text-scale-900 dark:text-scale-900 font-semibold;-}--.DocSearch-Hit-action [data-cy] {- width: 1.5rem;- height: 1.5rem;-}--.DocSearch-Hit-action [data-cy] svg {- display: none;-}--.DocSearch-Hit-action [data-cy='fav-recent'] {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' stroke='%23CBD5E1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-- .dark & {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- }-}--.DocSearch-Hit-action [data-cy='fav-recent']:hover {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-}--.DocSearch-Hit-action [data-cy='remove-recent'] {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-- .dark & {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- }-}--.DocSearch-Hit-action [data-cy='remove-recent']:hover {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-- .dark & {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- }-}--.DocSearch-Hit-action [data-cy='remove-fav']::before {- @apply pointer-events-none absolute inset-0 bg-sky-50 content-[''] dark:bg-slate-700;-}--.DocSearch-Hit[aria-selected='true'] [data-cy='remove-fav']::before {- @apply bg-sky-100 dark:bg-slate-700;-}--.DocSearch-Hit-action [data-cy='remove-fav']::after {- content: '';- position: absolute;- pointer-events: none;- width: calc(4.5rem + 1px);- height: 1.5rem;- margin-left: calc(-3rem - 1px);- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' fill='%230EA5E9' stroke='%230EA5E9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),- url("data:image/svg+xml,%3Csvg width='1' height='1' fill='%23e2e8f0' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E"),- url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- background-repeat: no-repeat, repeat-y, no-repeat;- background-position: left, center, right;-- .dark & {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' fill='%230EA5E9' stroke='%230EA5E9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),- url("data:image/svg+xml,%3Csvg width='1' height='1' fill='%23e2e8f0' opacity='0.05' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E"),- url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- }-}--.DocSearch-Hit-action [data-cy='remove-fav']:hover::after {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' fill='%230EA5E9' stroke='%230EA5E9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),- url("data:image/svg+xml,%3Csvg width='1' height='1' fill='%23e2e8f0' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E"),- url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-- .dark & {- background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 5 2 5h5l-4 4 2 5-5-3-5 3 2-5-4-4h5l2-5Z' fill='%230EA5E9' stroke='%230EA5E9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),- url("data:image/svg+xml,%3Csvg width='1' height='1' fill='%23e2e8f0' opacity='0.05' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E"),- url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7 7 17M7 7l10 10' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");- }-}--.DocSearch-Hit-action + .DocSearch-Hit-action {- // @apply ml-3 border-l border-slate-200 pl-3 dark:border-slate-200;-}-.p:not(.prose *):not(.overwrite) {@apply text-scale-1100;margin-bottom: 16px;