Skip to content

Commit

Permalink
Error if quarto with old bootstrap (#2797)
Browse files Browse the repository at this point in the history
Fixes #2795.
  • Loading branch information
jayhesselberth authored Oct 9, 2024
1 parent 0cb9d38 commit 71fd32c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/build-quarto-articles.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
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 Down

0 comments on commit 71fd32c

Please sign in to comment.