Code Monkey home page Code Monkey logo

Comments (8)

Itherael avatar Itherael commented on May 30, 2024 2

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

from docute.

phillbaker avatar phillbaker commented on May 30, 2024

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

from docute.

egoist avatar egoist commented on May 30, 2024

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

from docute.

IssueHuntBot avatar IssueHuntBot commented on May 30, 2024

@issuehunt has funded $200.00 to this issue.


from docute.

janat08 avatar janat08 commented on May 30, 2024

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?

from docute.

janat08 avatar janat08 commented on May 30, 2024

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

from docute.

benkoska avatar benkoska commented on May 30, 2024

Working on this. Can you please assign me?

from docute.

benkoska avatar benkoska commented on May 30, 2024

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

from docute.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.