rescript-lang.org icon indicating copy to clipboard operation
rescript-lang.org copied to clipboard

add DocSearch v3

Open aspeddro opened this issue 3 years ago • 10 comments

Changes

  • Add bindings to @docsearch/react v3

UI Changes

Fix #498 Fix #528 Fix #245 Fix #465

aspeddro avatar Jun 24 '22 20:06 aspeddro

Thanks for the PR.

So generally this looks good, although I am not entirely convinced about algolia's way of design here and at some point I wanted to have something custom tailored. Anyways, the only nitpick: This doesn't really fix #465 since we'd need to fix the Algolia crawling and UI mapping first (as stated in your TODO section). The new experience is even more confusing, since it will render empty rows.

image

Still wondering if we should merge this and then follow up with the relevant index changes.

ryyppy avatar Nov 03 '22 16:11 ryyppy

So generally this looks good, although I am not entirely convinced about algolia's way of design here and at some point I wanted to have something custom tailored.

Okay, I'll refactor it.

This doesn't really fix https://github.com/rescript-association/rescript-lang.org/issues/465 since we'd need to fix the Algolia crawling and UI mapping first (as stated in your TODO section).

Sure, Fixed.

The new experience is even more confusing, since it will render empty rows.

This is due to the new version of the extractor, which must be updated.

aspeddro avatar Nov 03 '22 16:11 aspeddro

Still wondering if we should merge this and then follow up with the relevant index changes.

Is it possible to create a new extractor so that we can test it?

aspeddro avatar Nov 03 '22 16:11 aspeddro

I have access to the new editor experience on the algolia website. Will need to update the api keys and then try to work my way around the crawling configuration. Will let you know as soon as I got something going.

ryyppy avatar Nov 03 '22 16:11 ryyppy

Now the design is more personalized. I changed it to the DocSearchModal component.

aspeddro avatar Jan 19 '23 02:01 aspeddro

https://github.com/rescript-association/rescript-lang.org/pull/534/commits/2e22535d68710a1b265ca0e8cededaa32a017b7b add an alternative to not rendering empty lines.

image

aspeddro avatar Feb 02 '23 21:02 aspeddro

I don't think we need to change the crawler. Git tags are displayed.

image

aspeddro avatar Nov 12 '23 05:11 aspeddro

can we only show results for the latest version? We may make this dependent on the current version that is being browsed, but for the start, only latest would be great.

ryyppy avatar Nov 12 '23 12:11 ryyppy

@aspeddro is attempting to deploy a commit to the ReScript Association Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Feb 01 '24 20:02 vercel[bot]

Ready for review

aspeddro avatar Feb 05 '24 14:02 aspeddro

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rescript-lang.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2024 7:43am

vercel[bot] avatar Apr 08 '24 07:04 vercel[bot]