Skip to content

Commit

Permalink
docs(algolia): added support to algolia
Browse files Browse the repository at this point in the history
  • Loading branch information
H4ad committed Jun 18, 2022
1 parent 1995515 commit 0e6eae4
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion www/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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
},
}),
};

Expand Down

0 comments on commit 0e6eae4

Please sign in to comment.