Skip to content

Commit

Permalink
better DOI handling
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhassell committed Dec 4, 2024
1 parent 90bedff commit a1a993e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cf-conventions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Brian{nbsp}Eaton; Jonathan{nbsp}Gregory; Bob{nbsp}Drach; Karl{nbsp}Taylor; Steve
:toclevels: 3

<<<
Climate and Forecast Conventions version {current-version-as-attribute} DOI: link:https://doi.org/10.5281/zenodo.14275599[10.5281/zenodo.14275599]
Climate and Forecast Conventions version {current-version-as-attribute} {doi-text}

image:images/cc-zero.svg[,9%,pdfwidth=50vw]
This document is dedicated to the public domain following the link:https://creativecommons.org/publicdomain/zero/1.0/[Creative Commons Zero v1.0 Universal] Deed.
Expand All @@ -20,13 +20,13 @@ ifdef::final[]
+
+
_Use the following reference to cite this version of the document:_ +
Eaton, B., Gregory, J., Drach, B., Taylor, K., Hankin, S. et al. (2024). NetCDF Climate and Forecast (CF) Metadata Conventions ({current-version-as-attribute}). CF Community. https://doi.org/10.5281/zenodo.14275599
Eaton, B., Gregory, J., Drach, B., Taylor, K., Hankin, S. et al. (2024). NetCDF Climate and Forecast (CF) Metadata Conventions ({current-version-as-attribute}). CF Community. {doi-link}
endif::[]
ifndef::final[]
+
+
_DON’T use the following reference to cite this version of the document, as it is only shown as a draft:_ +
Eaton, B., Gregory, J., Drach, B., Taylor, K., Hankin, S. et al. (2024). NetCDF Climate and Forecast (CF) Metadata Conventions ({current-version-as-attribute}). CF Community. https://doi.org/10.5281/zenodo.XXXXXX
Eaton, B., Gregory, J., Drach, B., Taylor, K., Hankin, S. et al. (2024). NetCDF Climate and Forecast (CF) Metadata Conventions ({current-version-as-attribute}). CF Community. {doi-link}
endif::[]

'''
Expand Down
6 changes: 4 additions & 2 deletions version.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ or with the commandline switch `-a final`.
////
// :final:

// No changes needed beyond this line
ifdef::final[]
:current-version: {version}
:current-version-as-attribute: {version}
:doi: 10.5281/zenodo.FFFFFF
// Change the DOI prior to releasing the next version
:doi: 10.5281/zenodo.14275599
// No changes needed beyond this line
:doi-text: DOI: link:https://doi.org/{doi}[{doi}]
endif::[]
ifndef::final[]
Expand All @@ -21,3 +22,4 @@ ifndef::final[]
:doi: 10.5281/zenodo.FFFFFF
:doi-text: has no DOI yet: link:https://doi.org/{doi}[{doi}]
endif::[]
doi-link: https://doi.org/{doi}

0 comments on commit a1a993e

Please sign in to comment.