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] 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 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)