From 0e6eae4f95b92d36cfe608e51b1bf8540d656ac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Louren=C3=A7o?= Date: Fri, 17 Jun 2022 22:08:30 -0300 Subject: [PATCH] docs(algolia): added support to algolia --- www/docusaurus.config.js | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/www/docusaurus.config.js b/www/docusaurus.config.js index e5cf2814..4e55e214 100644 --- a/www/docusaurus.config.js +++ b/www/docusaurus.config.js @@ -10,13 +10,14 @@ const config = { tagline: 'Run REST APIs and other web applications using your existing Node.js application framework (Express, Koa, Hapi and Fastify), on top of AWS Lambda, Amazon API Gateway and many other event sources.', url: 'https://h4ad.github.io/serverless-adapter', - baseUrl: '/', + baseUrl: '/serverless-adapter/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', organizationName: 'h4ad', // Usually your GitHub org/user name. projectName: 'serverless-adapter', // Usually your repo name. deploymentBranch: 'gh-pages', + trailingSlash: false, presets: [ [ 'classic', @@ -111,6 +112,29 @@ const config = { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, + algolia: { + // The application ID provided by Algolia + appId: 'J9AIR51403', + + // Public API key: it is safe to commit it + apiKey: '35b54c18239d746fe89e62001814e380', + + indexName: 'serverless-adapter', + + // 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 + }, }), };