Skip to content

Commit

Permalink
feat: enable docsearch
Browse files Browse the repository at this point in the history
Enable docsearch module with provided configuration by algolia.

Currently the search does not seem to work when `contextSearch` is
enabled. This seems to be a temporary issue per Clement's mail:

> As the DocSearch plugin is not active yet, you won't be able to use
the Docusaurus `contextualSearch` option until next crawl.

While this feature is not necessary (there are no versioned docs),
it seems like the search results page has it enabled by default
always ([1]) so might as well have it enabled everywhere to make sure it
works.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

[1]: https://github.com/temporalio/documentation/pull/357/files#r616656533
Ref: facebook/docusaurus#3805
Part of #2
  • Loading branch information
molant committed Apr 30, 2021
1 parent 2d94ae2 commit 5f0894d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ module.exports = {
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
algolia: {
apiKey: 'f9fb1d51a99fc479d5979cfa2aae48b9',
indexName: 'beta-electronjs',
contextualSearch: true,
},
},
presets: [
[
Expand Down

0 comments on commit 5f0894d

Please sign in to comment.