Create with AI: a skill zip is saved under a name with its release in it

Merged
AL
2d ago
+10-7

Closes #64.

The guide's three links to the skill's zips (Claude's, ChatGPT's, and Claude's again for Grok) keep their addresses and gain a save-as name with the pinned release in it:

  • /h5p/skill/h5p-author.zip is saved as h5p-author-0.10.3.zip
  • /h5p/skill/h5p-author-chatgpt.zip is saved as h5p-author-chatgpt-0.10.3.zip

The link's text shows the same name, and the version comes from the pinned h5p-author, so it moves with each pin. h5p-author-build.tar.gz is left as it is: the skill names that file.

Checked: pnpm build and pnpm typecheck pass. On the built site, a click on each of the three links saved the file under the versioned name in Chromium, Firefox and WebKit.


Summary by cubic

Gives the Create with AI guide's three skill zip links a save-as name containing the pinned release, so downloads of different versions can be told apart. h5p-author.zip is now saved as h5p-author-<version>.zip and h5p-author-chatgpt.zip as h5p-author-chatgpt-<version>.zip, with the link text matching. The version comes from the pinned h5p-author, so it moves with each pin; h5p-author-build.tar.gz is left unchanged.