Skip to content

Commit c5473f8

Browse files
committed
Merge remote-tracking branch 'origin/maint/2.1.x' into main-master
* origin/maint/2.1.x: DOC: add advice for citing nibabel
2 parents b05bad6 + 4694c5b commit c5473f8

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

README.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,13 @@ License
7777
Nibabel is licensed under the terms of the MIT license. Some code included
7878
with nibabel is licensed under the BSD license. Please see the COPYING file
7979
in the nibabel distribution.
80+
81+
Citing nibabel
82+
==============
83+
84+
Please see the `available releases`_ for the release of nibabel that you are
85+
using. Recent releases have a Zenodo_ `Digital Object Identifier`_ badge at
86+
the top of the release notes. Click on the badge for more information.
87+
88+
.. _zenodo: https://zenodo.org
89+
.. _Digital Object Identifier: https://en.wikipedia.org/wiki/Digital_object_identifier

doc/source/devel/make_release.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,22 @@ Release checklist
292292
Please take a look at the Makefile rules ``devel-src``, ``devel-dsc`` and
293293
``orig-src``.
294294

295+
* Go to: https://github.com/nipy/nibabel/tags and select the new tag, to fill
296+
in the release notes. Copy the relevant part of the Changelog into the
297+
release notes. Click on "Publish release". This will cause Zenodo_ to
298+
generate a new release "upload", including a DOI. After a few minutes, go
299+
to https://zenodo.org/deposit and click on the new release upload. Click on
300+
the "View" button and click on the DOI badge at the right to display the
301+
text for adding a DOI badge in various formats. Copy the DOI Markdown text.
302+
The markdown will look something like this::
303+
304+
[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.60847.svg)](http://dx.doi.org/10.5281/zenodo.60847)
305+
306+
Go back to the Github release page for this release, click "Edit release".
307+
and copy the DOI into the release notes. Click "Update release".
308+
309+
See: https://guides.github.com/activities/citable-code
310+
295311
* Announce to the mailing lists.
296312

297313
.. _setuptools intro: https://pythonhosted.org/an_example_pypi_project/setuptools.html

doc/source/links_names.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
.. _reST: http://docutils.sourceforge.net/rst.html
4343
.. _docutils: http://docutils.sourceforge.net
4444
.. _IPython notebook viewer: http://nbviewer.ipython.org
45+
.. _zenodo: https://zenodo.org
4546

4647
.. Licenses
4748
.. _GPL: https://www.gnu.org/licenses/gpl.html

nibabel/info.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,16 @@ def cmp_pkg_version(version_str, pkg_version_str=__version__):
170170
Nibabel is licensed under the terms of the MIT license. Some code included
171171
with nibabel is licensed under the BSD license. Please see the COPYING file
172172
in the nibabel distribution.
173+
174+
Citing nibabel
175+
==============
176+
177+
Please see the `available releases`_ for the release of nibabel that you are
178+
using. Recent releases have a Zenodo_ `Digital Object Identifier`_ badge at
179+
the top of the release notes. Click on the badge for more information.
180+
181+
.. _zenodo: https://zenodo.org
182+
.. _Digital Object Identifier: https://en.wikipedia.org/wiki/Digital_object_identifier
173183
"""
174184

175185
# versions for dependencies. Check these against:

0 commit comments

Comments
 (0)