ironstar-io / gatsby-plugin-algolia-docsearch

A Gatsby plugin for integrating with Algolia DocSearch
https://community.algolia.com/docsearch/
2 stars 5 forks source link

docsearch.min.css and docsearch.min.js gets loaded on every route instead of only being loaded on /docs/ #5

Open nisarhassan12 opened 3 years ago

nisarhassan12 commented 3 years ago

Hi. Thanks for this great and useful plugin.

We on gitpod.io are using it only on the docs i.e https://www.gitpod.io/docs but the CSS and the JS for the plugin are being loaded on all the pages for the site i.e see the self-hosted page for instance:

image

Is there a way via which the files can only be loaded for the docs? Thanks