Merge pull request #213 from openziti/search-algolia

enable algolia search
This commit is contained in:
Ken Bingham 2023-02-10 21:20:40 -05:00 committed by GitHub
commit cc1c7afe57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ const config = {
title: 'Zrok', title: 'Zrok',
staticDirectories: ['static', '../docs/images'], staticDirectories: ['static', '../docs/images'],
tagline: 'Globally distributed reverse proxy', tagline: 'Globally distributed reverse proxy',
url: 'https://zrok.io', url: 'https://docs.zrok.io',
baseUrl: '/', baseUrl: '/',
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn', onBrokenMarkdownLinks: 'warn',
@ -124,6 +124,29 @@ const config = {
autoCollapseCategories: true, autoCollapseCategories: true,
} }
}, },
algolia: {
// The application ID provided by Algolia
appId: 'CO73R59OLO',
// Public API key: it is safe to commit it
apiKey: '489572e91d0a750d34c127c2071ef962',
indexName: 'zrok',
// 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\\.example\\.com|thirdparty\\.example\\.com',
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
//... other Algolia params
},
}), }),
}; };