From d67130143a59db3e67b0d2336d856b4f2b498e47 Mon Sep 17 00:00:00 2001 From: Eugene Kotsarev Date: Sat, 7 Sep 2024 22:04:34 +0300 Subject: [PATCH] feat: algolia search (#149) --- docusaurus.config.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 9965319..4c2a2f6 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -19,13 +19,12 @@ const config: Config = { markdown: { mermaid: true, }, - themes: ['@docusaurus/theme-mermaid'], + themes: ["@docusaurus/theme-mermaid"], i18n: { defaultLocale: "en", locales: ["en"], }, - plugins: [ "docusaurus-plugin-sass", async function tailwindPlugin(context, options) { @@ -110,6 +109,15 @@ const config: Config = { autoCollapseCategories: true, }, }, + + algolia: { + appId: "B00UWUB92M", + apiKey: "22579656b62b7175a3070ec7c5c7039d", + indexName: "vara", + contextualSearch: true, + searchParameters: {}, + searchPagePath: "search", + }, } satisfies Preset.ThemeConfig, stylesheets: [ {