Code Monkey home page Code Monkey logo

Comments (5)

jhildenbiddle avatar jhildenbiddle commented on July 28, 2024

Hi @jrappen.

Based on what I see at https://jrappen.github.io/sublime-wkhtmltopdf/ I assume "didn't work for me" means the search box is visible but no results are returned. Yes?

If this is the case, the explanation is that docsify's search plugin is designed to return search results for multi-page sites only. I assume the logic behind that decision is that if all site data is contained on the page the user is looking at, the browser's built-in page search can be used instead via CMD/CTRL+F.

If you would like the search plugin to work on single-page sites consider creating a docsify issue.

Thanks!

from docsify-themeable.

jrappen avatar jrappen commented on July 28, 2024

Interesting, it used to work (even across translations).

For example a search for "installation" would return both matches, one each from the German and English translation.

from docsify-themeable.

jrappen avatar jrappen commented on July 28, 2024

thanks for the input

from docsify-themeable.

jhildenbiddle avatar jhildenbiddle commented on July 28, 2024

That is interesting. I didn't realize it worked in the past.

After doing a little more digging, it looks like single-page search functionality was broken in the 4.8.0 release. The easiest way to verify:

  1. Load a single-page docsify site with docsify v4.8 or above
  2. Notice the absence of docsify.search keys in the browser's local storage
  3. Load the same single-page docsify site with docsify v4.7.x
  4. Notice the docsify.search.expires and docsify.search.index entries have been added to the browser's local storage.

from docsify-themeable.

timaschew avatar timaschew commented on July 28, 2024

I guess this is the reason: docsifyjs/docsify#706

Another reason to add tests and merge new features and changes only with tests.

from docsify-themeable.

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.