Skip to content

Commit

Permalink
fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
scnwwu committed Mar 11, 2024
1 parent f6eb62c commit 93f58bb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,17 @@ const config: Config = {
},
} satisfies Preset.ThemeConfig,

themes: [require.resolve("@easyops-cn/docusaurus-search-local")],
themes: [
[
"@easyops-cn/docusaurus-search-local",
{
docsRouteBasePath: "/",
explicitSearchResultPath: true,
hashed: true,
highlightSearchTermsOnTargetPage: true,
},
],
],
};

export default config;

0 comments on commit 93f58bb

Please sign in to comment.