mirror of
https://github.com/eosswedenorg/apt
synced 2026-06-16 04:34:56 +02:00
Adding _scripts/js/pkg_idx.js
This commit is contained in:
parent
b855582c6b
commit
5d9ed07d37
1 changed files with 14 additions and 0 deletions
14
_scripts/js/pkg_idx.js
Normal file
14
_scripts/js/pkg_idx.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
import lunr from 'lunr'
|
||||
|
||||
// Package Search using Lunr
|
||||
export default lunr(function () {
|
||||
this.field('name');
|
||||
this.field('version');
|
||||
this.field('repo');
|
||||
this.field('component');
|
||||
|
||||
package_data.forEach(function (pkg) {
|
||||
this.add(pkg);
|
||||
}, this);
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue