Dendron Engine
The engine provides the core of dendron's capabilities.
Components
Fuse.js
- https://fusejs.io/-
- powers dendron fuzzy search
Cook
Tune Search Results
-
checkout fuse.js from https://github.com/krisk/fuse
-
install dependencies
npm install
-
build the docs
npm run docs:dev
-
modify
docs/.vuepress/components/Demo/Demo.vue
- example of setting custom parameters
let codify = (pattern) => { return `const options = { shouldSort: true, threshold: 0.6, location: 0, distance: 50, maxPatternLength: 32, minMatchCharLength: 2, useExtendedSearch: true, includeScore: true, keys: [ "title", ] }; const fuse = new Fuse(list, options); // Change the pattern const pattern = "${pattern}" return fuse.search(pattern)` }