Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a local search plugin #21

Open
egoist opened this issue Dec 17, 2016 · 8 comments · May be fixed by #261
Open

Build a local search plugin #21

egoist opened this issue Dec 17, 2016 · 8 comments · May be fixed by #261

Comments

@egoist
Copy link
Owner

egoist commented Dec 17, 2016

Issuehunt badges

Using the plugin API for searching: https://docute.org/plugin-api#apienablesearchoptions


IssueHunt Summary

Backers (Total: $200.00)

Submitted pull Requests


Become a backer now!

Or submit a pull request to get the deposits!

Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

@Itherael
Copy link

Any progress regarding this functionality? I want to migrate to docute, but I don't want to use Algolia 😩

@phillbaker
Copy link

This vue component might be a good example (or potential component to integrate) to offer this: https://github.com/shayneo/vue-fuse/

@egoist
Copy link
Owner Author

egoist commented Jun 8, 2019

Now we have a plugin API for searching: https://docute.org/plugin-api#apienablesearchoptions

We just need to figure out how to create/store search-index.json

@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label Jun 9, 2019
@IssueHuntBot
Copy link

@issuehunt has funded $200.00 to this issue.


@janat08
Copy link

janat08 commented Jun 11, 2019

Given that this runs in browser might as well run it in memory. The files would have to be loaded from sidebar, parsed-https://github.com/markdown-it/markdown-it-, and then fed into a search library such as https://www.npmjs.com/package/lunr which takes objects and appears to return the whole tree made of object keys for a result. Ideally the link would be able to take you to that exact spot in text, or at least a paragraph, something a parser might not support like paragraph 1 after h3. When markdown component loads, do those link work via router or is it something browser supports with markdown?

@janat08
Copy link

janat08 commented Jun 21, 2019

So is it okay if search material is compiled at runtime, instead of having search-index.json produced before then?

@benkoska
Copy link

benkoska commented Sep 8, 2019

Working on this. Can you please assign me?

@benkoska benkoska linked a pull request Sep 9, 2019 that will close this issue
@benkoska
Copy link

benkoska commented Sep 9, 2019

I created a pull request #261 that should close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants