From 71fd32ce95f17b379e57e7e33f2294bc034727fd Mon Sep 17 00:00:00 2001 From: Jay Hesselberth Date: Wed, 9 Oct 2024 08:52:43 -0600 Subject: [PATCH] Error if quarto with old bootstrap (#2797) Fixes #2795. --- R/build-quarto-articles.R | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/R/build-quarto-articles.R b/R/build-quarto-articles.R index 806297641..5df7ab63d 100644 --- a/R/build-quarto-articles.R +++ b/R/build-quarto-articles.R @@ -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)) {