Resource detection is broken for custom format using an overwrite of theme
argument
#2493
Labels
bug
an unexpected problem or unintended behavior
theme
argument
#2493
From r-lib/pkgdown#2319 cc @gadenbuie
And you'll have an issue
This is because
find_external_resources()
parsed the YAML front matter to do some resource detectiontheme
for bslib resource handling, and we usedresolve_theme()
resolve_theme()
was made for handling bslib compatibletheme
argument and not custom ones.We should probably use a
tryCatch()
indiscover_rmd_resources()
because ifresolve_theme()
errors, this means this is not a bslib theme for sure.The text was updated successfully, but these errors were encountered: