From f4ca863b6da40cd75b241ff26406978e29d3a6f6 Mon Sep 17 00:00:00 2001 From: Peter Skelin Date: Thu, 5 Sep 2024 16:08:06 +0300 Subject: [PATCH] docs: switch to algolia search (#9821) --- packages/website/docusaurus.config.ts | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/packages/website/docusaurus.config.ts b/packages/website/docusaurus.config.ts index 7a2086c2dece..6c7ec43373eb 100644 --- a/packages/website/docusaurus.config.ts +++ b/packages/website/docusaurus.config.ts @@ -81,10 +81,31 @@ const config: Config = { } satisfies Preset.Options, ], ], - plugins: ['docusaurus-lunr-search'], + plugins: [], + themeConfig: { + algolia: { + // The application ID provided by Algolia + appId: '622UUS4QSN', + // Public API key: it is safe to commit it + apiKey: '27580e2427e91972e5385a935bafb0a1', - themeConfig: { + indexName: 'sapio', + + // Optional: see doc section below + contextualSearch: true, + + // Optional: Algolia search parameters + searchParameters: {}, + + // Optional: path for search page that enabled by default (`false` to disable it) + searchPagePath: 'search', + + // // Optional: whether the insights feature is enabled or not on Docsearch (`false` by default) + // insights: false, + + //... other Algolia params + }, colorMode: { defaultMode: 'light', disableSwitch: true,