Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Oct 20, 2015
1 parent 2807aec commit f67e1d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ It takes them from all `.html` files (which `docpress-core` converted from Markd
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
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function lunrize (idx) {
const lunr = require('lunr')
const index = lunr(function () {
this.field('title', { boost: 10 })
// todo: boost if heading
this.field('pagetitle', { boost: 3 })
this.field('body')
this.ref('slug')
Expand Down

0 comments on commit f67e1d7

Please sign in to comment.