diff --git a/docusaurus.config.js b/docusaurus.config.js index c83375727..d6d2d5698 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -64,22 +64,22 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ - 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 - }, + // 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! 🚧", @@ -431,15 +431,14 @@ 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"), + { + docsRouteBasePath: "/", + hashed: true, + indexBlog: false, + }, + ], ], }; diff --git a/package-lock.json b/package-lock.json index 213fbad0d..aa232df3d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@docusaurus/plugin-google-gtag": "^3.4.0", "@docusaurus/plugin-google-tag-manager": "^3.4.0", "@docusaurus/preset-classic": "^3.4.0", - "@easyops-cn/docusaurus-search-local": "^0.38.1", + "@easyops-cn/docusaurus-search-local": "^0.44.0", "@mdx-js/react": "^3.0.0", "clsx": "^1.2.1", "prism-react-renderer": "^2.1.0", @@ -3603,9 +3603,9 @@ } }, "node_modules/@easyops-cn/docusaurus-search-local": { - "version": "0.38.1", - "resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.38.1.tgz", - "integrity": "sha512-8CG/hRxkuk8dPuhjHIOLUHMWQGTsva1c6G3S/TYIH8y04Offzl9dPqLoss7289/VxpeX2VAhon0dFTu/QUPREA==", + "version": "0.44.2", + "resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.44.2.tgz", + "integrity": "sha512-4tMBU54R1O6ITxkMGwOEifSHNkZLa2fb4ajGc8rd6TYZ0a8+jlu/u/5gYtw1s6sGGMRkwyG+QI6HD0bEnCRa1w==", "dependencies": { "@docusaurus/plugin-content-docs": "^2 || ^3", "@docusaurus/theme-translations": "^2 || ^3", diff --git a/package.json b/package.json index 4e6452368..dfcf020c2 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@docusaurus/plugin-google-gtag": "^3.4.0", "@docusaurus/plugin-google-tag-manager": "^3.4.0", "@docusaurus/preset-classic": "^3.4.0", - "@easyops-cn/docusaurus-search-local": "^0.38.1", + "@easyops-cn/docusaurus-search-local": "^0.44.0", "@mdx-js/react": "^3.0.0", "clsx": "^1.2.1", "prism-react-renderer": "^2.1.0",