Skip to content

Commit 6f4354c

Browse files
committed
[Docs] Add search bar
1 parent ec5a4d5 commit 6f4354c

4 files changed

Lines changed: 5506 additions & 2182 deletions

File tree

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

docusaurus.config.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,24 @@ const config = {
2323
trailingSlash: false,
2424

2525
onBrokenLinks: 'warn',
26-
onBrokenMarkdownLinks: 'warn',
2726

2827
i18n: {
2928
defaultLocale: 'en',
3029
locales: ['en'],
3130
},
3231

32+
themes: [
33+
[
34+
'@easyops-cn/docusaurus-search-local',
35+
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
36+
({
37+
hashed: true,
38+
docsRouteBasePath: '/',
39+
indexBlog: false,
40+
}),
41+
],
42+
],
43+
3344
presets: [
3445
[
3546
'classic',
@@ -57,6 +68,10 @@ const config = {
5768
navbar: {
5869
title: 'ContextPilot',
5970
items: [
71+
{
72+
type: 'search',
73+
position: 'left',
74+
},
6075
{
6176
href: 'https://github.com/EfficientContext/ContextPilot',
6277
label: 'GitHub',

0 commit comments

Comments
 (0)