support got HuggingFace raw (just like GitHub raw)
I think it should simply be a matter of mapping the new URL format. For example:
https://huggingface.co/spaces/trusktr/trusktr/raw/bd60cfd1e0e43e35b20f836d53a524da179fc967/index.html
Just like GitHub, it sends things with text/plain mime type.
I love HuggingFace because it will automatically host a live version of the most recent HTML, for example, here my HuggingFace repo landing page,
https://huggingface.co/spaces/trusktr/trusktr
However it doesn't have commit hash in the URL, it will only show the latest, so having something like "raw.huggingfacehack.com" would be awesome.
Might be nice to support any others like GitLab too while at it, and the UI could have a select to choose which repo host to use. F.e. GitLab has raw too:
https://gitlab.com/Rockyspade/three.js/-/raw/master/examples/canvas_camera_orthographic2.html
Hey. GitLab is already supported, try gl.githack.com.
On 10 Feb 2025, at 09:55, Joe Pea @.***> wrote:
Might be nice to support any others like GitLab too while at it, and the UI could have a select to choose which repo host to use. F.e. GitLab has raw too:
https://gitlab.com/Rockyspade/three.js/-/raw/master/examples/canvas_camera_orthographic2.html
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.
Might be nice to support any others like GitLab too while at it, and the UI could have a select to choose which repo host to use. F.e. GitLab has raw too:
https://gitlab.com/Rockyspade/three.js/-/raw/master/examples/canvas_camera_orthographic2.html
For example, the link you've provided works with
https://gl.githack.com/Rockyspade/three.js/-/raw/master/examples/canvas_camera_orthographic2.html