caltechlibrary / template

Template repository for software projects by the Caltech Library
Other
5 stars 3 forks source link

Using Pandoc templates to generate CITATION.cff #4

Open rsdoiel opened 7 months ago

rsdoiel commented 7 months ago

The codemeta2cff I wrote in Go presumes having to pick one interpretation of an ambiguous spec.

I've since originally writing codemeta2cff in Go I've switch to generating CITATION.cff and about.md from codemeta.json via a Pandoc templates. It is a much more flexible process. Instead of installing codemeta2cff I'd recommend installing Pandoc. Then you can use the templates from https://github.com/caltechlibrary/codemeta-pandoc-examples generate many types of files from the codemeta.json contents.

This General approach would allow you to generate the following easily

tmorrell commented 7 months ago

Can you add the pandoc version to https://github.com/caltechlibrary/codemeta2cff? We can basically just swap out what the GItHub action uses and not have to change the template.