diff --git a/docusaurus.config.js b/docusaurus.config.js index cd96a6e..6f89450 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -54,6 +54,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 226e74d..e879312 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,11 @@ "write-heading-ids": "docusaurus write-heading-ids" }, "dependencies": { + "@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",