A couple minor lint issues needed repaired for search.css and
search.js. Apparently lunr.js has never been linted though. It
works as expected as-is but it's not our job to fix their 400+
errors...
Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
.search-result-highlight {
color: #174d8c;
background: rgba(143, 187, 237, 0.1);
- padding: .1em .05em;
+ padding: 0.1em 0.05em;
}
.search-result-item {
.search-result-document-hit > a:hover {
background-color: rgba(69, 142, 225, 0.05);
}
-
+/* eslint-disable */
/**
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.8
* Copyright (C) 2019 Oliver Nightingale
return lunr
}))
})();
+/* eslint-enable */
return hits
}
- function createSearchResult(result, store, searchResultDataset) {
+ function createSearchResult (result, store, searchResultDataset) {
result.forEach(function (item) {
var url = item.ref
var hash
}
function init (data) {
- var index = Object.assign({index: lunr.Index.load(data.index), store: data.store})
+ var index = Object.assign({ index: lunr.Index.load(data.index), store: data.store })
var search = debounce(function () {
searchIndex(index.index, index.store, searchInput.value)
}, 100)