diff --git a/apps/docs/components/DocSearch.tsx b/apps/docs/components/DocSearch.tsx index fded1f47d8c..054bab9a92e 100644 --- a/apps/docs/components/DocSearch.tsx +++ b/apps/docs/components/DocSearch.tsx @@ -115,11 +115,13 @@ export function SearchProvider({ children }: any) { // @ts-ignore function Hit({ hit, children }) { + console.log('hit:', hit) + console.log('children:', children) return ( - https://supabase.com/docs/new/auth + https://supabase.com/docs/reference/index weekly 0.5 @@ -139,7 +139,7 @@ - https://supabase.com/docs/reference/index + https://supabase.com/docs/new/auth weekly 0.5 @@ -150,6 +150,30 @@ 0.5 + + https://supabase.com/docs/guides/functions/auth + weekly + 0.5 + + + + https://supabase.com/docs/guides/functions/best-practices + weekly + 0.5 + + + + https://supabase.com/docs/guides/functions/cicd-workflow + weekly + 0.5 + + + + https://supabase.com/docs/guides/functions/quickstart + weekly + 0.5 + + https://supabase.com/docs/guides/auth/auth-captcha weekly @@ -216,30 +240,6 @@ 0.5 - - https://supabase.com/docs/guides/functions/auth - weekly - 0.5 - - - - https://supabase.com/docs/guides/functions/best-practices - weekly - 0.5 - - - - https://supabase.com/docs/guides/functions/cicd-workflow - weekly - 0.5 - - - - https://supabase.com/docs/guides/functions/quickstart - weekly - 0.5 - - https://supabase.com/docs/guides/database/arrays weekly @@ -480,6 +480,54 @@ 0.5 + + https://supabase.com/docs/guides/storage/access-control + weekly + 0.5 + + + + https://supabase.com/docs/guides/storage/cdn + weekly + 0.5 + + + + https://supabase.com/docs/guides/storage/image-transformations + weekly + 0.5 + + + + https://supabase.com/docs/guides/storage/quickstart + weekly + 0.5 + + + + https://supabase.com/docs/guides/storage/storage-sample + weekly + 0.5 + + + + https://supabase.com/docs/guides/realtime/postgres-changes + weekly + 0.5 + + + + https://supabase.com/docs/guides/realtime/quickstart + weekly + 0.5 + + + + https://supabase.com/docs/guides/realtime/rate-limits + weekly + 0.5 + + https://supabase.com/docs/guides/platform/access-control weekly @@ -552,72 +600,6 @@ 0.5 - - https://supabase.com/docs/guides/realtime/postgres-changes - weekly - 0.5 - - - - https://supabase.com/docs/guides/realtime/quickstart - weekly - 0.5 - - - - https://supabase.com/docs/guides/realtime/rate-limits - weekly - 0.5 - - - - https://supabase.com/docs/guides/resources/glossary - weekly - 0.5 - - - - https://supabase.com/docs/guides/resources/self-hosting - weekly - 0.5 - - - - https://supabase.com/docs/guides/resources/supabase-cli - weekly - 0.5 - - - - https://supabase.com/docs/guides/storage/access-control - weekly - 0.5 - - - - https://supabase.com/docs/guides/storage/cdn - weekly - 0.5 - - - - https://supabase.com/docs/guides/storage/image-transformations - weekly - 0.5 - - - - https://supabase.com/docs/guides/storage/quickstart - weekly - 0.5 - - - - https://supabase.com/docs/guides/storage/storage-sample - weekly - 0.5 - - https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts weekly @@ -648,6 +630,30 @@ 0.5 + + https://supabase.com/docs/guides/resources/glossary + weekly + 0.5 + + + + https://supabase.com/docs/guides/resources/self-hosting + weekly + 0.5 + + + + https://supabase.com/docs/guides/resources/supabase-cli + weekly + 0.5 + + + + https://supabase.com/docs/guides/functions/examples/og-image + weekly + 0.5 + + https://supabase.com/docs/new/auth/auth-login weekly @@ -702,12 +708,6 @@ 0.5 - - https://supabase.com/docs/guides/functions/examples/og-image - weekly - 0.5 - - https://supabase.com/docs/guides/database/extensions/http weekly @@ -864,6 +864,24 @@ 0.5 + + https://supabase.com/docs/guides/platform/sso/azure + weekly + 0.5 + + + + https://supabase.com/docs/guides/platform/sso/gsuite + weekly + 0.5 + + + + https://supabase.com/docs/guides/platform/sso/okta + weekly + 0.5 + + https://supabase.com/docs/guides/getting-started/tutorials/with-angular weekly @@ -948,24 +966,6 @@ 0.5 - - https://supabase.com/docs/guides/platform/sso/azure - weekly - 0.5 - - - - https://supabase.com/docs/guides/platform/sso/gsuite - weekly - 0.5 - - - - https://supabase.com/docs/guides/platform/sso/okta - weekly - 0.5 - - https://supabase.com/docs/guides/resources/migrating-to-supabase/firebase-auth weekly diff --git a/apps/docs/scripts/build-search.js b/apps/docs/scripts/build-search.js index b07efc07bf7..3ba6d1c8f9e 100644 --- a/apps/docs/scripts/build-search.js +++ b/apps/docs/scripts/build-search.js @@ -79,7 +79,6 @@ clientLibFiles.map((file) => { }) }) -clientLibSearchObjects.map((item) => console.log(item)) // The properties of the searchObject that are specifically read // by DocSearch are "type" and "hierarchy". The rest, though saved into Algolia (which we // can potentially use to craft more nuanced search experiences) are not used by DocSearch @@ -197,8 +196,6 @@ async function walk(dir) { .filter((object) => !object.url.endsWith('/index')) .filter((object) => !object.url.endsWith('/.gitkeep')) - //console.log('guidePagesearchObjects:', guidePagesearchObjects) - const combinedSearchObjects = guidePagesearchObjects.concat(clientLibSearchObjects) await index.clearObjects() diff --git a/apps/docs/styles/algolia-search.scss b/apps/docs/styles/algolia-search.scss index a789f88a5bb..d62850a41ca 100644 --- a/apps/docs/styles/algolia-search.scss +++ b/apps/docs/styles/algolia-search.scss @@ -81,8 +81,7 @@ --aa-overlay-color-alpha: 0.4; // Shadows - --aa-panel-shadow: 0 0 0 1px rgba(35, 38, 59, 0.1), - 0 6px 16px -4px rgba(35, 38, 59, 0.15); + --aa-panel-shadow: 0 0 0 1px rgba(35, 38, 59, 0.1), 0 6px 16px -4px rgba(35, 38, 59, 0.15); // Scrollbar --aa-scrollbar-width: 13px; @@ -122,8 +121,7 @@ body { --aa-icon-color-rgb: 119, 119, 163; // Shadows - --aa-panel-shadow: inset 1px 1px 0 0 rgb(44, 46, 64), - 0 3px 8px 0 rgb(0, 3, 9); + --aa-panel-shadow: inset 1px 1px 0 0 rgb(44, 46, 64), 0 3px 8px 0 rgb(0, 3, 9); // Scrollbar --aa-scrollbar-track-background-color-rgb: 44, 46, 64; @@ -429,10 +427,7 @@ body { } // Title typography @at-root .aa-SourceHeaderTitle { - background: rgba( - var(--aa-background-color-rgb), - var(--aa-background-color-alpha) - ); + background: rgba(var(--aa-background-color-rgb), var(--aa-background-color-alpha)); color: rgba(var(--aa-primary-color-rgb), 1); display: inline-block; font-size: 0.8em; @@ -464,8 +459,7 @@ body { rgba(var(--aa-background-color-rgb), var(--aa-background-color-alpha)), rgba(128, 126, 163, 0.14) ); - border: 1px solid - rgba(var(--aa-muted-color-rgb), var(--aa-muted-color-alpha)); + border: 1px solid rgba(var(--aa-muted-color-rgb), var(--aa-muted-color-alpha)); border-radius: 5px; box-shadow: inset 0 0 2px #fff, 0 2px 2px -1px rgba(76, 69, 88, 0.15); color: inherit; @@ -502,10 +496,7 @@ body { // The result type icon inlined SVG or image @at-root .aa-ItemIcon { align-items: center; - background: rgba( - var(--aa-background-color-rgb), - var(--aa-background-color-alpha) - ); + background: rgba(var(--aa-background-color-rgb), var(--aa-background-color-alpha)); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(var(--aa-panel-border-color-rgb), var(--aa-panel-border-color-alpha)); @@ -658,10 +649,7 @@ body { opacity: 0.4; } @at-root .aa-ItemContentTag { - background-color: rgba( - var(--aa-primary-color-rgb), - var(--aa-primary-color-alpha) - ); + background-color: rgba(var(--aa-primary-color-rgb), var(--aa-primary-color-alpha)); border-radius: 3px; margin: 0 0.4em 0 0; padding: 0.08em 0.3em; @@ -754,10 +742,7 @@ body { // 8. Panel Footer //---------------- .aa-PanelFooter { - background-color: rgba( - var(--aa-background-color-rgb), - var(--aa-background-color-alpha) - ); + background-color: rgba(var(--aa-background-color-rgb), var(--aa-background-color-alpha)); box-shadow: inset 0 1px 0 rgba(var(--aa-panel-border-color-rgb), var(--aa-panel-border-color-alpha)); display: flex; @@ -847,10 +832,7 @@ body { &:hover, &:focus { box-shadow: inset 0 0 0 1px - rgba( - var(--aa-panel-border-color-rgb), - var(--aa-panel-border-color-alpha) - ); + rgba(var(--aa-panel-border-color-rgb), var(--aa-panel-border-color-alpha)); } } } @@ -969,7 +951,10 @@ body { } // search bar +.DocSearch-Input { + background-color: var(--colors-scale1); +} .dark .DocSearch-Input { background-color: var(--colors-scale2); color: white; -} \ No newline at end of file +}