Skip to content

Commit

Permalink
docs: switch to algolia search (#9821)
Browse files Browse the repository at this point in the history
  • Loading branch information
pskelin authored Sep 5, 2024
1 parent 83a17ba commit f4ca863
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions packages/website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,31 @@ const config: Config = {
} satisfies Preset.Options,
],
],
plugins: ['docusaurus-lunr-search'],
plugins: [],
themeConfig: {
algolia: {
// The application ID provided by Algolia
appId: '622UUS4QSN',

// Public API key: it is safe to commit it
apiKey: '27580e2427e91972e5385a935bafb0a1',

themeConfig: {
indexName: 'sapio',

// Optional: see doc section below
contextualSearch: true,

// Optional: Algolia search parameters
searchParameters: {},

// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',

// // Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
// insights: false,

//... other Algolia params
},
colorMode: {
defaultMode: 'light',
disableSwitch: true,
Expand Down

0 comments on commit f4ca863

Please sign in to comment.