From 00015fce403e40099c8288a4d6fd4e6fffe32d71 Mon Sep 17 00:00:00 2001 From: Hatem Hosny Date: Tue, 3 Sep 2024 12:17:47 +0300 Subject: [PATCH] feat(website): add search --- website/docusaurus.config.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 5518ce0..ef5ff7f 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -136,6 +136,18 @@ const config: Config = { darkTheme: prismThemes.dracula, additionalLanguages: ['json'], }, + algolia: { + appId: 'PGI61GHXJD', + apiKey: '6c4c87fe6ec8c139e4a941f00d4b5717', + indexName: 'racing-bars', + contextualSearch: true, + replaceSearchResultPathname: { + from: '/docs/', + to: '/', + }, + searchParameters: {}, + searchPagePath: 'search', + }, } satisfies Preset.ThemeConfig, scripts: [ {