diff --git a/R/sitrep.R b/R/sitrep.R index a79f54964..7d2bfa217 100644 --- a/R/sitrep.R +++ b/R/sitrep.R @@ -33,7 +33,7 @@ pkgdown_sitrep <- function(pkg = ".") { "!" = "{.emph Double-check the following URLs:}", " " = "{pkgdown_config_href({pkg$src_path})} contains URL {.url {pkg$meta['url']}}", " " = "{.file DESCRIPTION} contains URL{?s} {.url {desc_urls}}" - )) + )) } else { cli::cli_warn(c( "pkgdown situation report: {.emph {cli::col_red('configuration error')}}", diff --git a/R/utils-yaml.R b/R/utils-yaml.R index b10c2abc9..127d3b6fb 100644 --- a/R/utils-yaml.R +++ b/R/utils-yaml.R @@ -41,9 +41,9 @@ pkgdown_field <- function(pkg, fields, cfg = FALSE, fmt = FALSE) { if (cfg) { if (fmt) { - config_path <- pkgdown_config_href(pkg$src_path) + config_path <- cli::format_inline(pkgdown_config_href(pkg$src_path)) } else { - config_path <- cli::format_inline(pkgdown_config_relpath(pkg)) + config_path <- pkgdown_config_relpath(pkg) } paste0(flds, " in ", config_path)