Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Pandoc templates to generate CITATION.cff #4

Open
rsdoiel opened this issue Feb 8, 2024 · 1 comment
Open

Using Pandoc templates to generate CITATION.cff #4

rsdoiel opened this issue Feb 8, 2024 · 1 comment
Labels
Coding: enhancement ✨ New feature or request

Comments

@rsdoiel
Copy link
Member

rsdoiel commented Feb 8, 2024

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

  • CITATION.cff
  • about.md
@rsdoiel rsdoiel added the Coding: enhancement ✨ New feature or request label Feb 8, 2024
@tmorrell
Copy link
Member

tmorrell commented Feb 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Coding: enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants