Skip to content

Commit 4ac2111

Browse files
committed
fix zenodo hyperlinks
1 parent 12480f9 commit 4ac2111

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: codecheck
22
Title: Helper Functions for CODECHECK Project
3-
Version: 0.13.0
3+
Version: 0.13.1
44
Authors@R:
55
c(person(given = "Stephen",
66
family = "Eglen",

R/utils_render_cert_md.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ add_repository_hyperlink <- function(md_content, repo_link) {
2222
repo_link <- paste0(CONFIG$HYPERLINKS[["gitlab"]], spec[["repo"]])
2323
paste0("[", spec[["repo"]], "](", repo_link, ")")
2424
},
25+
"zenodo" = {
26+
repo_link <- paste0(CONFIG$HYPERLINKS[["zenodo"]], spec[["repo"]])
27+
paste0("[", spec[["repo"]], "](", repo_link, ")")
28+
},
2529

2630
# Type is none of the above
2731
{

R/utils_render_register_json.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ add_repository_links_json <- function(register_table) {
1414
paste0(CONFIG$HYPERLINKS[["osf"]], spec[["repo"]])
1515
} else if (spec[["type"]] == "gitlab") {
1616
paste0(CONFIG$HYPERLINKS[["gitlab"]], spec[["repo"]])
17+
} else if (spec[["type"]] == "zenodo") {
18+
paste0(CONFIG$HYPERLINKS[["zenodo"]], spec[["repo"]])
1719
} else {
1820
repository
1921
}

inst/extdata/config.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ CONFIG$HYPERLINKS <- list(
8383
codecheck_issue = "https://github.com/codecheckers/register/issues/",
8484
zenodo_deposit = "https://zenodo.org/deposit/",
8585
CrossRef = "https://www.crossref.org",
86-
OpenAlex = "https://openalex.org"
86+
OpenAlex = "https://openalex.org",
87+
zenodo = "https://zenodo.org/records/"
8788
)
8889

8990
# Plural of venue subcategories

0 commit comments

Comments
 (0)