From 98e068a473f43added2315205fbced0682e442f8 Mon Sep 17 00:00:00 2001 From: Rakesh Dhariwal Date: Sat, 19 Aug 2023 13:47:05 +0530 Subject: [PATCH] fixed->issue:147 search bar missing, reason:themes:[ Array ] in config consisting of localsearch is over written by themes [Array] in extendedConfig Signed-off-by: Rakesh Dhariwal --- docusaurus.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index b68fc2b4..dfd57902 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -60,6 +60,7 @@ const config = { ], themes: [ + '@docusaurus/theme-mermaid', [ "@easyops-cn/docusaurus-search-local", /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */ @@ -218,8 +219,7 @@ const extendedConfig = { ...config, markdown: { mermaid: true, - }, - themes: ['@docusaurus/theme-mermaid'], + } }; module.exports = extendedConfig;