Skip to content

Commit

Permalink
feat: add search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
wencaiwulue committed Jun 14, 2024
1 parent 3b10c74 commit 9b0983b
Show file tree
Hide file tree
Showing 6 changed files with 1,129 additions and 822 deletions.
6 changes: 1 addition & 5 deletions docs/functions/10_cross_platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@ support platform:

- macOS
- Linux
- Windows

on Windows platform, you need to
install [PowerShell](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2)
in advance
- Windows
14 changes: 14 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,20 @@ const config = {
darkTheme: darkCodeTheme,
},
}),
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
({
// ... 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"],
// ```
}),
],
],
};

module.exports = config;
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ sidebar_position: 10

- macOS
- Linux
- Windows

Windows
下需要安装 [PowerShell](https://docs.microsoft.com/zh-cn/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2)
- Windows
Loading

0 comments on commit 9b0983b

Please sign in to comment.