pyscript / docs

The source code for the official documentation of PyScript.
https://docs.pyscript.net
9 stars 10 forks source link

Missing list of downloadable versions #20

Closed eruvanos closed 6 months ago

eruvanos commented 1 year ago

While some examples feature the location of download location for specific versions, it would be great to have a list for old versions. Build artefact attached to GH releases would be enough.

JeffersGlass commented 1 year ago

Not that we shouldn't document this somewhere official, but the list of PyScript releases is to date is:

And the upcoming release will be at https://pyscript.net/releases/2023.09.1/core.js when it comes out. Note the file is now core.js. Currently, you can see the release candidate at https://pyscript.net/snapshots/2023.09.1.RC1/core.js.

Tangentially related, if you (or someone who finds this later) are including those as sources on your page:

GoToLoop commented 1 year ago

I'm really frustrated the link for latest version is being dropped: 😭 https://PyScript.net/latest/core.js

Please, keep it! It's super useful for demos! 🔧

WebReflection commented 6 months ago

@GoToLoop we publish unstable (canary channel) on NPM so you can use latest (with all its possibly undocumented breaking changes when these happen) via:

We don't get to control when these will point at the very latest but that's the edge equivalent of previous latest.

I am closing this as I think @JeffersGlass already answered but we also list all older docs in the current site by clicking top left icon where one can pick any number.

GoToLoop commented 6 months ago

maintainer here ... this was a bad suggestion, tons of stuff would break if you use unpkg instead of jsdelivr so we don't want you to use this workaround, as there are better links we test and use daily behind the scene too.


This is my workaround for latest PyScript if n1's interested:

WebReflection commented 6 months ago

@GoToLoop I strongly sugest you to stop doing that as unpkg doesn't provide the right headers needed to bootstrap PyScript in a worker ... please use the suggested links as those are safe and working by all means:

unpkg is in maintenance mode, jsdelivr is there to stay.

GoToLoop commented 6 months ago

...as unpkg doesn't provide the right headers needed to bootstrap PyScript in a worker...

Indeed, I've never dealt w/ workers. But for regular usage, http://Unpkg.com works for me. Here are some examples:

  1. https://PyScript.com/@gotoloop/ascii-visualization
  2. https://PyScript.com/@gotoloop/toon-shading

unpkg is in maintenance mode, jsdelivr is there to stay.

You mean, Unpkg is closing?!

Anyways, these are the corresponding links using https://JSDelivr.com instead:

Although it's much more verbose than Unpkg...

WebReflection commented 6 months ago

as this is a copy-paste operation and as gzip, brotli, or deflate works very well with repeated same content (i.e. the whole CDN prefix) I don't think the verbosity is a great argument but fair enough ... although please do use the links I have provided for latest, don't shortcut the redirect because we have relative paths that might fail if the CDN does too smart things ... otherwise you can just go with https://esm.run/@pyscript/core and call it a day if that even works.