Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Mar 12, 2024
1 parent 3c4d8f1 commit 6936a75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ write_if_different <- function(pkg, contents, path, quiet = FALSE, check = TRUE)
}

if (!quiet) {
cli::cli_inform("Writing {dst_path(path)}")
href <- paste0("ide:run:pkgdown::preview_page('", path_rel(full_path, pkg$dst_path), "')")
cli::cli_inform("Writing {cli::style_hyperlink(dst_path(path), href)}")
}

write_lines(contents, path = full_path)
Expand Down

0 comments on commit 6936a75

Please sign in to comment.