Skip to content

Commit

Permalink
Update snapshot based on the change in references/assets
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Mar 12, 2024
1 parent 81a5c0e commit d47e982
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/build-reference-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
Error:
! All topics must be included in reference index
x Missing topics: c, e, and ?
i Either add to _pkgdown.yml or use @keywords internal
i Either add to 'pkgdown/_pkgdown.yml' or use @keywords internal

# errors well when a content entry is empty

i In index: 1.
Caused by error in `.f()`:
! Item 2 in section 1 is empty.
x Delete the empty line or add function name to reference in '_pkgdown.yml'.
x Delete the empty line or add function name to reference in 'pkgdown/_pkgdown.yml'.

# errors well when a content entry is not a character

Expand All @@ -71,7 +71,7 @@
i In index: 1.
Caused by error in `.f()`:
! Item 2 in section 1 must be a character.
x You might need to add '' around e.g. - 'N' or - 'off' to reference in '_pkgdown.yml'.
x You might need to add '' around e.g. - 'N' or - 'off' to reference in 'pkgdown/_pkgdown.yml'.

# errors well when a content entry refers to a not installed package

Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/check.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
Error in `check_pkgdown()`:
! All topics must be included in reference index
x Missing topics: ?
i Either add to _pkgdown.yml or use @keywords internal
i Either add to 'pkgdown/_pkgdown.yml' or use @keywords internal

# fails if article index incomplete

Code
check_pkgdown(pkg)
Condition
Error in `check_pkgdown()`:
! 2 vignettes missing from index in _pkgdown.yml: "articles/nested" and "width".
! 2 vignettes missing from index in '_pkgdown.yml': "articles/nested" and "width".

# informs if everything is ok

Code
check_pkgdown(pkg)
Message
v No problems found in _pkgdown.yml
v No problems found in 'pkgdown/_pkgdown.yml'

2 changes: 1 addition & 1 deletion tests/testthat/_snaps/render.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# check_bootswatch_theme() works

Can't find Bootswatch theme "paper" (template.bootswatch) for Bootstrap version "4" (template.bootstrap).
x Edit settings in '_pkgdown.yml'
x Edit settings in 'pkgdown/_pkgdown.yml'

# capture data_template()

Expand Down

0 comments on commit d47e982

Please sign in to comment.