diff --git a/DESCRIPTION b/DESCRIPTION index 5e3548bb..86c49a07 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: sandpaper Title: Create and Curate Carpentries Lessons -Version: 0.16.10 +Version: 0.16.10.9000 Authors@R: c( person(given = "Robert", family = "Davey", diff --git a/NEWS.md b/NEWS.md index 2b1d8f7a..2369b4a3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,11 @@ +# sandpaper (development version) + +## BUG FIXES + +* The website preview feature which automatically opens a web browser after + running `build_lesson()` has been fixed to work with the latest version of + pkgdown (@Bisaloo, #627) + # sandpaper 0.16.10 (2024-11-11) ## NEW FEATURES diff --git a/R/build_site.R b/R/build_site.R index b0e90de5..63ac639f 100644 --- a/R/build_site.R +++ b/R/build_site.R @@ -164,7 +164,7 @@ build_site <- function(path = ".", quiet = !interactive(), preview = TRUE, overr # At the end, a sitemap is created with our aggregated pages. build_sitemap(pkg$dst_path, paths = html_pages$paths, quiet = quiet) - pkgdown::preview_site(pkg, "/", preview = preview) + pkgdown::preview_site(pkg, preview = preview) if (!quiet) { dst <- fs::path_rel(path = pkg$dst_path, start = path)