1.1.0 • Published 6 months ago

gatsby-plugin-algolia-docsearch-options v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

gatsby-plugin-algolia-docsearch-options

A fork of gatsby-plugin-algolia-docsearch to allow configuration of DocSearch from the gatsby-config.js.

requirements

  • Node 20+
  • Gatsby 5.x
  • React 18.x

usage

You should already have gatsby and react installed.

Start off by installing this package and its peer dependencies:

npm i --save gatsby-plugin-algolia-docsearch-options common-tags@1.x

Then add the following to your gatsby-config.js:

{
  resolve: 'gatsby-plugin-algolia-docsearch-options',
  options: {
    apiKey: process.env.API_KEY,
    indexName: 'changeme',
    inputSelector: '#docsearch-input'
  }
}

It is recommended to source your API key from a "secret" location (i.e. not checked in to source control), and you should also use the read-only API key from Algolia for extra safety.

For the full list of available options, refer to the @docsearch/js documentation.

1.1.0

6 months ago

1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.5.1

2 years ago

0.5.0

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago