Skip to content

Commit

Permalink
Local pagefind search (#552)
Browse files Browse the repository at this point in the history
* move to pagefind based search (#543)

* updated package-lock

* tweaked tabs

* added an All tab

---------

Co-authored-by: yujonglee <[email protected]>
  • Loading branch information
deepakprabhakara and yujonglee authored Oct 28, 2024
1 parent c229903 commit 7c26951
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 472 deletions.
24 changes: 23 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,29 @@ module.exports = {
},
],
],
themes: [
[
// https://getcanary.dev/docs/local/integrations/docusaurus#configuration
require.resolve('@getcanary/docusaurus-theme-search-pagefind'),
{
styles: {
'--canary-color-primary-c': 0.015,
'--canary-color-primary-h': 200,
},
includeRoutes: ['**/*'],
excludeRoutes: ['/{sso-dsync-api,audit-logs-api}/**'],
tabs: [
{ name: 'All', pattern: '**/*' },
{ name: 'Docs', pattern: '**/{docs,guides}/**' },
{
name: 'Pages',
pattern: '!**/{docs,guides,blog,success-stories}/**',
},
{ name: 'Blog', pattern: '**/{blog,success-stories}/**' },
],
},
],
],
plugins: [
[
require.resolve('docusaurus-gtm-plugin'),
Expand Down Expand Up @@ -325,7 +348,6 @@ module.exports = {
archiveBasePath: null,
},
],
['@easyops-cn/docusaurus-search-local', {}],
require.resolve('docusaurus-plugin-image-zoom'),
[
'@docusaurus/plugin-client-redirects',
Expand Down
Loading

0 comments on commit 7c26951

Please sign in to comment.