Skip to content

Commit

Permalink
Merge pull request #28 from iterative/quick-fix-docsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
yathomasi authored Jun 8, 2022
2 parents 598ea3d + 7de68a4 commit 180cfe3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-theme-iterative/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}, [])
Expand Down

0 comments on commit 180cfe3

Please sign in to comment.