Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Mar 18, 2024
1 parent 2337dd9 commit 8104d69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/sitrep.R
Original file line number Diff line number Diff line change
Expand Up @@ -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')}}",
Expand Down
4 changes: 2 additions & 2 deletions R/utils-yaml.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8104d69

Please sign in to comment.