Skip to content

Commit 34f3e87

Browse files
committed
Add Algolia DocSearch
1 parent 4abe987 commit 34f3e87

File tree

4 files changed

+270
-147
lines changed

4 files changed

+270
-147
lines changed

docusaurus.config.ts

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -138,35 +138,38 @@ const config: Config = {
138138
copyright: `Copyright © ${new Date().getFullYear()} FlutterFlow. Built with Docusaurus.`,
139139
},
140140

141-
// algolia: {
142-
// // The application ID provided by Algolia
143-
// appId: 'YOUR_APP_ID',
141+
algolia: {
142+
// The application ID provided by Algolia
143+
appId: 'L5VTR6TWVD',
144144

145-
// // Public API key: it is safe to commit it
146-
// apiKey: 'YOUR_SEARCH_API_KEY',
145+
// Public API key: it is safe to commit it
146+
apiKey: 'bab16fbb5188c4b49fad968ebc643dd3',
147147

148-
// indexName: 'YOUR_INDEX_NAME',
148+
indexName: 'flutterflow--82026',
149149

150-
// // Optional: see doc section below
151-
// contextualSearch: true,
150+
// Optional: see doc section below
151+
contextualSearch: true,
152152

153-
// // 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.
154-
// externalUrlRegex: 'external\\.com|domain\\.com',
153+
// 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.
154+
// externalUrlRegex: 'external\\.com|domain\\.com',
155155

156-
// // 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
157-
// replaceSearchResultPathname: {
158-
// from: '/docs/', // or as RegExp: /\/docs\//
159-
// to: '/',
160-
// },
156+
// 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
157+
replaceSearchResultPathname: {
158+
from: '/docs/', // or as RegExp: /\/docs\//
159+
to: '/',
160+
},
161+
162+
// Optional: Algolia search parameters
163+
searchParameters: {},
161164

162-
// // Optional: Algolia search parameters
163-
// searchParameters: {},
165+
// Optional: path for search page that enabled by default (`false` to disable it)
166+
searchPagePath: 'search',
164167

165-
// // Optional: path for search page that enabled by default (`false` to disable it)
166-
// searchPagePath: 'search',
168+
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
169+
insights: true,
167170

168-
// //... other Algolia params
169-
// },
171+
//... other Algolia params
172+
},
170173
prism: {
171174
theme: prismThemes.github,
172175
darkTheme: prismThemes.dracula,

package-lock.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"dev": "docusaurus start"
1717
},
1818
"dependencies": {
19+
"@docsearch/css": "^3.6.1",
20+
"@docsearch/js": "^3.6.1",
1921
"@docusaurus/core": "^3.4.0",
2022
"@docusaurus/plugin-content-docs": "^3.4.0",
2123
"@docusaurus/plugin-google-gtag": "^3.4.0",

0 commit comments

Comments
 (0)