tests/testthat/_snaps/build-redirects.md

build_redirect() works

Code
  build_redirect(c("old.html", "new.html#section"), 1, pkg = pkg)
Message
  Adding redirect from old.html to new.html#section.

build_redirect() errors if one entry is not right.

Code
  build_redirect(c("old.html"), 5, pkg)
Condition
  Error:
  ! redirects[[5]] must be a character vector of length 2.
  i Edit _pkgdown.yml to fix the problem.


hadley/staticdocs documentation built on May 4, 2024, 3:08 a.m.