Skip to content

Commit

Permalink
Switch search plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Mar 7, 2024
1 parent 5235ac6 commit 374cfe3
Show file tree
Hide file tree
Showing 4 changed files with 376 additions and 754 deletions.
13 changes: 8 additions & 5 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ const config: Config = {
defaultLocale: 'en',
locales: ['en'],
},
themes: [
['@easyops-cn/docusaurus-search-local', {
hashed: true,
indexBlog: false,
docsRouteBasePath: '/',
ignoreFiles: new RegExp(".*reference/.*"),
}],
],
headTags: [
// Favicon
{ tagName: 'link', attributes: { rel: 'shortcut icon', href: '/favicon/favicon.ico' } },
Expand All @@ -30,11 +38,6 @@ const config: Config = {
markdown: {
format: 'detect'
},
plugins: [[require.resolve('docusaurus-lunr-search'), {
indexBaseUrl: true,
disableVersioning: true,
excludeRoutes: ['**/reference/**'],
}]],
presets: [
[
'classic',
Expand Down
Loading

0 comments on commit 374cfe3

Please sign in to comment.