Open marvinhagemeister opened 3 months ago
Another reason to move away from these kind of links is that it doesn't allow us to provide redirects when the structure of the repo changes in the future.
We should probably host all kinds of example modules directly on JSR, that way it would just be:
deno serve jsr:@deno-docs/http-server-websocket
I'm not sure about storing the examples on JSR. JSR somewhat obscures the source by making it internal to the package whereas with an https url you can copy and paste it into your browser to see the source. Also, it's nice to keep the code close to the documentation.
Should we just host it in a /static folder on docs?
Fair point, makes more sense to have them in the same repo instead of somewhere external on JSR.
On https://docs.deno.com/examples/http-server-websocket the command to run the example is quite long: