Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search #543

Merged
merged 118 commits into from
Feb 14, 2024
Merged

search #543

merged 118 commits into from
Feb 14, 2024

Commits on Feb 1, 2024

  1. Configuration menu
    Copy the full SHA
    48d9b8e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea34bb4 View commit details
    Browse the repository at this point in the history
  3. import npm:minisearch (#551)

    mbostock authored and Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    3343484 View commit details
    Browse the repository at this point in the history
  4. search in the side bar (WIP)

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    ed5fc1a View commit details
    Browse the repository at this point in the history
  5. don't index theme demos…

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    04a53ff View commit details
    Browse the repository at this point in the history
  6. move css

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    e3d4479 View commit details
    Browse the repository at this point in the history
  7. fix links for index, subfolder

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    e4ce57a View commit details
    Browse the repository at this point in the history
  8. focus on cmd-K

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    dacd1d8 View commit details
    Browse the repository at this point in the history
  9. remove unused "category" field

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    f13fc81 View commit details
    Browse the repository at this point in the history
  10. filter out some terms (like long strings with numbers, e.g. API keys)…

    … to make the index a bit smaller
    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    75e2a05 View commit details
    Browse the repository at this point in the history
  11. remove html tags

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    1f35cd9 View commit details
    Browse the repository at this point in the history
  12. index title from front-matter

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    7d49430 View commit details
    Browse the repository at this point in the history
  13. index.md is /

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    b9d1e73 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d029f6a View commit details
    Browse the repository at this point in the history
  15. remove hard-coded input

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    4e26cc7 View commit details
    Browse the repository at this point in the history
  16. handle ctrl-K

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    f22d073 View commit details
    Browse the repository at this point in the history
  17. nicer UI

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    91998b8 View commit details
    Browse the repository at this point in the history
  18. - adds a search option to config

    - adds a (default) minisearch.json data loader as part of src/
    - passes the site root as argv[2] to the data loader
    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    494a0f6 View commit details
    Browse the repository at this point in the history
  19. document search

    Fil committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    89990a3 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    99de1be View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. Configuration menu
    Copy the full SHA
    083af45 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1cfee23 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5d2c846 View commit details
    Browse the repository at this point in the history
  4. cleaner css, optional rendering

    Fil committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    170f911 View commit details
    Browse the repository at this point in the history
  5. DRY

    Fil committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    c7bcd40 View commit details
    Browse the repository at this point in the history
  6. pass root path cleanly

    Fil committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    aa6eb4d View commit details
    Browse the repository at this point in the history
  7. fix ctrl-k again

    Fil committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    a072188 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8cd307b View commit details
    Browse the repository at this point in the history
  9. test

    Fil committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    08eeedf View commit details
    Browse the repository at this point in the history
  10. prettier

    Fil committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    cf722d0 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d90a4ef View commit details
    Browse the repository at this point in the history
  12. space

    Fil committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    1d1f834 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. Configuration menu
    Copy the full SHA
    d7baec2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    934ec66 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    08fd026 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c2190b7 View commit details
    Browse the repository at this point in the history
  5. limit to 11 (10+) results

    Fil committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    48e6dbc View commit details
    Browse the repository at this point in the history
  6. * special route for minisearch.json

    * default to indexing pages; opt-in and opt-out with front-matter
    * index on build and dev (with a 10 minutes weak cache)
    Fil committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    7c3aaef View commit details
    Browse the repository at this point in the history
  7. fix tests

    Fil committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    cf2d396 View commit details
    Browse the repository at this point in the history
  8. first-of-type (temporary change)

    Fil committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    b267d2e View commit details
    Browse the repository at this point in the history
  9. fix two bugs:

    - when there was no result, we were not saving the state to sessionStorage
    - the title could be ignored if the source had front-matter (or line feeds) at the top
    Fil committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    d7a07cc View commit details
    Browse the repository at this point in the history
  10. update documentation

    Fil committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    e202b03 View commit details
    Browse the repository at this point in the history
  11. not experimental anymore

    Fil committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    1096b5e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    775480c View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2024

  1. Configuration menu
    Copy the full SHA
    3da3eb5 View commit details
    Browse the repository at this point in the history
  2. use parseMardown

    cleaner text
    Fil committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    c067b9b View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2024

  1. Configuration menu
    Copy the full SHA
    88c4a57 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    15964b1 View commit details
    Browse the repository at this point in the history
  3. keyboard navigation

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    6a8326a View commit details
    Browse the repository at this point in the history
  4. fix tests

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    e07936d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7c293bb View commit details
    Browse the repository at this point in the history
  6. prettier

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    2417bdf View commit details
    Browse the repository at this point in the history
  7. remove observablehq-search-focus from sessionStorage as soon as we've…

    … consumed it, so that embedded iframes don't get it ; otherwise they steal the focus! looking specifically at you, /themes!
    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    7d0d262 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    eb7ffd3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4c790eb View commit details
    Browse the repository at this point in the history
  10. oops

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    00b64f7 View commit details
    Browse the repository at this point in the history
  11. fix tests

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    81cc96e View commit details
    Browse the repository at this point in the history
  12. alias slash

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    26c1f2d View commit details
    Browse the repository at this point in the history
  13. fix tests again

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    b6ff319 View commit details
    Browse the repository at this point in the history
  14. dismantle session navigation

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    dab1092 View commit details
    Browse the repository at this point in the history
  15. fix typo

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    fabf7cb View commit details
    Browse the repository at this point in the history
  16. fix tests

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    926b3af View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    c368962 View commit details
    Browse the repository at this point in the history
  18. 10+ results

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    ffe417c View commit details
    Browse the repository at this point in the history
  19. fix dot position

    Fil committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    3169a97 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    e945f05 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. fix styles (review comments)

    Fil committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    0b83f70 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f8ce81 View commit details
    Browse the repository at this point in the history
  3. fix next/prev logic on the edge

    Fil committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    d58a490 View commit details
    Browse the repository at this point in the history
  4. fix blur

    Fil committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    14b787c View commit details
    Browse the repository at this point in the history
  5. remove italics

    Fil committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    c33447d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c84c908 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4f169aa View commit details
    Browse the repository at this point in the history
  8. fix tests

    Fil committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    5e7c6bf View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2024

  1. fix input style

    (per @ramonaisonline's design)
    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    f8a1291 View commit details
    Browse the repository at this point in the history
  2. don't wrap long titles

    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    75c98d6 View commit details
    Browse the repository at this point in the history
  3. fix tests

    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    3e5db98 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    71cda06 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5c90870 View commit details
    Browse the repository at this point in the history
  6. fix a race condition

    Typically it would happen if you have the search query in the clipboard, type / then paste. The search then didn't execute because when the index arrived (maybe ~500ms), the input event reflecting the paste was gone.
    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    238ea19 View commit details
    Browse the repository at this point in the history
  7. Remove the confusing fuzzy vs. exact dot colors, and trust the releva…

    …nce score. For large projects we could imagine to have a more complex search panel (or dedicated page), with options such as categories, exact vs. fuzzy match, etc. (Though at some point we'll reach the limits of minisearch).
    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    e8b83bc View commit details
    Browse the repository at this point in the history
  8. documentation

    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    48a30f1 View commit details
    Browse the repository at this point in the history
  9. prettier

    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    19cdb2c View commit details
    Browse the repository at this point in the history
  10. fixes for Safari

    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    b5b88c5 View commit details
    Browse the repository at this point in the history
  11. fix tests

    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    373463d View commit details
    Browse the repository at this point in the history
  12. prettier

    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    bf52416 View commit details
    Browse the repository at this point in the history
  13. 12 bytes

    Fil committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    6131091 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. Configuration menu
    Copy the full SHA
    3e613ee View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Configuration menu
    Copy the full SHA
    e0bc602 View commit details
    Browse the repository at this point in the history
  2. Update src/minisearch.json.ts

    Fil committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    d8d37e3 View commit details
    Browse the repository at this point in the history
  3. Update src/client/search.js

    Co-authored-by: Mike Bostock <mbostock@gmail.com>
    Fil and mbostock committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    ea9893a View commit details
    Browse the repository at this point in the history
  4. remove obsolete comment

    Fil committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    6c27e5c View commit details
    Browse the repository at this point in the history
  5. Update src/client/search.js

    Co-authored-by: Mike Bostock <mbostock@gmail.com>
    Fil and mbostock committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    bbd561e View commit details
    Browse the repository at this point in the history
  6. use dynamic import

    Fil committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    075ef4e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    41086ce View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7d5a704 View commit details
    Browse the repository at this point in the history
  9. fix tests

    Fil committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    38c7e82 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. prettier

    Fil committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    de90ed0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a967cca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7bd5943 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a363396 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5fd1eaf View commit details
    Browse the repository at this point in the history
  6. simpler

    Fil committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    725ba2f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2dbbc7e View commit details
    Browse the repository at this point in the history
  8. conditional search.js deploy

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    c49ea69 View commit details
    Browse the repository at this point in the history
  9. delete undesired search.js

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    f393224 View commit details
    Browse the repository at this point in the history
  10. polish

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    3b803d7 View commit details
    Browse the repository at this point in the history
  11. more edits

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    497babf View commit details
    Browse the repository at this point in the history
  12. pretty-ing

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    3cb72a8 View commit details
    Browse the repository at this point in the history
  13. more polish

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    9f13e36 View commit details
    Browse the repository at this point in the history
  14. bundle minisearch

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    cc94066 View commit details
    Browse the repository at this point in the history
  15. more polish

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    8121a6a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    a10c578 View commit details
    Browse the repository at this point in the history
  17. docs edits

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    baa191b View commit details
    Browse the repository at this point in the history
  18. rename to search.ts

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    673f541 View commit details
    Browse the repository at this point in the history
  19. fix import order

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    e5318c6 View commit details
    Browse the repository at this point in the history
  20. copy edit

    mbostock committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    48452e7 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    1c13d63 View commit details
    Browse the repository at this point in the history