18 Commits

Author SHA1 Message Date
Classic298 50f231d400 Replace lunr search with local search and exact-phrase ranking
Swap docusaurus-lunr-search for @easyops-cn/docusaurus-search-local. All
query words are now required to match instead of being OR-ed, so a page
spamming one common word no longer outranks the page containing the whole
query. Underscore-joined names like CONTEXT_COMPACTION_TOKEN_CAP are
indexed both whole and as sub-words, matched terms are highlighted on the
target page, and a full results page is available at /search.

Add an exact-match layer on top (src/client/exactSearch.js, wired via
webpack module replacement). Multi-word or quoted queries that occur
verbatim on a page always rank first, rendered as a single marked phrase
with a section-anchor deep link, with token-based results following. A
SearchBar wrapper (src/theme/SearchBar) highlights exactly the searched
sentence on the target page and scrolls it into view, replacing the
per-word highlight parameters for these results.

Also mention the Builtin Tools capability name on the tools page so the
in-product term is findable by search.
2026-07-12 13:57:34 +02:00
Timothy Jaeryang Baek 2b2f61f6a0 refac 2026-07-10 19:06:25 -05:00
Timothy Jaeryang Baek 352d6b0422 refac 2026-04-02 19:17:34 -05:00
DrMelone 8edb316819 HTTPS moved 2026-02-14 11:37:32 +01:00
Timothy Jaeryang Baek d49d4ff823 refac 2025-11-22 17:43:07 -05:00
Timothy Jaeryang Baek 3df14e7c80 refac 2025-10-20 12:40:29 -04:00
Timothy Jaeryang Baek a714b4943e refac 2025-10-19 13:13:50 -04:00
Timothy Jaeryang Baek 32961cbc8d feat: analytics 2025-04-11 00:58:18 -07:00
Sebastian 94e53ad792 Bump dependancies and install lint and format packages 2024-09-26 01:47:47 +02:00
Timothy J. Baek 937300d725 fix 2024-09-25 03:45:59 +02:00
Timothy J. Baek 64311f61de refac 2024-09-25 02:04:05 +02:00
Hichem Fantar 9ff9696f8d refactor: Rename files to use TypeScript extension 2024-06-17 15:46:52 +01:00
Hichem Fantar 6b8147d818 chore: add mdx-check script to package.json and md lint config 2024-06-16 21:44:42 +01:00
Hichem Fantar 306a003563 setup prettier and local search 2024-06-16 21:10:18 +01:00
Timothy J. Baek 37e211c23d feat: sponsors 2024-05-28 00:38:58 -07:00
Jun Siang Cheah 544da36a43 feat: add network diagrams for different deployments to aid network debugging 2024-05-08 17:47:35 +08:00
Timothy J. Baek 19befb40b3 chore: dependency upgrade 2024-03-31 02:16:40 -07:00
Timothy J. Baek dbf1bed01f init 2024-02-19 21:02:13 -08:00