Skip to content

Commit

Permalink
Added Algolia config
Browse files Browse the repository at this point in the history
  • Loading branch information
glyph-cat committed Jun 4, 2024
1 parent ed71ea3 commit e0c57ff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,24 @@ const config: Config = {
],

themeConfig: {
algolia: {
appId: 'I8EAQVNXNC',
apiKey: '766b0a459e06e2faaabc86ce8215e9fa',
indexName: 'glyph-catio',
contextualSearch: true,

// KIV: [Low priority] Still not sure what this does
// but take note that the docs site is hosted at '.../cotton-box/'
// // Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
// replaceSearchResultPathname: {
// from: '/docs/', // or as RegExp: /\/docs\//
// to: '/',
// },

searchParameters: {},
searchPagePath: 'search',
insights: false,
},
colorMode: {
respectPrefersColorScheme: true,
},
Expand Down

0 comments on commit e0c57ff

Please sign in to comment.