CloudCannon / bookshop

📚 A component development workflow for static websites.
MIT License
249 stars 21 forks source link

[FEATURE] Upgrade embedded Hugo renderer for live editing #200

Closed markdumay closed 4 weeks ago

markdumay commented 2 months ago

The current Hugo renderer is pinned to version v0.111.3:

https://github.com/CloudCannon/bookshop/blob/de6f5202b074d62257c81777ae42409c589cbe90/javascript-modules/engines/hugo-engine/full-hugo-renderer/go.mod#L8

This Hugo version was released in March 2013. Since then, major new features have been added to Hugo. It would be great if the embedded Hugo renderer could be upgraded to a more recent version.

Ideally, the compiled Hugo wasm would use the exact same version as defined in the build pipeline. This would greatly reduce unexpected build errors during live editing, as these errors do not show up during the site build otherwise. Alternatively, you could include a warning in the bookshop docs about the supported Hugo version for live editing.

bglw commented 4 weeks ago

Shipped in v3.11.0 🙂

(Unfortunately this is hard to do automatically since Bookshop hooks into internal unstable endpoints that change a lot)