docpress-search
Search plugin for [docpress].
Last updated 11 years ago by rstacruz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install docpress-search 
SYNC missed versions from official npm registry.

docpress-search

Search plugin for docpress.

Usage

Add me after docpress-core and before docpress-base.

How

This plugin creates/updates the following artifacts:

  • assets/search.js - JavaScript
  • _docpress.json - adds searchIndex and lunrIndex.

It 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).

It also updates ms.metadata() to add assets/search.js to the js list.

It is meant to be used alongside docpress-core and docpress-base.

The frontend provides these available in the browser:

  • Search.search('keyword') - searches pages and headings
  • Search.pages - an index of all pages and headings

Current Tags

  • 0.6.0                                ...           latest (11 years ago)

1 Versions

  • 0.6.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 3
Today 0
This Week 1
This Month 3
Last Day 0
Last Week 2
Last Month 0
Dependencies (4)
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE