Skip to content

Commit

Permalink
Set up Algolia DocSearch (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens authored Mar 25, 2024
1 parent c84bb67 commit 9a10f2c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,18 @@ const config: Config = {
darkTheme: prismThemes.oneDark,
additionalLanguages: ['java', 'groovy', 'objectivec', 'brightscript', 'bash'],
},
algolia: {
appId: '7HRS9V6FEL',
apiKey: '415e178afdd1c3ea819b42fb9a6a1c99',
indexName: 'theoplayer',
contextualSearch: true,
replaceSearchResultPathname: process.env.DOCUSAURUS_BASE_URL
? {
from: '/docs/',
to: process.env.DOCUSAURUS_BASE_URL,
}
: undefined,
},
} satisfies Preset.ThemeConfig,
};

Expand Down

0 comments on commit 9a10f2c

Please sign in to comment.