Skip to content

Commit

Permalink
Use Myst substitution extension to populate version in citation text
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Aug 17, 2023
1 parent 7e15b46 commit 70d2b61
Show file tree
Hide file tree
Showing 5 changed files with 315 additions and 183 deletions.
23 changes: 16 additions & 7 deletions doc/citing.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,21 @@ Please choose the appropriate citation depending on which you use.
An asterisk (`*`) indicates co-equal lead authorship (listed alphabetically).


### Version 1.0
### Latest version: {{ release }}

> Moon, T., Fisher, M., Harden, L., and T. Stafford (2021). QGreenland (v1.0.0)
> Moon, T. A., M. Fisher, T. Stafford, and A. Thurber (2023). QGreenland ({{ release }})
> [dataset], [National Snow and Ice Data Center](https://qgreenland.org/).
> *Fisher, M., *Stafford, T., Moon, T., and L. Harden (2021). QGreenland (v1.0.0)
> *Fisher, M., *Stafford, T., T. Moon, and A. Thurber (2023). QGreenland ({{ release }})
> [software], [National Snow and Ice Data Center](https://github.com/nsidc/qgreenland)

### Version 3.0

> Moon, T. A., M. Fisher, T. Stafford, and A. Thurber (2023). QGreenland (v3.0.0)
> [dataset], [National Snow and Ice Data Center](https://qgreenland.org/).
> *Fisher, M., *Stafford, T., T. Moon, and A. Thurber (2023). QGreenland (v3.0.0)
> [software], [National Snow and Ice Data Center](https://github.com/nsidc/qgreenland)

Expand All @@ -52,17 +61,17 @@ An asterisk (`*`) indicates co-equal lead authorship (listed alphabetically).
> Moon, T., Fisher, M., Harden, L., Simonoko, H., and T. Stafford (2022). QGreenland
> (v2.0.0) [dataset], [National Snow and Ice Data Center](https://qgreenland.org/).
> *Fisher, M., *Stafford, T., Moon, T., HArden, L., and H. Simonoko (2022). QGreenland
> *Fisher, M., *Stafford, T., Moon, T., Harden, L., and H. Simonoko (2022). QGreenland
> (v2.0.0) [software], [National Snow and Ice Data
> Center](https://github.com/nsidc/qgreenland)

### Version 3.0
### Version 1.0

> Moon, T. A., M. Fisher, T. Stafford, and A. Thurber (2023). QGreenland (v3.0.0)
> Moon, T., Fisher, M., Harden, L., and T. Stafford (2021). QGreenland (v1.0.0)
> [dataset], [National Snow and Ice Data Center](https://qgreenland.org/).
> *Fisher, M., *Stafford, T., T. Moon, and A. Thurber (2023). QGreenland (v3.0.0)
> *Fisher, M., *Stafford, T., Moon, T., and L. Harden (2021). QGreenland (v1.0.0)
> [software], [National Snow and Ice Data Center](https://github.com/nsidc/qgreenland)

Expand Down
6 changes: 6 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
# -- MyST options -------------------------------------------------

myst_heading_anchors = 3
myst_enable_extensions = [
"substitution",
]
myst_substitutions = {
"release": release,
}


# -- Options for HTML output -------------------------------------------------
Expand Down
Loading

0 comments on commit 70d2b61

Please sign in to comment.