cooklang / cookcli

Command line program which provides a suite of tools to create shopping lists and maintain recipes.
https://cooklang.org
MIT License
781 stars 38 forks source link

Generate static website from recipes #58

Closed shicks closed 1 year ago

shicks commented 2 years ago

The cook server is great, but it's not practical to use without a computer to serve it on. It would be really nice to be able to generate a static website from a recipe book that could be deployed to (say) GitHub Pages, and then used the same way as the existing server (keeping all the shopping list state client-side, if it isn't already).

dubadub commented 2 years ago

Interesting idea. Yes, client side is written in Svelte and can be reused. I think it's relatively easy to do. It goes down to creating a build process which generates a few API JSONs in /api directory.

Somewhat related links: https://github.com/gohugoio/hugo/issues/9602 and https://github.com/cooklang/CookCLI/issues/32.

bubonicfred commented 2 years ago

There is an eleventy plugin btw https://github.com/matt-auckland/eleventy-plugin-cooklang

dubadub commented 1 year ago

I don't think we going to implement that any time soon. Closing it