|
1 | 1 | import type { Config } from "@docusaurus/types"; |
2 | 2 | import type * as Preset from "@docusaurus/preset-classic"; |
| 3 | +import type { UserThemeConfig as DocSearchThemeConfig } from "@docsearch/docusaurus-adapter"; |
3 | 4 | import { BundledLanguage, bundledLanguages } from "shiki"; |
4 | 5 | import type { MDXPlugin } from "@docusaurus/mdx-loader"; |
5 | 6 | import rehypeShiki, { RehypeShikiOptions } from "@shikijs/rehype"; |
@@ -255,6 +256,18 @@ const config: Config = { |
255 | 256 | }, |
256 | 257 | ], |
257 | 258 | }, |
| 259 | + docsearch: { |
| 260 | + appId: "IBX716Q0KT", |
| 261 | + apiKey: "5dcaa347f57ca14f8cb59926164dd129", |
| 262 | + indexName: "Fishjam", |
| 263 | + contextualSearch: true, |
| 264 | + searchPagePath: "search", |
| 265 | + insights: false, |
| 266 | + askAi: { |
| 267 | + assistantId: "49fdf088-e614-4b89-86c2-da8c4b566260", |
| 268 | + agentStudio: true, |
| 269 | + }, |
| 270 | + }, |
258 | 271 | footer: { |
259 | 272 | links: [ |
260 | 273 | { |
@@ -295,23 +308,11 @@ const config: Config = { |
295 | 308 | ], |
296 | 309 | copyright: `Copyright © ${new Date().getFullYear()} Software Mansion, Inc. All trademarks and copyrights belong to their respective owners.`, |
297 | 310 | }, |
298 | | - } satisfies Preset.ThemeConfig, |
| 311 | + } satisfies Preset.ThemeConfig & DocSearchThemeConfig, |
299 | 312 |
|
300 | 313 | plugins: [ |
301 | 314 | ["@docusaurus/plugin-client-redirects", { createRedirects }], |
302 | | - [ |
303 | | - require.resolve("docusaurus-lunr-search"), |
304 | | - // exclude old versions and next from search |
305 | | - { |
306 | | - includeRoutes: [ |
307 | | - "/docs/tutorials/*", |
308 | | - "/docs/how-to/*", |
309 | | - "/docs/explanation/*", |
310 | | - "/docs/integrations/*", |
311 | | - "/docs/api/*", |
312 | | - ], |
313 | | - }, |
314 | | - ], |
| 315 | + "@docsearch/docusaurus-adapter", |
315 | 316 | [ |
316 | 317 | "docusaurus-plugin-typedoc", |
317 | 318 | { |
|
0 commit comments