diff --git a/docusaurus.config.js b/docusaurus.config.js index d3d0bf703..c83375727 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -64,23 +64,22 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ - // revisit this in v3 of docusaurus that is due to go GA - // algolia: { - // // The application ID provided by Algolia - // appId: "NSRFPEJ4NC", - // // Public API key: it is safe to commit it - // apiKey: "cea41b975ad6c9a01408dfda6e0061d3", - // indexName: "teku", - // // Optional: see doc section below - // contextualSearch: true, - // // Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them. - // externalUrlRegex: "external\\.com|domain\\.com", - // // Optional: Algolia search parameters - // searchParameters: {}, - // // Optional: path for search page that enabled by default (`false` to disable it) - // searchPagePath: "search", - // // ... other Algolia params - // }, + algolia: { + // The application ID provided by Algolia + appId: "NSRFPEJ4NC", + // Public API key: it is safe to commit it + apiKey: "cea41b975ad6c9a01408dfda6e0061d3", + indexName: "teku", + // ensures that search results are relevant to the current language and version. + contextualSearch: true, + // Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them. + // externalUrlRegex: "external\\.com|domain\\.com", + // Optional: Algolia search parameters + searchParameters: {}, + // Optional: path for search page that enabled by default (`false` to disable it) + searchPagePath: "search", + // ... other Algolia params + }, // announcementBar: { // id: "announcement_bar", // content: "⛔️ This documentation site is still under construction! 🚧", @@ -432,15 +431,15 @@ const config = { ], ], themes: [ - [ - require.resolve("@easyops-cn/docusaurus-search-local"), - /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */ - ({ - hashed: true, - docsRouteBasePath: "/", - indexBlog: false, - }), - ], + // [ + // require.resolve("@easyops-cn/docusaurus-search-local"), + // /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */ + // ({ + // hashed: true, + // docsRouteBasePath: "/", + // indexBlog: false, + // }), + // ], ], };