How to Cite This Projectο
π§Ύ This guide explains how to create and maintain a
CITATION.cfffile and how to generate a DOI for your project using Zenodo.
Providing a clear citation file helps others give you credit for your work β and it only takes a few minutes to set up.
π What is CITATION.cff?ο
A
CITATION.cfffile lives in the root of your GitHub repository.It tells others how to cite your project (e.g. in papers, presentations, or other software).
GitHub automatically detects this file and shows a βCite this repositoryβ button in the sidebar.
βοΈ Example CITATION.cffο
cff-version: 1.2.0
title: Template Project for Research Code
authors:
- family-names: Frajka-Williams
given-names: Eleanor
orcid: https://orcid.org/0000-0002-XXXX-XXXX
affiliation: University of Hamburg
version: 0.1.0
date-released: 2024-06-01
license: MIT
url: https://github.com/eleanorfrajka/template-project
message: "If you use this template in your own work, please cite it using the metadata above."
π‘ Keep your
CITATION.cffupdated with new versions and release dates when you publish.
π Linking to a DOI with Zenodoο
Zenodo is a service that archives GitHub releases and issues a DOI (Digital Object Identifier) for your project.
π§ Steps to Register with Zenodo:ο
Log in at zenodo.org using your GitHub account.
Go to GitHub Linked Accounts
Enable Zenodo archiving for your repository.
Push a new GitHub release tag (e.g.
v0.1.0).Zenodo will archive the release and issue a DOI.
You can then add that DOI back into your CITATION.cff like this:
doi: 10.5281/zenodo.1234567
π§© Best Practicesο
Always include a
CITATION.cffin published repositories.Keep
versionanddate-releasedin sync with your actual GitHub tags.Use ORCID and affiliation fields to improve citation metadata.
If you create a Zenodo DOI, display it in the README badge or footer.
β Adding a
CITATION.cffis a simple but powerful step toward making your code citable and FAIR (Findable, Accessible, Interoperable, Reusable).