Skip to content

Commit f0370bb

Browse files
committed
feat(website): add local docs search with centered navbar input
Add @easyops-cn/docusaurus-search-local for offline full-text search across all docs pages. Center the search bar in the navbar and widen it to 360px for better usability.
1 parent 7b1c87c commit f0370bb

4 files changed

Lines changed: 594 additions & 0 deletions

File tree

website/docusaurus.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ const config: Config = {
4040
],
4141
],
4242

43+
themes: [
44+
[
45+
'@easyops-cn/docusaurus-search-local',
46+
{
47+
hashed: true,
48+
indexBlog: false,
49+
},
50+
],
51+
],
52+
4353
plugins: [
4454
[
4555
'@docusaurus/plugin-client-redirects',

0 commit comments

Comments
 (0)