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

Rethrow yaml parsing error (add a clickable link to _pkgdown.yml) #2559

Merged
merged 13 commits into from
May 21, 2024

Conversation

olivroy
Copy link
Collaborator

@olivroy olivroy commented May 18, 2024

It may be better not to try to do too much?

Maybe this is sufficient?

See #2558 for rationale.

@olivroy olivroy mentioned this pull request May 18, 2024
@olivroy olivroy changed the title Rethrow yaml parsing error (alternative solution) Rethrow yaml parsing error (add a clickable link to _pkgdown.yml) May 19, 2024
DESCRIPTION Outdated Show resolved Hide resolved
R/package.R Outdated Show resolved Hide resolved
R/package.R Outdated Show resolved Hide resolved
R/package.R Outdated Show resolved Hide resolved
@@ -82,3 +82,16 @@ test_that("titles don't get autolinked code", {
rd <- rd_text("\\title{\\code{foo()}}", fragment = FALSE)
expect_equal(extract_title(rd), "<code>foo()</code>")
})

test_that("read_meta() errors gracefully if _pkgdown.yml failed to parse", {
pkg <- local_pkgdown_site()
Copy link
Member

Choose a reason for hiding this comment

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

This isn't quite right yet, but we're moving towards more inline tests, where possible.

Copy link
Collaborator Author

@olivroy olivroy May 21, 2024

Choose a reason for hiding this comment

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

Oh, I see! Let me know if you want me to do further adjustments

@hadley hadley merged commit 573fee6 into r-lib:main May 21, 2024
13 checks passed
SebKrantz pushed a commit to SebKrantz/pkgdown that referenced this pull request Jun 1, 2024
@olivroy olivroy deleted the rethrow-alt branch June 4, 2024 14:39
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.

None yet

3 participants