1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

22 Commits

Author SHA1 Message Date
AllenJB
6eba7eba26 Search: Fix "g a" search (add comment to notify future devs) 2026-01-13 14:02:52 +01:00
AllenJB
e6194839e4 Reject old format indexes (forcing refetch) (#1596) 2025-11-06 10:48:34 +08:00
AllenJB
658fafec3e Update search to use new pre-combined indexes + local docs support (#1586)
* Update search.js to use new pre-combined indexes; Support for running search on local docs

* Update search.js to use new pre-combined indexes; Support for running search on local docs
2025-11-04 17:17:06 +00:00
Luffy
8231de0a32 Exclude input and textarea from "/" key handler (#1213) 2025-01-28 09:30:52 +08:00
Luffy
a3dd121417 Fix loadIndexWithFallback failed (#1193)
Fix #1122
Fix #1192
2024-12-30 16:02:16 +03:00
Antoine Bluchet
543eab70a4 Allow "/" when editing code (#1177)
Co-authored-by: Luffy <lufei@php.net>
2024-12-04 15:16:25 +08:00
Lucas Azevedo
b62f99f6de Update navbar design and improve search UI (#1084)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
Co-authored-by: Sergey Panteleev <sergey@php.net>
2024-11-02 17:39:04 +03:00
Roy Orbitson
2dcf9c3796 Fuzzy search of docs (#1007) 2024-08-09 12:11:16 +08:00
Andreas Möller
00342c402f Fix: Remove vim instruction (#880) 2023-12-07 15:01:52 +01:00
Kazuya Takei
438c8baa34 Change escaping function to build URL for searching
Fixes GH-518.
Closes GH-519.
2022-05-30 15:43:58 +02:00
Michael
d5c8c1d7eb Finally remove XHTML from .js files
Last but not least
2014-06-04 20:08:05 +02:00
Paul Dragoonis
e2b48d81c5 Adding collapsible functionality to the search results as the menu goes way below the screen. Adding some CSS classes to the markup and thus improving CSS/JS selector readability and performance. 2014-06-01 20:22:58 +01:00
Adam Harvey
70231d3b44 Disable the search autocomplete for IE ≤ 8.
Fixes the JS fail in bug #66207, but does nothing about the styling.
2014-03-25 10:13:22 -07:00
Hannes Magnusson
5c52d40bd3 Whopsy, that was only disabled for testing :) 2013-12-26 19:30:38 -08:00
Hannes Magnusson
1b45735896 Improve the categorization of search results 2013-12-26 19:13:53 -08:00
Hannes Magnusson
ff9eabea6e Massage the index before shipping it. This safes us almost 3mb 2013-12-26 18:53:39 -08:00
Hannes Magnusson
1fbbdafaaa We have version control 2013-12-23 11:35:39 -08:00
Hannes Magnusson
291c54bcb9 Show 30results, and allow scrolling
Also hacked the matcher a bit, allow matching without underscore
e.g. "strpad" now matches "str_pad"
2013-12-23 11:29:28 -08:00
Hannes Magnusson
8659b7c742 Go to the actual file directly 2013-12-23 10:39:50 -08:00
Hannes Magnusson
e3ce6e7728 Cache & attempt to gzip the search indexes 2013-11-22 00:07:04 -08:00
Adam Harvey
6429556f93 Various styling updates, including responsiveness (gasp!). 2013-11-20 11:06:27 -08:00
Adam Harvey
24baccd5fc Re-add a search dropdown to the beta site.
This uses Twitter's typeahead.js for the actual autocompletion, and uses our
existing search-index.json and search-description.json files. These are pretty
big, and an obvious fix down the track would be to combine them into one,
preferably much smaller file. mod_gzip should help to some extent, as should
the HTML 5 Local Storage caching I've implemented.

I've also pulled in Hogan.js for templating, since typeahead.js really needs
some sort of templating engine to be useful.

Excluding the JSON files, the added JS dependencies are around 50k
uncompressed. I think this is reasonable, but honestly, it's not really a
significant win over the autocomplete bits of jQuery UI. I've used typeahead.js
more for its multiple section functionality than anything else.

The styling on this is pretty average, but I'm mostly interested in testing
functionality right now. Fixes welcome.
2013-11-20 11:06:27 -08:00