diff --git a/packages/gatsby-theme-iterative/package.json b/packages/gatsby-theme-iterative/package.json index 538a81ae..0f84abb2 100644 --- a/packages/gatsby-theme-iterative/package.json +++ b/packages/gatsby-theme-iterative/package.json @@ -1,6 +1,6 @@ { "name": "@dvcorg/gatsby-theme-iterative", - "version": "0.1.6", + "version": "0.1.7", "description": "", "main": "index.js", "types": "src/typings.d.ts", diff --git a/packages/gatsby-theme-iterative/src/components/Documentation/Layout/SearchForm/index.tsx b/packages/gatsby-theme-iterative/src/components/Documentation/Layout/SearchForm/index.tsx index 5920b329..da3300f3 100644 --- a/packages/gatsby-theme-iterative/src/components/Documentation/Layout/SearchForm/index.tsx +++ b/packages/gatsby-theme-iterative/src/components/Documentation/Layout/SearchForm/index.tsx @@ -34,6 +34,14 @@ const SearchForm: React.FC = props => { setSearchAvailable(true) } }) + } else { + window.docsearch({ + apiKey: '755929839e113a981f481601c4f52082', + indexName: 'dvc', + inputSelector: '#doc-search', + debug: false // Set to `true` if you want to inspect the dropdown + }) + setSearchAvailable(true) } } }, [])