You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pull from Collab Guide [PR 69](Imageomics/Collaborative-distributed-science-guide#69)
* Restructure citation template section for improved clarity
set up a standard vs extended citation
also adds references as a key in Zenodo metadata template, with citation pointer recommending use there
* Add support for content tabs
used for citation CFF templates
* Use conference-paper as default for preferred-citation
include examples and exlanations for keys
* fix formatting for citation file examples
* Shorten note before template citation files
Move preferred-citation notes to tab where it's included
* Replace note about yaml validator tool with note to check format on branch
validator tool checks yaml, not citation cff format
* Create a subsubsection for citation templates, reduce admonition use to avoid clutter
* Fix formatting of ORCID field
* Clarify use of ORCID number only for zenodo JSON, different from CFF field
* Add comment about when to update commit hash
@@ -101,66 +101,119 @@ For more information on managing these environments and generating such files pr
101
101
102
102
### CITATION
103
103
104
-
Make it easier for people to cite your project by including a [CITATION.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files); you can copy-paste the template below.
104
+
Make it easier for people to cite your project by including a [CITATION.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files); you can copy-paste the [template below](#citation-templates).
105
105
106
106
As with journal publications, we expect to be cited when someone uses our code. To facilitate proper attribution, GitHub will automatically read a [CITATION.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files) and display a link to "cite this repository". This file is also used to populate metadata fields in a [Zenodo](https://zenodo.org/) record when [auto-generating a DOI](DOI-Generation.md#2-generate-a-doi-with-zenodo). As with any other component of your project, this file may change over the project's lifespan (see [Digital Product Life Cycle](Digital-Product-Lifecycle.md) for details), but it should be present and updated before any release.
107
107
108
108
Providing this file is as simple as copying the below example and filling in your information before uploading it to your repo. More examples and information about the Citation File Format can be found on the [citation-file-format repo](https://github.com/citation-file-format/citation-file-format), including helpful [related tools](https://github.com/citation-file-format/citation-file-format#tools-to-work-with-citationcff-files-wrench).
109
109
110
-
You can check your `CITATION.cff` file prior to upload using this [validator tool](https://www.yamllint.com/).
110
+
#### Citation Templates
111
111
112
-
!!! note "Note"
113
-
- When adding a DOI to your citation (`doi`), be sure to use the version-agnostic DOI from Zenodo. Since the DOI is not generated until _after_ the release, this ensures there will never be an "incorrect" DOI associated to the release—correct version reference is ensured through the `version` key, which should always be updated _**before**_ generating a new release.
114
-
- Subcategories of `preferred-citation` do not get bullet points, but the first subcategory of `references` must be bulleted (as below).
115
-
- This is generally intended as a reference for your code. Preferred citation can be used for the paper, though it is better to ask in the `README` that someone cites _both_ and provide the paper reference there (only the `preferred-citation` will show up to be copied from the citation box if it is included).
116
-
117
-
```yaml { py linenums="1" }
118
-
abstract: "<describe your code/package>"
119
-
authors:
120
-
- family-names:
121
-
given-names: "<First M.I.>"
122
-
orcid: "https://orcid.org/<ORCID #>"
123
-
cff-version: 1.2.0
124
-
date-released: "YYYY-MM-DD"
125
-
identifiers:
126
-
- description: "The GitHub release URL of tag <version>."
- When adding a DOI to your citation (`doi`), be sure to use the version-agnostic DOI from Zenodo. Since the DOI is not generated until _after_ the release, this ensures there will never be an "incorrect" DOI associated to the release—correct version reference is ensured through the `version` key, which should always be updated _**before**_ generating a new release.
113
+
- A `CITATION.cff` is intended as a reference for your code; ask in the `README` that someone cites _both_ the repo and your paper, then provide the paper BibTeX there.
114
+
- Formatted display can be checked on a branch before merging to `main`.
115
+
116
+
=== "Standard Citation File (Recommended)"
117
+
118
+
!!! tip
119
+
Pair this citation file with a [`.zenodo.json`](#zenodo-metadata) for easier DOI metadata tracking (grants, references, associated papers).
120
+
121
+
```yaml { py linenums="1" }
122
+
abstract: "<describe your code/package>"
123
+
authors:
144
124
- family-names:
145
-
given-names:
125
+
given-names: "<First M.I.>"
126
+
orcid: "https://orcid.org/<ORCID #>"
127
+
cff-version: 1.2.0
128
+
date-released: "YYYY-MM-DD"
129
+
identifiers:
130
+
- description: "The GitHub release URL of tag <version>."
=== "Extended `CFF` (References and Citation redirect)"
148
+
149
+
!!! warning
150
+
This is generally intended as a **reference for your code**. Preferred citation can be used for the paper, though it is better to ask in the `README` that someone cites _both_ and provide the paper reference there (only the `preferred-citation` will show up to be copied from the citation box if it is included).
151
+
152
+
!!! success "Simplify version tracking for you code"
153
+
Pair the [standard citation file](#__tabbed_1_1) with a [.zenodo.json file](#zenodo-metadata), which can track references, associated papers, and grant information.
154
+
155
+
!!! info
156
+
- Subcategories of `preferred-citation` do not get bullet points, but the first subcategory of `references` must be bulleted (as below).
157
+
- If including `references` or setting a `preferred-citation`, see this [bibtex to cff crosswalk](https://docs.ropensci.org/cffr/articles/bibtex-cff.html#fieldskey-crosswalk) for help in translating a BibTeX citation to the proper `CFF` format.
158
+
159
+
```yaml { py linenums="1" }
160
+
abstract: "<describe your code/package>"
161
+
authors:
146
162
- family-names:
147
-
given-names:
148
-
title:
149
-
year:
150
-
journal:
151
-
doi:
152
-
references:
153
-
- authors:
154
-
- family-names:
155
-
given-names:
156
-
- family-names:
157
-
given-names:
158
-
title:
159
-
version:
160
-
type:
161
-
doi:
162
-
date-released:
163
-
```
163
+
given-names: "<First M.I.>"
164
+
orcid: "https://orcid.org/<ORCID #>"
165
+
cff-version: 1.2.0
166
+
date-released: "YYYY-MM-DD"
167
+
identifiers:
168
+
- description: "The GitHub release URL of tag <version>."
0 commit comments