CookCLI icon indicating copy to clipboard operation
CookCLI copied to clipboard

Possible to integrate with Recipe schema structured data?

Open shayaknyc opened this issue 3 years ago • 2 comments

I absolutely L-L-LOVE cooklang! Recently discovered it and just jumped in head-first. I did notice, however, that there already exists a Recipe schema for structured data: https://schema.org/Recipe

Wondering if it's possible to enhance the CLI to output a json-formatted structured data for inclusion on the web for enhanced SEO by google, and other search engine crawlers? Perhaps through including metadata fields that map to specific schema Properties like >> servings would map to recipeYield during output, and a validator can tell you what schema properties are missing for the output to be valid? Just thinking out loud.... as this would be a great way to bridge these two technologies.

Edit: I just noticed that cook recipe read recipe.cook --output-format json spits out json, would be great if there's an output format that will allow to map to the Recipe schema, like --output-format recipe-json or something like that.....

shayaknyc avatar Mar 15 '22 19:03 shayaknyc

I'm definitely for this feature and find use-case valid. At the moment there're other priorities and probably it will take some time before I can get to this...

dubadub avatar Mar 16 '22 21:03 dubadub

No rush! Thank you!

shayaknyc avatar Mar 21 '22 16:03 shayaknyc