From 85b6d5c0d645c0c41b2061a3af1b0b1a844f237e Mon Sep 17 00:00:00 2001 From: Ilya Zhukov <i.zhukov@fz-juelich.de> Date: Mon, 7 Oct 2024 17:39:08 +0200 Subject: [PATCH] Remove broken search. --- docusaurus.config.ts | 17 ++++------------- package.json | 1 + 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 23a045d3..ca7d5c67 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -21,6 +21,9 @@ const config: Config = { onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', + //plugins + plugins: [require.resolve('docusaurus-lunr-search')], + // Even if you don't use internationalization, you can use this field to set // useful metadata like html lang. For example, if your site is Chinese, you // may want to replace "en" with "zh-Hans". @@ -56,19 +59,7 @@ const config: Config = { themes: [ // ... Your other themes. - [ - require.resolve("@easyops-cn/docusaurus-search-local"), - /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */ - ({ - // ... Your options. - // `hashed` is recommended as long-term-cache of index file is possible. - hashed: true, - // For Docs using Chinese, The `language` is recommended to set to: - // ``` - // language: ["en", "zh"], - // ``` - indexDocs: true, - }), + ], ], diff --git a/package.json b/package.json index a9e66b1b..3f403b71 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@easyops-cn/docusaurus-search-local": "^0.40.1", "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", + "docusaurus-lunr-search": "^3.5.0", "prism-react-renderer": "^2.3.0", "react": "^18.0.0", "react-dom": "^18.0.0" -- GitLab