v1.8.0
Minor Changes
-
#19
a5fd650Thanks @ryuhzk! - A theme's preview image is published beside its package. When a manifest
declarespreview,buildcopies that asset out of the packed theme -- the
bytes as packed, so the optimised WebP -- intodist/previews/<id>.<ext>,
with the extension (webp,pngorjpg) chosen by inspecting the bytes,
and the index entry gainspreview: "dist/previews/<id>.<ext>". A gallery
can show the picture without downloading the package.dist/previews/mirrors the index: a theme that stops declaring a preview,
or whose source is gone, loses its file, andbuildremoves anything the
index does not name.checkreports a missing, stale or stray preview file
and namesmuqun-theme buildas the fix.list --jsoncarriespreviewUrl
besideurlwhen the index came from a URL and the entry has a preview. -
#19
d9d4cc5Thanks @ryuhzk! -initscaffolds a placeholder preview cover (assets/preview.png, 1024x640)
and names it inpreview, so a fresh theme already has what galleries show.
check --sources --require-previewrefuses a source without one; the themes
repository's CI uses it.
npm: https://www.npmjs.com/package/@osuki-dev/muqun-theme/v/1.8.0