1
0
Fork 0
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:
Henrik Hautakoski 2022-01-25 12:40:45 +01:00
parent b855582c6b
commit 5d9ed07d37
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

14
_scripts/js/pkg_idx.js Normal file
View 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);
})