From 7ab243f28ea439943a26616f50ef0980c55c81f7 Mon Sep 17 00:00:00 2001 From: Emmanuel Mutisya Date: Mon, 17 Aug 2026 14:53:39 +0300 Subject: [PATCH] fix(docs): restore static search and unblock the docs build --- docs/components/search.tsx | 11 ----------- docs/next-env.d.ts | 1 + docs/package.json | 1 - docs/tsconfig.json | 1 - pnpm-lock.yaml | 9 --------- 5 files changed, 1 insertion(+), 22 deletions(-) diff --git a/docs/components/search.tsx b/docs/components/search.tsx index 3989c089..27842cb2 100644 --- a/docs/components/search.tsx +++ b/docs/components/search.tsx @@ -11,17 +11,8 @@ import { type SharedProps } from "fumadocs-ui/components/dialog/search" import { useDocsSearch } from "fumadocs-core/search/client" -import { create } from "@orama/orama" import { useI18n } from "fumadocs-ui/contexts/i18n" -async function initOrama() { - return await create({ - schema: { _: "string" }, - // https://docs.orama.com/docs/orama-js/supported-languages - language: "english" - }) -} - export default function DefaultSearchDialog(props: SharedProps) { const { locale } = useI18n() // (optional) for i18n // Determine API base path at build/runtime. When deployed to GitHub Pages @@ -34,8 +25,6 @@ export default function DefaultSearchDialog(props: SharedProps) { const { search, setSearch, query } = useDocsSearch({ type: "static", - // @ts-ignore - Orama type mismatch with fumadocs-core - initOrama, locale, from: apiFrom }) diff --git a/docs/next-env.d.ts b/docs/next-env.d.ts index 9edff1c7..ce4e94a6 100644 --- a/docs/next-env.d.ts +++ b/docs/next-env.d.ts @@ -1,6 +1,7 @@ /// /// import "./.next/types/routes.d.ts"; +import "./.next/types/root-params.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/docs/package.json b/docs/package.json index 837ee159..6736a5d5 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,7 +15,6 @@ "@evolution-sdk/devnet": "workspace:*", "@evolution-sdk/evolution": "workspace:*", "@icons-pack/react-simple-icons": "^13.8.0", - "@orama/orama": "^3.1.11", "@stackblitz/sdk": "^1.11.0", "fumadocs-core": "16.14.4", "fumadocs-mdx": "15.2.3", diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 0dd6000b..108386f3 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "baseUrl": ".", "target": "ESNext", "lib": [ "dom", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 70a73714..61393ff0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -110,9 +110,6 @@ importers: '@icons-pack/react-simple-icons': specifier: ^13.8.0 version: 13.13.0(react@19.2.8) - '@orama/orama': - specifier: ^3.1.11 - version: 3.1.18 '@stackblitz/sdk': specifier: ^1.11.0 version: 1.11.1 @@ -1588,10 +1585,6 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@orama/orama@3.1.18': - resolution: {integrity: sha512-a61ljmRVVyG5MC/698C8/FfFDw5a8LOIvyOLW5fztgUXqUpc1jOfQzOitSCbge657OgXXThmY3Tk8fpiDb4UcA==} - engines: {node: '>= 20.0.0'} - '@oxc-project/types@0.143.0': resolution: {integrity: sha512-u6JZdLBTLotrNC9Vd6vPssINdzcCzleKAH6EJKImQb7GtYvX5keN2dxkoK44stCc4tffE6QQRtZTXVSzsLUlWA==} @@ -7969,8 +7962,6 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.20.1 - '@orama/orama@3.1.18': {} - '@oxc-project/types@0.143.0': {} '@parcel/watcher-android-arm64@2.5.6':