{"_id":"docpress-search","_rev":"1745214","name":"docpress-search","description":"Search plugin for [docpress].","dist-tags":{"latest":"0.6.0"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"time":{"modified":"2026-11-19T13:54:21.000Z","created":"2015-10-20T03:42:44.820Z","0.6.0":"2015-10-20T03:42:44.820Z"},"users":{},"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"repository":{"type":"git","url":"git+https://github.com/docpress/docpress-search.git"},"versions":{"0.6.0":{"name":"docpress-search","version":"0.6.0","main":"index.js","scripts":{"prepublish":"npm run build","build":"mkdir -p cache && ./bin/build --js > cache/script.js","test":"mocha"},"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","dependencies":{"browserify":"11.2.0","lunr":"0.5.12","uglifyify":"3.0.1","ware":"1.3.0"},"devDependencies":{"docpress-core":"*","expect":"1.12.1","mocha":"2.3.3","mocha-clean":"0.4.0","mocha-standard":"1.0.0","standard":"5.3.1"},"repository":{"type":"git","url":"git+https://github.com/docpress/docpress-search.git"},"bugs":{"url":"https://github.com/docpress/docpress-search/issues"},"homepage":"https://github.com/docpress/docpress-search#readme","description":"Search plugin for [docpress].","gitHead":"f67e1d7ec800497be7aaf0067d8d282c9516a4ea","_id":"docpress-search@0.6.0","_shasum":"c7d77f9fccaad42fae819161d6f37d483ee1c068","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"dist":{"shasum":"c7d77f9fccaad42fae819161d6f37d483ee1c068","tarball":"http://registry-npm.ywwl.com/docpress-search/download/docpress-search-0.6.0.tgz","integrity":"sha512-1U4nmCnG+1b8f0gbH1EadG36kNbN1dIkO+dB/G4xfYxz6BHV5uW97YqIQE8SiqtcU4tr/RUGU4wXoWG7w1mH1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSsCoUhFytbsAhto0IvUtK1+bP4b07GNZvhjOyubs6mgIhAPhYiI2V6RDW25c0BP225RIMouoZXKGSLGsQ/hlsk4i3"}],"size":9893,"noattachment":false,"key":"/docpress-search/-/docpress-search-0.6.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"publish_time":1445312564820,"_cnpm_publish_time":1445312564820}},"readme":"# docpress-search\n\nSearch plugin for [docpress].\n\n[docpress]: https://github.com/docpress/docpress\n\n## Usage\n\nAdd me after `docpress-core` and before `docpress-base`.\n\n## How\n\nThis plugin creates/updates the following artifacts:\n\n* `assets/search.js` - JavaScript\n* `_docpress.json` - adds `searchIndex` and `lunrIndex`.\n\nIt takes them from all `.html` files (which `docpress-core` converted from Markdown files) with the `$` attribute (assumed to be a Cheerio instance, left by `docpress-core`).\n\nIt also updates `ms.metadata()` to add `assets/search.js` to the `js` list.\n\nIt is meant to be used alongside `docpress-core` and `docpress-base`.\n\nThe frontend provides these available in the browser:\n\n* `Search.search('keyword')` - searches pages and headings\n* `Search.pages` - an index of all pages and headings\n","_attachments":{},"homepage":"https://github.com/docpress/docpress-search#readme","bugs":{"url":"https://github.com/docpress/docpress-search/issues"},"license":"MIT"}