Skip to content

Commit b014c09

Browse files
committed
chore: modify search plugin
1 parent 09780b9 commit b014c09

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@
3939
name: 'leetcode',
4040
repo: 'doocs/leetcode',
4141
logo: '/images/doocs-leetcode.png',
42-
search: [
43-
'/', '/solution/', '/lcof/', '/lcof2/', '/lcci/', '/lcs/', '/lcp/', '/basic/'
44-
],
42+
search: {
43+
depth: 2,
44+
hideOtherSidebarContent: true,
45+
pathNamespaces: ['/', '/solution', '/lcof', '/lcof2', '/lcci', '/lcs', '/lcp', '/basic']
46+
},
4547
loadSidebar: sidebar(),
4648
auto2top: true,
4749
subMaxLevel: 2,

0 commit comments

Comments
 (0)