Skip to content

Commit c01061f

Browse files
committed
add doc search
1 parent d12a40c commit c01061f

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

docsite/docusaurus.config.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const config = {
4242
projectName, // Repo name
4343

4444
onBrokenLinks: 'throw',
45-
45+
4646
markdown: {
4747
hooks: {
4848
onBrokenMarkdownLinks: 'warn',
@@ -136,28 +136,28 @@ const config = {
136136
darkTheme: prismThemes.dracula,
137137
additionalLanguages: ['abap'],
138138
},
139-
// algolia: {
140-
// appId: 'JYRGWOZND5',
141-
// apiKey: '7f7a2954f42dc2446a9c7bf3c7f305af',
142-
// indexName: 'sbcgua-ajson',
143-
// contextualSearch: false, // No versions and languages so far
144-
145-
// // 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.
146-
// // externalUrlRegex: 'external\\.com|domain\\.com',
147-
// // 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
148-
// // replaceSearchResultPathname: {
149-
// // from: '/docs/', // or as RegExp: /\/docs\//
150-
// // to: '/',
151-
// // },
152-
153-
// // Optional: Algolia search parameters
154-
// // searchParameters: {},
155-
156-
// // Optional: path for search page that enabled by default (`false` to disable it)
157-
// searchPagePath: 'search',
158-
// // Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
159-
// insights: false,
160-
// },
139+
algolia: {
140+
appId: 'JYRGWOZND5',
141+
apiKey: '7f7a2954f42dc2446a9c7bf3c7f305af',
142+
indexName: 'sbcgua-ajson',
143+
contextualSearch: false, // No versions and languages so far
144+
145+
// 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.
146+
// externalUrlRegex: 'external\\.com|domain\\.com',
147+
// 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
148+
// replaceSearchResultPathname: {
149+
// from: '/docs/', // or as RegExp: /\/docs\//
150+
// to: '/',
151+
// },
152+
153+
// Optional: Algolia search parameters
154+
// searchParameters: {},
155+
156+
// Optional: path for search page that enabled by default (`false` to disable it)
157+
searchPagePath: 'search',
158+
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
159+
insights: false,
160+
},
161161
},
162162

163163
plugins: [

0 commit comments

Comments
 (0)