From 3b491c2397d6f1666cbe68a051d59b25e843a309 Mon Sep 17 00:00:00 2001 From: sanjay-kv Date: Thu, 2 Oct 2025 18:36:11 +1000 Subject: [PATCH] removed agolia implementation to fix vercel dep --- blog/google-backlinks/index.md | 4 ++-- docusaurus.config.ts | 38 ++++++++++++++++-------------- src/theme/Navbar/Content/index.tsx | 9 +++---- 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/blog/google-backlinks/index.md b/blog/google-backlinks/index.md index 333aeec3..c5b7f9b3 100644 --- a/blog/google-backlinks/index.md +++ b/blog/google-backlinks/index.md @@ -8,10 +8,10 @@ date: 2025-05-30 --- - +  Google’s algorithms have been evolving for many years. Still, backlinks have always been a factor that marketers have looked at and are continually altering to boost a website’s search engine rankings. You’ve certainly heard a lot about backlinks from all of these digital marketers, but you don’t really understand what they are. -  + --- diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 7e5f734f..ad6b2f63 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -203,10 +203,11 @@ const config: Config = { }, ], }, - { - type: "search", - position: "right", - }, + // Search disabled until Algolia is properly configured + // { + // type: "search", + // position: "right", + // }, { type: "html", position: "right", @@ -223,20 +224,21 @@ const config: Config = { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, - algolia: { - appId: "YOUR_APP_ID", - apiKey: "YOUR_SEARCH_API_KEY", - indexName: "YOUR_INDEX_NAME", - contextualSearch: true, - externalUrlRegex: "external\\.com|domain\\.com", - replaceSearchResultPathname: { - from: "/docs/", - to: "/", - }, - searchParameters: {}, - searchPagePath: "search", - insights: false, - }, + // Disable Algolia search until properly configured + // algolia: { + // appId: "YOUR_APP_ID", + // apiKey: "YOUR_SEARCH_API_KEY", + // indexName: "YOUR_INDEX_NAME", + // contextualSearch: true, + // externalUrlRegex: "external\\.com|domain\\.com", + // replaceSearchResultPathname: { + // from: "/docs/", + // to: "/", + // }, + // searchParameters: {}, + // searchPagePath: "search", + // insights: false, + // }, } satisfies Preset.ThemeConfig, markdown: { diff --git a/src/theme/Navbar/Content/index.tsx b/src/theme/Navbar/Content/index.tsx index 5706a7f9..eac0efe5 100644 --- a/src/theme/Navbar/Content/index.tsx +++ b/src/theme/Navbar/Content/index.tsx @@ -6,10 +6,10 @@ import { } from '@docusaurus/theme-common/internal'; import NavbarItem, {type Props as NavbarItemConfig} from '@theme/NavbarItem'; import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle'; -import SearchBar from '@theme/SearchBar'; +// import SearchBar from '@theme/SearchBar'; import NavbarMobileSidebarToggle from '@theme/Navbar/MobileSidebar/Toggle'; import NavbarLogo from '@theme/Navbar/Logo'; -import NavbarSearch from '@theme/Navbar/Search'; +// import NavbarSearch from '@theme/Navbar/Search'; @@ -79,11 +79,12 @@ export default function NavbarContent(): ReactNode { <> - {!searchBarItem && ( + {/* Search component disabled */} + {/* {!searchBarItem && ( - )} + )} */} } />