ember-learn / ember-learn/rfcs-app

add search

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Try using https://github.com/mansona/html-extractor to pull out the relevant parts of the HTML from markdown

Then try one of the frontend-only search indexers to load those objects and build an index https://www.npmtrends.com/elasticlunr-vs-fuse.js-vs-fuzzy-vs-fuzzysearch-vs-lunr-vs-reds-vs-search-index

Altenatively we could just do what mdbook is doing: https://github.com/rust-lang/mdBook/blob/a5fddfa4683e45b1ab6d26629670acfcd5b4f18a/src/renderer/html_handlebars/search.rs#L66

> Renders markdown into flat unformatted text and adds it to the search index.

and then we can just use the "flat unformatted text" to feed directly into the index

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.