ScratchAddons / website-v2

The website for Scratch Addons. (version 2)
https://scratchaddons.com
GNU General Public License v3.0
49 stars 38 forks source link

Search feature on documentation #168

Open Hans5958 opened 2 years ago

Hans5958 commented 2 years ago

This is a dream of mine, but I haven't got time or skill to do it, so if anyone can implement a search feature on the docs, I will appreciate it.

Preferably without Algolia or other third-party services

Some resources ideas to start with (go ahead if you have other ideas):

cobaltt7 commented 2 years ago

fuse is actually horrible tbh, the results are not accurate at all

see, this search returns nothing because i didn't use double quotes image

mxmou commented 2 years ago

see, this search returns nothing because i didn't use double quotes

A single quote means "include-match" according to the documentation, but I don't know how that's different from just typing the word.

A more serious problem is that even if extended search is enabled (without it, you have to enter the words in the same order as they appear in the result), you can only search individual fields. image image image

For documentation search, that would mean "joining volunteer localization" would return no results because "joining" only appears in the title and "volunteer" only appears in the page content.

Hans5958 commented 2 years ago

Yeah, it was just my random idea based on the current implementation on Scratch Addons. If anyone knows better libraries then go ahead.

Hans5958 commented 2 years ago

I forgot these existed:

Weredime commented 2 years ago

Preferably without Algolia

:(