Skip to content

Commit

Permalink
feat: integrate algolia search (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx authored Sep 19, 2024
1 parent e282a90 commit 21c29b8
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ const config: Config = {
theme: prismThemes.dracula,
darkTheme: prismThemes.dracula,
},
algolia: {
// The application ID provided by Algolia
appId: 'DLHM9F785Y',
// Public API key: it is safe to commit it
apiKey: '23d370eea26a022c898a31603cfc35c9',
indexName: 'foyer',
}
} satisfies Preset.ThemeConfig,

markdown: {
Expand All @@ -173,17 +180,17 @@ const config: Config = {
footnoteLabel: 'References',
}
},

plugins: [
[
// https://github.com/rdilweb/docusaurus-plugin-remote-content
"docusaurus-plugin-remote-content",
{
name: "remote",
sourceBaseUrl: "https://raw.githubusercontent.com/foyer-rs/foyer/main/",
outDir: "blog/remote",
documents: ["CHANGELOG.md"],
},
{
name: "remote",
sourceBaseUrl: "https://raw.githubusercontent.com/foyer-rs/foyer/main/",
outDir: "blog/remote",
documents: ["CHANGELOG.md"],
},
],
]
};
Expand Down

0 comments on commit 21c29b8

Please sign in to comment.