From 22291fdfb9fe2a303dca3ccd3762dbedaeb6d8ac Mon Sep 17 00:00:00 2001 From: Hugo Gruson <10783929+Bisaloo@users.noreply.github.com> Date: Mon, 2 Dec 2024 13:06:22 +0100 Subject: [PATCH 1/3] Fix website preview following upstream changes in https://github.com/r-lib/pkgdown/pull/2650 --- R/build_site.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/build_site.R b/R/build_site.R index b0e90de5e..63ac639f6 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) From 21e122b94f7748e67949b499170ae639221edeb9 Mon Sep 17 00:00:00 2001 From: Hugo Gruson <10783929+Bisaloo@users.noreply.github.com> Date: Mon, 2 Dec 2024 13:15:53 +0100 Subject: [PATCH 2/3] Increment version number to 0.16.10.9000 --- DESCRIPTION | 2 +- NEWS.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 5e3548bbd..86c49a072 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 2b1d8f7ad..b46fb40ec 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,5 @@ +# sandpaper (development version) + # sandpaper 0.16.10 (2024-11-11) ## NEW FEATURES From c8e0adb87d7be547f17e3e57b2668a25f33d62d7 Mon Sep 17 00:00:00 2001 From: Hugo Gruson <10783929+Bisaloo@users.noreply.github.com> Date: Mon, 2 Dec 2024 13:17:49 +0100 Subject: [PATCH 3/3] Add NEWS bullet --- NEWS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEWS.md b/NEWS.md index b46fb40ec..2369b4a37 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +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