-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update tests and snapshots for cli outputs
need to check snapshots carefully
- Loading branch information
1 parent
f417002
commit 4764286
Showing
63 changed files
with
1,632 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,116 @@ | ||
# warns about missing images | ||
# links to man/figures are automatically relocated | ||
|
||
Code | ||
copy_figures(pkg) | ||
|
||
--- | ||
|
||
Code | ||
build_articles(pkg, lazy = FALSE) | ||
|
||
# warns about missing images [plain] | ||
|
||
Code | ||
build_articles(pkg) | ||
Message | ||
-- Building articles -- | ||
i Writing articles/index.html | ||
i Reading vignettes/html-vignette.Rmd | ||
i Writing articles/html-vignette.html | ||
Condition | ||
Warning: | ||
Missing images in 'vignettes/html-vignette.Rmd': 'foo.png' | ||
i pkgdown can only use images in 'man/figures' and 'vignettes' | ||
|
||
# warns about missing images [ansi] | ||
|
||
Code | ||
build_articles(pkg) | ||
Condition | ||
[1m[33mWarning[39m:[22m | ||
[1m[22mMissing images in [34mvignettes/html-vignette.Rmd[39m: [34mfoo.png[39m | ||
[36mi[39m pkgdown can only use images in [34mman/figures[39m and [34mvignettes[39m | ||
|
||
# warns about missing images [unicode] | ||
|
||
Code | ||
build_articles(pkg) | ||
Condition | ||
Warning: | ||
Missing images in 'vignettes/html-vignette.Rmd': 'foo.png' | ||
ℹ pkgdown can only use images in 'man/figures' and 'vignettes' | ||
|
||
# warns about missing images [fancy] | ||
|
||
Code | ||
build_articles(pkg) | ||
Condition | ||
[1m[33mWarning[39m:[22m | ||
[1m[22mMissing images in [34mvignettes/html-vignette.Rmd[39m: [34mfoo.png[39m | ||
[36mℹ[39m pkgdown can only use images in [34mman/figures[39m and [34mvignettes[39m | ||
|
||
# articles don't include header-attrs.js script | ||
|
||
Code | ||
path <- build_article("standard", pkg) | ||
|
||
# can build article that uses html_vignette | ||
|
||
Code | ||
expect_error(build_article("html-vignette", pkg), NA) | ||
|
||
# can override html_document() options | ||
|
||
Code | ||
path <- build_article("html-document", pkg) | ||
|
||
# html widgets get needed css/js | ||
|
||
Code | ||
path <- build_article("widget", pkg) | ||
|
||
# can override options with _output.yml | ||
|
||
Code | ||
path <- build_article("html-document", pkg) | ||
|
||
# can set width | ||
|
||
Code | ||
path <- build_article("width", pkg) | ||
|
||
# finds external resources referenced by R code in the article html | ||
|
||
Code | ||
path <- build_article("resources", pkg) | ||
|
||
# BS5 article laid out correctly with and without TOC | ||
|
||
Code | ||
init_site(pkg) | ||
|
||
--- | ||
|
||
Code | ||
toc_true_path <- build_article("standard", pkg) | ||
|
||
--- | ||
|
||
Code | ||
toc_false_path <- build_article("toc-false", pkg) | ||
|
||
# articles in vignettes/articles/ are unnested into articles/ | ||
|
||
Code | ||
path <- build_article("articles/nested", pkg) | ||
|
||
--- | ||
|
||
Code | ||
build_redirects(pkg) | ||
|
||
# pkgdown deps are included only once in articles | ||
|
||
Code | ||
init_site(pkg) | ||
|
||
--- | ||
|
||
Code | ||
path <- build_article("html-deps", pkg) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# a CNAME record is built if a url exists in metadata | ||
|
||
Code | ||
build_github_pages(pkg) | ||
|
Oops, something went wrong.