Skip to content

Commit

Permalink
Merge pull request #627 from Bisaloo/fix-pkgdown-preview
Browse files Browse the repository at this point in the history
Fix website preview
  • Loading branch information
froggleston authored Dec 4, 2024
2 parents 69aaefe + c8e0adb commit 6d995c8
Show file tree
Hide file tree
Showing 3 changed files with 10 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.16.10
Version: 0.16.10.9000
Authors@R: c(
person(given = "Robert",
family = "Davey",
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion R/build_site.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6d995c8

Please sign in to comment.