From 21c29b8d120b4992829a0b518086e508f32be9bd Mon Sep 17 00:00:00 2001 From: Croxx Date: Thu, 19 Sep 2024 12:14:38 +0800 Subject: [PATCH] feat: integrate algolia search (#13) Signed-off-by: MrCroxx --- docusaurus.config.ts | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index ea91155..aae0c64 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -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: { @@ -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"], + }, ], ] };