php / web-php

The www.php.net site
http://www.php.net
Other
815 stars 524 forks source link

Fuzzy search of docs #1007

Open Roy-Orbison opened 2 weeks ago

Roy-Orbison commented 2 weeks ago

Allow partial terms and multiple search tokens instead of rigid 'begins-with' substring matching.

This isn't perfect and could probably do with some tuning of the FuzzySearch parameters, but it's better than the current, very unforgiving, method.

It also adds the .php suffix to selected autocomplete results (to match the canonical tags), stops the results list from becoming inaccessible when taller than the viewport, and drops a couple of unused variables.

php quick search

github-actions[bot] commented 2 weeks ago

🚀 Commit 3e1d7c4b5b4e01a4b6288b7a781f60f0bae10f64 Deployed on https://web-php-pr-1007.preview.thephp.foundation

Roy-Orbison commented 2 weeks ago

Some inline styles still need to go into CSS.

Seeking feedback before marking PR as ready.