Skip to content
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

Tweaks in error chaining and path display #2403

Merged
merged 5 commits into from
Mar 11, 2024
Merged

Tweaks in error chaining and path display #2403

merged 5 commits into from
Mar 11, 2024

Conversation

olivroy
Copy link
Collaborator

@olivroy olivroy commented Feb 20, 2024

In current dev, the link created by check_pkgdown() if success was invalid if using check_pkgdown("C:/users/path/to/package/"). This PR fixes it as well as doing some touchups on the cli conversion.

Tweaks to output of check_pkgdown(). I used a new helper function to ensure that check_pkgdown() works if you provide pkg.

Currently, it didn't work as expected. Also added some chaining, so that it would display Error in check_pkgdown() instead of Error in check_missing_topics().

Also took advantage of cli inline markup for {.pkg}

FWIW, I am testing this with r-lib/devtools#2561 and it is working pretty well!

Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Do you think that this is worth a news bullet?

@olivroy
Copy link
Collaborator Author

olivroy commented Mar 11, 2024

Sure, what about this:

* `check_pkgdown()` now provides a clickable hyperlink to your pkgdown config file (@olivroy, #2403).

@hadley
Copy link
Member

hadley commented Mar 11, 2024

Hmmm, that seems so minor it's probably not worth a bullet. But folks will appreciate it 😄

@hadley hadley merged commit 504d019 into r-lib:main Mar 11, 2024
13 checks passed
@olivroy olivroy deleted the tweaks branch March 11, 2024 15:35
SebKrantz pushed a commit to SebKrantz/pkgdown that referenced this pull request Jun 1, 2024
* cli fixes
* Fix chaining in `check_pkgdown()` + add hyperlink to `_pkgdown.yml` in error message.
* Actually show snapshot by using `cli_inform()` instead of `cli_alert_success()`.
* Remove unrelated changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants