Skip to content

Commit 052b365

Browse files
committedApr 4, 2023
added algolia search
1 parent 5101500 commit 052b365

File tree

1 file changed

+33
-32
lines changed

1 file changed

+33
-32
lines changed
 

‎docusaurus.config.js

+33-32
Original file line numberDiff line numberDiff line change
@@ -139,38 +139,39 @@ const config = {
139139
theme: lightCodeTheme,
140140
darkTheme: darkCodeTheme,
141141
},
142-
// algolia: {
143-
//
144-
// className: 'algolia-search',
145-
//
146-
// // The application ID provided by Algolia
147-
// appId: 'YOUR_APP_ID',
148-
//
149-
// // Public API key: it is safe to commit it
150-
// apiKey: 'YOUR_SEARCH_API_KEY',
151-
//
152-
// indexName: 'YOUR_INDEX_NAME',
153-
//
154-
// // Optional: see doc section below
155-
// contextualSearch: true,
156-
//
157-
// // 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.
158-
// externalUrlRegex: 'external\\.com|domain\\.com',
159-
//
160-
// // Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
161-
// replaceSearchResultPathname: {
162-
// from: '/docs/', // or as RegExp: /\/docs\//
163-
// to: '/',
164-
// },
165-
//
166-
// // Optional: Algolia search parameters
167-
// searchParameters: {},
168-
//
169-
// // Optional: path for search page that enabled by default (`false` to disable it)
170-
// searchPagePath: 'search',
171-
//
172-
// //... other Algolia params
173-
// },
142+
algolia: {
143+
144+
className: 'algolia-search',
145+
146+
// The application ID provided by Algolia. Safe to commit
147+
appId: '6A1FCM7Q4N',
148+
149+
// Public API key. Safe to commit
150+
apiKey: '69ed4c97ed41b70203e6f3c762e8b577',
151+
152+
indexName: 'linagee',
153+
154+
// Optional: see doc section below
155+
contextualSearch: true,
156+
157+
// 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.
158+
externalUrlRegex: 'external\\.com|domain\\.com',
159+
160+
// Removed - breaks the search
161+
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
162+
// replaceSearchResultPathname: {
163+
// from: '/docs/', // or as RegExp: /\/docs\//
164+
// to: '/docs/',
165+
// },
166+
167+
// Optional: Algolia search parameters
168+
searchParameters: {},
169+
170+
// Optional: path for search page that enabled by default (`false` to disable it)
171+
searchPagePath: 'search',
172+
173+
//... other Algolia params
174+
},
174175
}),
175176
};
176177

1 commit comments

Comments
 (1)

vercel[bot] commented on Apr 4, 2023

@vercel[bot]
Please sign in to comment.