Skip to content

Commit

Permalink
switch to use algolia for search
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed May 10, 2024
1 parent 9481d66 commit fb37a96
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion runatlantis.io/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,25 @@ export default defineConfig({
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
search: {
provider: "local",
provider: 'algolia',
options: {
// We internally discussed how this API key is exposed in the code and decided
// that it is a non-issue because this API key can easily be extracted by
// looking at the browser dev tools since the key is used in the API requests.
apiKey: '3b733dff1539ca3a210775860301fa86',
indexName: 'runatlantis',
appId: 'BH4D9OD16A',
locales: {
'/': {
placeholder: 'Search Documentation',
translations: {
button: {
buttonText: 'Search Documentation',
},
},
},
},
}
},
socialLinks: [
{ icon: "github", link: "https://github.com/runatlantis/atlantis" },
Expand Down

0 comments on commit fb37a96

Please sign in to comment.