Link Search Menu Expand Document

Dendron Engine

The engine provides the core of dendron's capabilities.

Components

Fuse.js

Utilities

  • markdown parsing and remark related utilities
    • loc: src/markdown*

Cook

Tune Search Results

  1. checkout fuse.js from https://github.com/krisk/fuse

  2. install dependencies

    npm install
    
  3. build the docs

    npm run docs:dev
    
  4. 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)`
    }
    

Children

  1. API
  2. Arch
  3. Cook
  4. Internal
  5. Lifecycle
  6. Qa
  7. Ref