From 797df8b30757d3bc000ae8509798cb456b493285 Mon Sep 17 00:00:00 2001 From: Branko Conjic Date: Wed, 20 Dec 2023 18:33:22 +0100 Subject: [PATCH] feat(docs): add Search --- .env.example | 4 ++-- apps/docs/src/app/not-found.tsx | 3 ++- apps/docs/src/components/Sidebar.tsx | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 6e27181..c2a95b3 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,3 @@ -NEXT_PUBLIC_DOCSEARCH_APP_ID=PMXB5Y0C1W +NEXT_PUBLIC_DOCSEARCH_APP_ID=VFF81W3YG0 NEXT_PUBLIC_DOCSEARCH_API_KEY= -NEXT_PUBLIC_DOCSEARCH_INDEX_NAME=docsearch +NEXT_PUBLIC_DOCSEARCH_INDEX_NAME=lemonsqueezy diff --git a/apps/docs/src/app/not-found.tsx b/apps/docs/src/app/not-found.tsx index 7054b82..f119a2f 100644 --- a/apps/docs/src/app/not-found.tsx +++ b/apps/docs/src/app/not-found.tsx @@ -3,6 +3,7 @@ import { HomeIcon } from "@iconicicons/react"; import { Button } from "@lemonsqueezy/wedges"; import { Logomark } from "@/components/Logo"; +import { SearchButton } from "@/components/Search"; export default function NotFound() { return ( @@ -30,7 +31,7 @@ export default function NotFound() { - {/* */} + ); diff --git a/apps/docs/src/components/Sidebar.tsx b/apps/docs/src/components/Sidebar.tsx index 65c4bae..2fd97ea 100644 --- a/apps/docs/src/components/Sidebar.tsx +++ b/apps/docs/src/components/Sidebar.tsx @@ -14,6 +14,7 @@ import { cn } from "@/lib/utils"; import { Logomark } from "./Logo"; import { useSidebar } from "./Providers"; import { ScrollArea } from "./ScrollArea"; +import { Search } from "./Search"; export function Sidebar() { const sidebarNav = sidebarConfig.nav; @@ -29,7 +30,7 @@ export function Sidebar() { role={isSidebarOpen ? "dialog" : undefined} onClick={() => isSidebarOpen && toggleSidebar()} > - {/* */} +