Skip to content

Commit

Permalink
feat(website): add search
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Sep 3, 2024
1 parent 6312407 commit 00015fc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,18 @@ const config: Config = {
darkTheme: prismThemes.dracula,
additionalLanguages: ['json'],
},
algolia: {
appId: 'PGI61GHXJD',
apiKey: '6c4c87fe6ec8c139e4a941f00d4b5717',
indexName: 'racing-bars',
contextualSearch: true,
replaceSearchResultPathname: {
from: '/docs/',
to: '/',
},
searchParameters: {},
searchPagePath: 'search',
},
} satisfies Preset.ThemeConfig,
scripts: [
{
Expand Down

0 comments on commit 00015fc

Please sign in to comment.