From 89e1c80a69c882a1a7871c0c5e9cd31587bd4418 Mon Sep 17 00:00:00 2001 From: "Zhian N. Kamvar" Date: Mon, 24 Oct 2022 10:41:43 -0700 Subject: [PATCH] update source url processing --- DESCRIPTION | 2 +- NEWS.md | 7 +++++++ R/utils-yaml.R | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index cfe752f60..046d8356e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: sandpaper Title: Create and Curate Carpentries Lessons -Version: 0.10.4 +Version: 0.10.5 Authors@R: c( person(given = "Zhian N.", family = "Kamvar", diff --git a/NEWS.md b/NEWS.md index a72dab0b2..8ecbf2d32 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,10 @@ +# sandpaper 0.10.5 + +## MISC + +* The the `source` config parameter will have the trailing `/` trimmed off when + passed to the site so that the URL does not have two consectutive slashes. + # sandpaper 0.10.4 BUG FIX diff --git a/R/utils-yaml.R b/R/utils-yaml.R index 4e7977a6e..3b94b082a 100644 --- a/R/utils-yaml.R +++ b/R/utils-yaml.R @@ -166,7 +166,7 @@ create_pkgdown_yaml <- function(path) { config = siQuote(path_config(path)), title = siQuote(usr$title), time = UTC_timestamp(Sys.time()), - source = siQuote(usr$source), + source = siQuote(sub("/$", "", usr$source)), branch = siQuote(usr$branch), contact = siQuote(usr$contact), # What carpentry are we dealing with?