roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
4.46k stars 313 forks source link

Llm docs #7190

Closed jfkonecn closed 2 weeks ago

jfkonecn commented 3 weeks ago

closes roc-lang/roc#7077

This PR depends on this one which is why there are some unrelated changes to the search bar.

I made a button that puts a LLM prompt into your clipboard. You can then ask the LLM of your choice questions about the documentation.

I was thinking about using a toast, written in vanilla javascript, instead of an alert to notify the user that the prompt is in their clipboard as well as make the button look nice, but I wanted to get your thoughts on what I have so far before I do that.

jfkonecn commented 3 weeks ago

I just realized I could make a LLM text file and have a link to it in the docs page. If I do this there JavaScript wouldn't be needed to use the LLM feature.

Anton-4 commented 2 weeks ago

I just realized I could make a LLM text file and have a link to it in the docs page. If I do this there JavaScript wouldn't be needed to use the LLM feature.

Yes, that would be my preferred approach as well, seems simpler in every way

jfkonecn commented 2 weeks ago

ss

ss

Anton-4 commented 2 weeks ago

The nix-linux-x86 is just a flaky error unrelated to your changes, I'll restart it once the other jobs are done.