From a6bcb51a1bdd11db4852dca775d8c9a1a20d95d4 Mon Sep 17 00:00:00 2001 From: Niek Candaele Date: Sun, 15 Dec 2024 19:26:56 +0100 Subject: [PATCH] feat: add search functionality to docs --- packages/web-docs/docusaurus.config.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/web-docs/docusaurus.config.ts b/packages/web-docs/docusaurus.config.ts index 17f9ee12b7..91953ab38d 100644 --- a/packages/web-docs/docusaurus.config.ts +++ b/packages/web-docs/docusaurus.config.ts @@ -89,6 +89,21 @@ const config: Config = { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, + algolia: { + // The application ID provided by Algolia + appId: 'EGKNUF24JA', + // Public API key: it is safe to commit it + apiKey: 'c346de81a50d15e8653e738f76871c15', + indexName: 'takaro', + // 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: true, + }, } satisfies Preset.ThemeConfig, };