Skip to content

Commit

Permalink
Merge pull request #353 from carpentries/fix-source-url
Browse files Browse the repository at this point in the history
update source url processing
  • Loading branch information
zkamvar authored Oct 24, 2022
2 parents 0abf2de + 89e1c80 commit cef110b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion R/utils-yaml.R
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit cef110b

Please sign in to comment.