From 4d04d8e8adf452261a4dce063540137dc685ff29 Mon Sep 17 00:00:00 2001 From: Madison Date: Thu, 26 Jun 2025 09:33:36 -0500 Subject: [PATCH] using new search functionality over fumadocs. New home layout. Content on home page now fills page, dont need to scroll to see content --- docs/src/app/(home)/layout.tsx | 13 +- docs/src/app/(home)/page.tsx | 18 +- docs/src/app/api/search/route.ts | 132 ++++- docs/src/app/layout.tsx | 8 +- docs/src/components/homepage/iconHover.tsx | 14 +- .../layout/custom-search-dialog.tsx | 456 ++++++++++++++++++ .../layout/custom-search-toggle.tsx | 181 +++++++ docs/src/components/layout/theme-toggle.tsx | 24 + docs/src/components/layouts/docs-client.tsx | 11 +- docs/src/components/layouts/docs.tsx | 20 +- docs/src/components/layouts/home-layout.tsx | 238 +++++++++ docs/src/components/layouts/shared-header.tsx | 19 +- docs/templates/meta.json | 6 +- 13 files changed, 1100 insertions(+), 40 deletions(-) create mode 100644 docs/src/components/layout/custom-search-dialog.tsx create mode 100644 docs/src/components/layout/custom-search-toggle.tsx create mode 100644 docs/src/components/layouts/home-layout.tsx diff --git a/docs/src/app/(home)/layout.tsx b/docs/src/app/(home)/layout.tsx index df6ebe8ea..b188771ce 100644 --- a/docs/src/app/(home)/layout.tsx +++ b/docs/src/app/(home)/layout.tsx @@ -1,18 +1,9 @@ -import { baseOptions } from '@/app/layout.config'; import Footer from '@/components/homepage/homepage-footer'; -import { HomeLayout } from 'fumadocs-ui/layouts/home'; - -// Enable search for home page navbar -const homeOptions = { - ...baseOptions, - searchToggle: { - enabled: true, - }, -}; +import { HomeLayout } from '@/components/layouts/home-layout'; export default function Layout({ children }: { children: React.ReactNode }) { return ( - + {children}