Skip to content

Commit 227d596

Browse files
committed
doc(xcp-ng) Replace algolia search feature by lunr-search plugin. This fixes search.
1 parent 68dcdfa commit 227d596

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

docusaurus.config.js

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -161,26 +161,9 @@ const config = {
161161
barHeight: 70,
162162
}
163163
},
164-
},
165-
algolia: {
166-
// The application ID provided by Algolia
167-
appId: 'I9J2TZ0RWH',
168-
169-
// Public API key: it is safe to commit it
170-
apiKey: '76ebf4008fbfcc765a5c416528597101',
171-
172-
indexName: 'xcp-ng',
173-
174-
// Optional: see doc section below
175-
contextualSearch: true,
176-
177-
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
178-
externalUrlRegex: 'docs\\.xcp-ng\\.org',
179-
180-
// Optional: path for search page that enabled by default (`false` to disable it)
181-
searchPagePath: 'search',
182-
},
164+
}
183165
}),
166+
plugins: [require.resolve('docusaurus-lunr-search')],
184167
};
185168

186169
module.exports = config;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@docusaurus/preset-classic": "^3.7.0",
1919
"@docusaurus/theme-mermaid": "^3.7.0",
2020
"@mdx-js/react": "^3.0.0",
21+
"docusaurus-lunr-search": "^3.6.0",
2122
"prism-react-renderer": "^2.1.0",
2223
"react": "^18.2.0",
2324
"react-dom": "^18.2.0"

0 commit comments

Comments
 (0)