mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-11-11 03:01:20 +00:00
Bug fixes for search
This commit is contained in:
2 files changed
+15
-6
No files matched your search
@@ -9,6 +9,12 @@ const bootstrapDocsSearch = function() {
|
||||
apiKey: 'b7f43c16886fec97b87981e9e62ef1a5',
|
||||
indexName: window.location.host === 'rancher.com' ? 'prod_docs' : 'dev_docs',
|
||||
routing: true,
|
||||
searchFunction: function(helper) {
|
||||
if (helper.state.query === "") {
|
||||
return;
|
||||
}
|
||||
helper.search();
|
||||
}
|
||||
});
|
||||
|
||||
search.addWidget(
|
||||
|
||||
Reference in new issue
Block a user