diff --git a/docusaurus.config.js b/docusaurus.config.js index 09d48eeef..7df74eeaf 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -589,6 +589,30 @@ module.exports = { darkTheme: darkCodeTheme, additionalLanguages: ['toml'], }, + //Algolio docsearch support + algolia: { + // The application ID provided by Algolia + appId: "WS3KPDA1LJ", + + // Public API key: it is safe to commit it + apiKey: "e2a20acb668b5f3ecb3adc611ee4e6e5", + + indexName: "netlify_d6cb4f8e-1222-4919-9d0b-53db3e321fc2_main_all", + + // 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: Algolia search parameters + //searchParameters: {}, + + // Optional: path for search page that enabled by default (`false` to disable it) + searchPagePath: "search", + + //... other Algolia params + }, segment: { apiKey: 'qabJfWPhi2L9CeMk22A1XlYmabsNtgKy', }, diff --git a/package.json b/package.json index 716c6dee6..7bbe94097 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@docusaurus/preset-classic": "^2.4.1", "@mdx-js/react": "^1.6.21", "@svgr/webpack": "^6.3.1", + "algolia": "^0.0.0", "clsx": "^1.1.1", "docusaurus-plugin-remote-content": "^3.1.0", "docusaurus-plugin-segment": "^1.0.3", diff --git a/yarn.lock b/yarn.lock index d0bd9a49e..e860ef8ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2920,6 +2920,11 @@ ajv@^8.0.0, ajv@^8.9.0: require-from-string "^2.0.2" uri-js "^4.2.2" +algolia@^0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/algolia/-/algolia-0.0.0.tgz#82a479264023926bce249d25f2563dd9faf8d88e" + integrity sha512-RCZAbrF6MoR9+qH2SYZDW1A0Mk2k4xOO1Jq5c/lcrgPXsAUOzMZotBlPN5ZbJifPmmQLTCE5ZL27z6cuuBFSBQ== + algoliasearch-helper@^3.10.0: version "3.13.3" resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.13.3.tgz#d23341fb88f490c9b2b83fc2362d1551d52117b6"