Draft
Conversation
….14, tsdown 0.21 Vite ecosystem: - vite: ^7.0.6 -> ^8.0.3 - @vitejs/plugin-react: ^4.7.0 -> ^6.0.1 - @tailwindcss/vite: ^4.1.13 -> ^4.2.2 - vite-plugin-page-reload: ^0.2.2 -> ^0.2.3 Vitest ecosystem: - vitest: ^4.0.18 -> ^4.1.2 - @vitest/browser-playwright: ^4.0.18 -> ^4.1.2 - vitest-browser-react: ^2.0.5 -> ^2.2.0 React: - react: ^19.1.0 -> ^19.2.4 - react-dom: ^19.1.0 -> ^19.2.4 - @types/react: ^19.2.2 -> ^19.2.14 ReScript: - rescript: ^12.0.0 -> ^12.2.0 - @rescript/react: ^0.14.0 -> ^0.14.2 - Migrate Exn.Error -> JsExn (deprecated in 12.2) React Router: - react-router: ^7.12.0 -> ^7.14.0 - react-router-dom: ^7.9.4 -> ^7.14.0 - @react-router/node: ^7.8.1 -> ^7.14.0 - @react-router/dev: ^7.8.1 -> ^7.14.0 tsdown: 0.20.0 -> 0.21.7 (in build:scripts)
…nto vlk/fix-algolia
Cloudflare deploymentDeployement ID: 2dee3e42-ffdd-49af-91c7-87141dc1f869 ⛅️ wrangler 4.63.0 (update available 4.80.0) ✨ Uploading _redirects |
Member
|
Cool stuff. btw can you fix the clear button? Looks very weird to me as if the "Clear" text was supposed to be a popover or something. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I made it so Algolia gets updated from a script during the build process. This will help keep things up to date. I also changed the way ranking and sorting work so the results feel more target at what we would expect when searching for things like
arrayorarray map. There are also some visual changes as the search results show more text and code snippets are inside of<code/>blocks.AI summary
This pull request introduces Algolia search integration and related infrastructure for the documentation site. It adds a build script to generate and upload a search index to Algolia, updates environment variables and dependencies, and includes supporting type definitions, bindings, and icons. Additionally, it improves URL version parsing and expands test coverage for version detection in URLs.
Algolia Search Integration
VITE_ALGOLIA_READ_API_KEY,VITE_ALGOLIA_APP_ID,VITE_ALGOLIA_INDEX_NAME) to.envand updated version variables for latest and next documentation versions.scripts/generate_search_index.res) that reads site content, builds Algolia search records, and uploads them using Algolia's API. The script is integrated into the build process via new and updated npm scripts inpackage.json. [1] [2]package.json.src/bindings/Algolia.res).src/bindings/Env.res.Search Index Data Model and Utilities
src/common/SearchIndex.resi, including types for hierarchy, weight, and record, as well as functions for building records from various content sources.hitsPerPage,distinct, andattributesToSnippet.UI Enhancements for Search
DocPage,DocHash,DocTree,DocSelect) insrc/components/Icon.resand their interface insrc/components/Icon.resi. [1] [2]Testing and Version Parsing Improvements
__tests__/Url_.test.res.src/common/Url.res.describeandtoEqualin Vitest ReScript bindings, supporting the new tests. [1] [2]Other Minor Changes
These changes collectively enable robust, up-to-date search capabilities on the documentation site, leveraging Algolia for indexing and querying content.
Before
After