Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Search (Algolia DocSearch) #155

Merged
merged 2 commits into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,37 @@ const config = {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
algolia: {
// The application ID provided by Algolia
appId: '0ODKLVRPCZ',

// Public API key: it is safe to commit it
apiKey: 'cf5a5b2ee2c9278e23e79ac023bd5c7f',

indexName: 'condaorg',

// Optional: see doc section below
contextualSearch: true,

/* 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 */
// replaceSearchResultPathname: {
// from: '/docs/', // or as RegExp: /\/docs\//
// to: '/',
// },

// Optional: Algolia search parameters
searchParameters: {},

// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: false,

// ... other Algolia params
insights: true,
debug: false, // Set debug to true if you want to inspect the modal
},
}),
plugins: [
[
Expand Down