From 66bdaf7f9f07850be4bf19a6e7d41d799d2d94a6 Mon Sep 17 00:00:00 2001 From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com> Date: Fri, 28 Jul 2023 17:22:38 +0300 Subject: [PATCH] docs: Add search --- docusaurus.config.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 0191a1402..6ac7b70ea 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -28,7 +28,22 @@ const config = { defaultLocale: 'en', locales: ['en', 'fr', 'tr'], }, - + algolia: { + appId: 'AA9S5J9NYT', + apiKey: ccfe6abc4d12ac6f882565a9d0caafb1, + indexName: sern, + insights: true, + container: 'div', + debug: false, + contextualSearch: true, + externalUrlRegex: 'external\\.com|domain\\.com', + replaceSearchResultPathname: { + from: '/docs/', + to: '/', + }, + searchParameters: {}, + searchPagePath: 'search', + }, presets: [ [ 'classic', @@ -36,8 +51,6 @@ const config = { ({ docs: { sidebarPath: require.resolve('./sidebars.js'), - // Please change this to your repo. - // Remove this to remove the "edit this page" links. editUrl: 'https://github.com/sern-handler/website/edit/main/', },