diff --git a/docusaurus.config.js b/docusaurus.config.js index 968b6502..ecdaecb1 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -219,15 +219,8 @@ module.exports = { }, ], ], - plugins: [ - // ... Your other plugins. - [ - require.resolve('docusaurus-gtm-plugin'), - { - id: 'none', // GTM Container ID - } - ], - [ + themes: [ + [ require.resolve("@easyops-cn/docusaurus-search-local"), { hashed: true, @@ -242,15 +235,25 @@ module.exports = { // whether to index blog pages indexBlog: false, - //blogRouteBasePath: '/blog', + // blogRouteBasePath: '/blog', + // files to ignore in search // whether to index static pages // /404.html is never indexed indexPages: false, + ignoreFiles: [/docs\/release_notes\/.*/], // language of your documentation, see next section language: "en", - }], + }]], + plugins: [ + // ... Your other plugins. + [ + require.resolve('docusaurus-gtm-plugin'), + { + id: 'none', // GTM Container ID + } + ], path.resolve(__dirname, 'src/zoom-plugin') ], }; diff --git a/package-lock.json b/package-lock.json index 4a39db4b..f450acf5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@docusaurus/plugin-google-analytics": "^2.3.1", "@docusaurus/plugin-google-gtag": "^2.3.1", "@docusaurus/preset-classic": "2.3.1", - "@easyops-cn/docusaurus-search-local": "^0.16.3", + "@easyops-cn/docusaurus-search-local": "^0.17.0", "@mdx-js/react": "^1.6.22", "clsx": "^1.1.1", "joi": "^17.4.0", @@ -2519,8 +2519,9 @@ } }, "node_modules/@easyops-cn/docusaurus-search-local": { - "version": "0.16.3", - "license": "MIT", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.17.0.tgz", + "integrity": "sha512-4Z8q6C7bNV9/VkEPXS5Qe8o8HOoLuJkts7CyYEKF3JwkzpeCVcFpGhiBaYy72u6+CD49Cle28zlRdBQw2jrEyA==", "dependencies": { "@docusaurus/utils": "^2.0.0-alpha.73", "@docusaurus/utils-validation": "^2.0.0-alpha.73", @@ -15957,7 +15958,9 @@ } }, "@easyops-cn/docusaurus-search-local": { - "version": "0.16.3", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.17.0.tgz", + "integrity": "sha512-4Z8q6C7bNV9/VkEPXS5Qe8o8HOoLuJkts7CyYEKF3JwkzpeCVcFpGhiBaYy72u6+CD49Cle28zlRdBQw2jrEyA==", "requires": { "@docusaurus/utils": "^2.0.0-alpha.73", "@docusaurus/utils-validation": "^2.0.0-alpha.73", diff --git a/package.json b/package.json index 2a6e3f7f..2f861c27 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@docusaurus/plugin-google-analytics": "^2.3.1", "@docusaurus/plugin-google-gtag": "^2.3.1", "@docusaurus/preset-classic": "2.3.1", - "@easyops-cn/docusaurus-search-local": "^0.16.3", + "@easyops-cn/docusaurus-search-local": "^0.17.0", "@mdx-js/react": "^1.6.22", "clsx": "^1.1.1", "medium-zoom": "^1.0.6",