@@ -434,25 +434,46 @@ const config: Config = {
434434 theme : prismThemes . github ,
435435 darkTheme : prismThemes . dracula ,
436436 } ,
437- // algolia: {
438- // // https://docsearch.algolia.com/docs/docsearch-v3/
439- // appId: "KIDD7R4CL1",
440- // apiKey: "ca2ffc431941284609f2d50202fc5506",
441- // indexName: "xpackio",
442-
443- // // It ensures that search results are relevant to the current
444- // // language and version. Enabled by default.
445- // contextualSearch: false, // true,
446- // // Optional: Replace parts of the item URLs from Algolia.
447- // // Useful when using the same search index for multiple deployments
448- // // using a different baseUrl. You can use regexp or string in the
449- // // `from` param. For example: localhost:3000 vs myCompany.com/docs
450- // // replaceSearchResultPathname: undefined,
451- // // Optional: Algolia search parameters
452- // searchParameters: {},
453- // // Optional: path for search page that enabled by default (`false` to disable it)
454- // searchPagePath: false, // 'search',
455- // },
437+ // https://docusaurus.io/docs/search#using-algolia-docsearch
438+ // https://docsearch.algolia.com/docs/docsearch-v3/
439+ algolia : {
440+ // The application ID provided by Algolia
441+ appId : "KIDD7R4CL1" ,
442+
443+ // Public API key: it is safe to commit it
444+ apiKey : "ca2ffc431941284609f2d50202fc5506" ,
445+
446+ indexName : "xpackio" ,
447+
448+ // It ensures that search results are relevant to the current
449+ // language and version. Enabled by default.
450+ contextualSearch : true ,
451+
452+ // Optional: Specify domains where the navigation should occur
453+ // through window.location instead on history.push. Useful when
454+ // our Algolia config crawls multiple documentation sites and
455+ // we want to navigate with window.location.href to them.
456+ // externalUrlRegex: 'external\\.com|domain\\.com',
457+ externalUrlRegex : 'xpack\\.github\\.io|xpack-dev-tools\\.github\\.io' ,
458+
459+ // Optional: Replace parts of the item URLs from Algolia.
460+ // Useful when using the same search index for multiple deployments
461+ // using a different baseUrl. You can use regexp or string in the
462+ // `from` param. For example: localhost:3000 vs myCompany.com/docs
463+ // replaceSearchResultPathname: {
464+ // from: '/docs/', // or as RegExp: /\/docs\//
465+ // to: '/',
466+ // },
467+
468+ // Optional: Algolia search parameters
469+ searchParameters : { } ,
470+
471+ // Optional: path for search page that enabled by default (`false` to disable it)
472+ searchPagePath : 'search' ,
473+
474+ // Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
475+ insights : false ,
476+ } ,
456477 } satisfies Preset . ThemeConfig ,
457478
458479 customFields : customFields ,
0 commit comments