Skip to content

Commit

Permalink
Merge pull request #188 from hatemhosny/add-search
Browse files Browse the repository at this point in the history
add website search
  • Loading branch information
hatemhosny authored Sep 3, 2024
2 parents 6312407 + 00015fc commit d8820c7
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 d8820c7

Please sign in to comment.