-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add advice to use usethis::edit_pkgdown_config()
#2419
Conversation
use pkgdown_config_href() when pkg is available. Recommend usethis::edit_pkgdown_config() otherwise.
expect_snapshot(build_favicons(pkg)), | ||
"Can't find package logo" | ||
expect_snapshot(error = TRUE, | ||
expect_output(build_favicons(pkg), "Building favicons") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reasons, cli_alert_*()
are not shown in snapshot tests, hence the expect_output()
here to capture the desired behavior. As you can see in the previous snapshot, there was nothing. #2470
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm. We should probably switch those to cli_inform()
, just for consistency, but that can be a separate PR.
expect_snapshot(build_favicons(pkg)), | ||
"Can't find package logo" | ||
expect_snapshot(error = TRUE, | ||
expect_output(build_favicons(pkg), "Building favicons") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm. We should probably switch those to cli_inform()
, just for consistency, but that can be a separate PR.
Thanks! |
If
pkg
is not available within the functionsAdded a couple of
call
to improve error messages as I saw them. Sorry the PR is not very focused. Sometimes it is hard to come back to it later...Also the many changes in snapshots are caused by the fact that
{.file }
quotes in non-interactive, whilecli::style_hyperlink()
doesn't.Addresses #2329