diff --git a/_scripts/js/pkg_idx.js b/_scripts/js/pkg_idx.js new file mode 100644 index 0000000..601e39c --- /dev/null +++ b/_scripts/js/pkg_idx.js @@ -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); +})