Skip to content

Commit

Permalink
doc: CITATION.cff (#115)
Browse files Browse the repository at this point in the history
Generate CITATION.cff file now supported by Github.

Closes #114
  • Loading branch information
mmcloughlin committed Aug 31, 2021
1 parent 908a496 commit cab1a66
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 2 deletions.
20 changes: 20 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cff-version: 1.2.0
message: "If you use addchain in your work, a citation would be appreciated using the following metadata."
title: "mmcloughlin/addchain: v0.3.0"
abstract: "Cryptographic Addition Chain Generation in Go"
authors:
- family-names: "McLoughlin"
given-names: "Michael Ben"
orcid: "https://orcid.org/0000-0003-2347-6258"
version: "0.3.0"
date-released: "2021-05-13"
license: BSD-3-Clause
repository-code: https://github.com/mmcloughlin/addchain
doi: "10.5281/zenodo.4758226"
identifiers:
- type: doi
value: "10.5281/zenodo.4625263"
description: "The concept DOI of the work."
- type: doi
value: "10.5281/zenodo.4758226"
description: "The versioned DOI for version 0.3.0 of the work."
File renamed without changes.
20 changes: 20 additions & 0 deletions internal/tools/docgen/templates/cff.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cff-version: 1.2.0
message: "If you use addchain in your work, a citation would be appreciated using the following metadata."
title: "mmcloughlin/addchain: {{ .Meta.ReleaseTag }}"
abstract: "Cryptographic Addition Chain Generation in Go"
authors:
- family-names: "McLoughlin"
given-names: "Michael Ben"
orcid: "https://orcid.org/0000-0003-2347-6258"
version: "{{ .Meta.ReleaseVersion }}"
date-released: "{{ .Meta.ReleaseDate }}"
license: BSD-3-Clause
repository-code: https://github.com/mmcloughlin/addchain
doi: "{{ .Meta.DOI }}"
identifiers:
- type: doi
value: "{{ .Meta.ConceptDOI }}"
description: "The concept DOI of the work."
- type: doi
value: "{{ .Meta.DOI }}"
description: "The versioned DOI for version {{ .Meta.ReleaseVersion }} of the work."
3 changes: 2 additions & 1 deletion internal/tools/docgen/ztemplates.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion script/generate
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ bib generate -bib doc/references.bib -type markdown -output doc/bibliography.md
# Documentation.
go run ./internal/tools/docgen -type readme -tocmax 3 -output README.md
go run ./internal/tools/docgen -type results -output doc/results.md
go run ./internal/tools/docgen -type citation -output CITATION.bib
go run ./internal/tools/docgen -type cff -output CITATION.cff
go run ./internal/tools/docgen -type bibtex -output CITATION.bib
go run ./internal/tools/docgen -type zenodo -output .zenodo.json

# Install script. (Post-processed to remove timestamp for repeatability.)
Expand Down

0 comments on commit cab1a66

Please sign in to comment.