From 3a9982c2acd2f413db178f872359fab6e91d3be5 Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Wed, 8 Jan 2025 16:29:50 +0100 Subject: [PATCH] added credentials --- docusaurus.config.js | 21 +++++++++++++++++++++ package.json | 5 +++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index dd96f69..91fe1f1 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -63,6 +63,27 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ + algolia: { + // The application ID provided by Algolia + appId: '59JHI8GRGH', + + // Public API key: it is safe to commit it + apiKey: '87a26fafb2fb30c39503a44b80fad4cf', + + indexName: 'jonasjones', + + // Optional: see doc section below + contextualSearch: true, + + // Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them. + //externalUrlRegex: 'external\\.com|domain\\.com', + + // Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs + //replaceSearchResultPathname: { + // from: '/docs/', // or as RegExp: /\/docs\// + // to: '/', + //}, + }, prism: { additionalLanguages: ['properties', 'ini', 'powershell', 'bash', 'yaml'], }, diff --git a/package.json b/package.json index 73a3ce8..9d8381c 100644 --- a/package.json +++ b/package.json @@ -15,14 +15,15 @@ }, "dependencies": { "@cmfcmf/docusaurus-search-local": "^1.2.0", + "@docsearch/js": "^3.8.2", "@docusaurus/core": "3.5.2", "@docusaurus/preset-classic": "3.5.2", "@mdx-js/react": "^3.0.0", + "cheerio": "^1.0.0-rc.12", "clsx": "^2.0.0", "prism-react-renderer": "^2.3.0", "react": "^18.0.0", - "react-dom": "^18.0.0", - "cheerio": "^1.0.0-rc.12" + "react-dom": "^18.0.0" }, "devDependencies": { "@docusaurus/module-type-aliases": "3.5.2",