From c441ac9a5694f9ff71b8f0c128e392cf0501a090 Mon Sep 17 00:00:00 2001 From: Melissa Draper Date: Tue, 15 Sep 2026 14:22:08 -0700 Subject: [PATCH] Adjust tool version display for consistency with terms table --- config.toml | 5 ++-- data/tools.json | 36 ++++++++++++------------- layouts/shortcodes/tools.md | 2 +- layouts/shortcodes/unsupported-tools.md | 2 +- 4 files changed, 23 insertions(+), 22 deletions(-) diff --git a/config.toml b/config.toml index a9e81ab..1a8c49d 100644 --- a/config.toml +++ b/config.toml @@ -61,9 +61,10 @@ publishDir = "../website" repo = "codemeta.github.io" background = "img/pyramids.jpg" supported = [ - '3.0.0', - '2.0.0' + '3', + '2' ] + latest = "3.1" newslimit = 5 feeds = [ diff --git a/data/tools.json b/data/tools.json index 8f65178..131aa8f 100644 --- a/data/tools.json +++ b/data/tools.json @@ -2,7 +2,7 @@ { "name": "AutoCodemeta Generator", "language": "JavaScript", - "versions": ["3.0.0"], + "versions": ["3"], "maintainers": [ {"name": "dgarijo", "url": "https://github.com/dgarijo"} ], @@ -13,7 +13,7 @@ { "name": "Bolognese", "language": "Ruby", - "versions": ["1.0.0", "2.0.0"], + "versions": ["1", "2"], "maintainers": [ {"name": "mfenner", "url": "https://github.com/mfenner"} ], @@ -24,7 +24,7 @@ { "name": "cff-converter", "language": "Python", - "versions": ["2.0.0"], + "versions": ["2"], "maintainers": [ {"name": "jspaaks", "url": "https://github.com/jspaaks"} ], @@ -35,7 +35,7 @@ { "name": "CodeMeta file generator", "language": "Ruby", - "versions": ["0.1.0"], + "versions": ["0.1"], "maintainers": [ {"name": "arfon", "url": "https://github.com/arfon"} ], @@ -46,7 +46,7 @@ { "name": "CodeMeta generator", "language": "JavaScript", - "versions": ["2.0.0", "3.0.0"], + "versions": ["2", "3"], "maintainers": [ {"name": "ProgVal", "url": "https://github.com/ProgVal"} ], @@ -57,7 +57,7 @@ { "name": "codemeta-harvester", "language": "POSIX Shell", - "versions": ["2.0.0", "3.0.0"], + "versions": ["2", "3"], "maintainers": [ {"name": "proycon", "url": "https://github.com/proycon"} ], @@ -68,7 +68,7 @@ { "name": "codemeta-server", "language": "Python", - "versions": ["2.0.0", "3.0.0"], + "versions": ["2", "3"], "maintainers": [ {"name": "proycon", "url": "https://github.com/proycon"} ], @@ -79,7 +79,7 @@ { "name": "codemetapy", "language": "Python", - "versions": ["2.0.0", "3.0.0"], + "versions": ["2", "3"], "maintainers": [ {"name": "proycon", "url": "https://github.com/proycon"} ], @@ -90,7 +90,7 @@ { "name": "codemetar", "language": "R", - "versions": ["2.0.0"], + "versions": ["2"], "maintainers": [ {"name": "cboettig", "url": "https://github.com/cboettig"} ], @@ -101,7 +101,7 @@ { "name": "FACILE-RS", "language": "Python", - "versions": ["2.0.0"], + "versions": ["2"], "maintainers": [ {"name": "MarieHouillon", "url": "https://github.com/MarieHouillon"} ], @@ -112,7 +112,7 @@ { "name": "Somef", "language": "Python", - "versions": ["3.0.0"], + "versions": ["3"], "maintainers": [ {"name": "OEG developers"}, {"name": "dgarijo", "url": "https://github.com/dgarijo"} @@ -124,7 +124,7 @@ { "name": "tributors", "language": "Python", - "versions": ["2.0.0"], + "versions": ["2"], "maintainers": [ {"name": "vsoch", "url": "https://github.com/vsoch"} ], @@ -135,7 +135,7 @@ { "name": "Fidgit", "language": "Ruby", - "versions": ["0.1.0"], + "versions": ["0.1"], "maintainers": [ {"name": "Arfon Smith"}, {"name": "Kaitlin Thaney"}, @@ -148,7 +148,7 @@ { "name": "Software Heritage", "language": "Python", - "versions": ["2.0.0"], + "versions": ["2"], "maintainers": [ {"name": "SWH team"} ], @@ -159,7 +159,7 @@ { "name": "Codefair-app", "language": "Vue", - "versions": ["3.0.0"], + "versions": ["3"], "maintainers": [ {"name": "FAIR Data Innovations Hub", "url": "https://github.com/fairdataihub"} ], @@ -170,7 +170,7 @@ { "name": "Contributors Metadata Check", "language": "Python", - "versions": ["2.0.0", "3.0.0"], + "versions": ["2", "3"], "maintainers": [ {"name": "vuillaut", "url": "https://github.com/vuillaut"} ], @@ -181,7 +181,7 @@ { "name": "codemeta2zenodo", "language": "GitHub Action", - "versions": ["2.0.0", "3.0.0"], + "versions": ["2", "3"], "maintainers": [ {"name": "escape2020", "url": "https://github.com/escape2020"} ], @@ -192,7 +192,7 @@ { "name": "eossr", "language": "Python", - "versions": ["2.0.0", "3.0.0"], + "versions": ["2", "3"], "maintainers": [ {"name": "vuillaut", "url": "https://github.com/vuillaut"} ], diff --git a/layouts/shortcodes/tools.md b/layouts/shortcodes/tools.md index 5d75072..bdada7f 100644 --- a/layouts/shortcodes/tools.md +++ b/layouts/shortcodes/tools.md @@ -29,7 +29,7 @@ {{ .language }} {{ $icnt := sub (.maintainers | len) 1 }}{{- range $i, $mtnrs := .maintainers }}{{ $mtnr := index $mtnrs }}{{ if $mtnr.url }}{{ $mtnr.name }}{{ else }}{{ $mtnr.name }}{{ end }}{{ if lt $i $icnt }},{{end}}
{{ end -}} {{ if in .versions $latest | not }} ⚠️ {{ end }} - {{ delimit .versions ", " }} + {{ if .versions }}v{{ end }}{{ delimit .versions ", v" }} {{ .description }} {{ end -}} diff --git a/layouts/shortcodes/unsupported-tools.md b/layouts/shortcodes/unsupported-tools.md index 69bd5e5..e181658 100644 --- a/layouts/shortcodes/unsupported-tools.md +++ b/layouts/shortcodes/unsupported-tools.md @@ -21,7 +21,7 @@ {{ .language }} {{ $icnt := sub (.categories | len) 1 }} {{ range $i, $cat := .categories }}{{ $cat }}{{ if lt $i $icnt }},{{end}}
{{ end -}} {{ $icnt := sub (.maintainers | len) 1 }}{{- range $i, $mtnrs := .maintainers }}{{ $mtnr := index $mtnrs }}{{ if $mtnr.url }}{{ $mtnr.name }}{{ else }}{{ $mtnr.name }}{{ end }}{{ if lt $i $icnt }},{{end}}
{{ end -}} - {{ delimit .versions ", " }} + {{ if .versions }}v{{ end }}{{ delimit .versions ", v" }} {{ .description }} {{ end -}}