You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docusaurus.config.js
+33-2Lines changed: 33 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,6 @@ const config = {
106
106
},
107
107
],
108
108
],
109
-
110
109
themeConfig: {
111
110
image: '/img/defang-social-card-2.png',
112
111
navbar: {
@@ -205,6 +204,39 @@ const config = {
205
204
theme: lightCodeTheme,
206
205
darkTheme: darkCodeTheme,
207
206
},
207
+
algolia: {
208
+
// The application ID provided by Algolia
209
+
appId: 'O3VFCOSSZ6',
210
+
211
+
// Public API key: it is safe to commit it
212
+
apiKey: '43fd4ebb5bb9875aa8764793ff9a09ff',
213
+
214
+
indexName: 'Defang Docs',
215
+
216
+
// Optional: see doc section below
217
+
contextualSearch: true,
218
+
219
+
// 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.
220
+
externalUrlRegex: 'external\\.com|domain\\.com',
221
+
222
+
// 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
223
+
replaceSearchResultPathname: {
224
+
from: '/docs/',// or as RegExp: /\/docs\//
225
+
to: '/',
226
+
},
227
+
228
+
// Optional: Algolia search parameters
229
+
searchParameters: {},
230
+
231
+
// Optional: path for search page that enabled by default (`false` to disable it)
232
+
searchPagePath: 'search',
233
+
234
+
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
235
+
insights: false,
236
+
237
+
// Optional: whether you want to use the new Ask AI feature (undefined by default)
0 commit comments