Skip to content

Commit

Permalink
feat(docs): add Search
Browse files Browse the repository at this point in the history
  • Loading branch information
brankoconjic committed Dec 20, 2023
1 parent 26e0027 commit 797df8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion apps/docs/src/app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -30,7 +31,7 @@ export default function NotFound() {
</Link>
</Button>

{/* <SearchButton /> */}
<SearchButton />
</div>
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -29,7 +30,7 @@ export function Sidebar() {
role={isSidebarOpen ? "dialog" : undefined}
onClick={() => isSidebarOpen && toggleSidebar()}
>
{/* <Search className="hidden md:flex" /> */}
<Search className="hidden md:flex" />

<ScrollArea
className="relative h-full w-80 bg-white px-4 py-6 md:-ms-3 md:w-[auto] md:bg-transparent md:py-0 md:pl-0 md:pr-2"
Expand Down

0 comments on commit 797df8b

Please sign in to comment.