Skip to content

Commit

Permalink
Delay check on bs version for building quarto articles (#2803)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo authored Oct 25, 2024
1 parent 8d9cba1 commit 4f5c10e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions R/build-quarto-articles.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
build_quarto_articles <- function(pkg = ".", article = NULL, quiet = TRUE) {
pkg <- as_pkgdown(pkg)
if (pkg$bs_version < 5) {
cli::cli_abort(c(
"Quarto articles require Bootstrap 5.",
"i" = "See details at {.url pkgdown.r-lib.org/articles/customise.html#getting-started}"),
call = NULL
)
}

qmds <- pkg$vignettes[pkg$vignettes$type == "qmd", ]
if (!is.null(article)) {
Expand All @@ -15,6 +8,13 @@ build_quarto_articles <- function(pkg = ".", article = NULL, quiet = TRUE) {
if (nrow(qmds) == 0) {
return()
}
if (pkg$bs_version < 5) {
cli::cli_abort(c(
"Quarto articles require Bootstrap 5.",
"i" = "See details at {.url pkgdown.r-lib.org/articles/customise.html#getting-started}"),
call = NULL
)
}
check_installed("quarto")
if (quarto::quarto_version() < "1.5") {
cli::cli_abort("Quarto articles require version 1.5 and above.", call = NULL)
Expand Down

0 comments on commit 4f5c10e

Please sign in to comment.