Skip to content

Commit 43c14ce

Browse files
Merge branch 'main' into quarto-regression-test
2 parents 36e6e19 + 824ab4a commit 43c14ce

File tree

16 files changed

+141
-229
lines changed

16 files changed

+141
-229
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: pkgdown
22
Title: Make Static HTML Documentation for a Package
3-
Version: 2.1.1.9000
3+
Version: 2.1.3.9000
44
Authors@R: c(
55
person("Hadley", "Wickham", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-4757-117X")),
@@ -70,9 +70,9 @@ Config/Needs/website: usethis, servr
7070
Config/potools/style: explicit
7171
Config/testthat/edition: 3
7272
Config/testthat/parallel: true
73-
Config/testthat/start-first: build-article, build-quarto-article, build-reference
73+
Config/testthat/start-first: build-article, build-quarto-article, build-reference, build
7474
Encoding: UTF-8
7575
Roxygen: list(markdown = TRUE)
76-
RoxygenNote: 7.3.2.9000
7776
SystemRequirements: pandoc
7877
Remotes: quarto-dev/quarto-r@libpaths
78+
RoxygenNote: 7.3.2

NEWS.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
# pkgdown (development version)
22

3-
* Option `pkgdown.internet` was removed because CDN file caching now requires an internet connection.
4-
* Support for math rendering using katex and mathjax was improved and now includes necessary components using CDN (#2704).
5-
* Articles (i.e., Rmarkdown/Quarto documents in `vignettes/articles`, created by `usethis::use_article()` and available on pkgdown sites but not included in a built package) have improved test cases (thanks to @venpopov and @ethanbass).
3+
* `build_site()` gained a `quiet` argument, which is propagated to other functions
4+
(e.g., `build_articles()`) and is useful for debugging build errors on GH actions.
5+
6+
# pkgdown 2.1.3
7+
8+
* Menu items can now set `class` and `id`.
9+
10+
# pkgdown 2.1.2
11+
12+
## New features
13+
614
* ROR IDs in `DESCRIPTION` are transformed into icons, similar to ORCID IDs. (#2850)
15+
* New `clean_site(force = TRUE)` for cleaning of `docs/` regardless of whether it was built by pkgdown (#2827).
16+
* The language of the site is set from the first `Language:` in the `DESCRIPTION` if it is available and no other language is specified (@jonthegeek, #2808).
17+
18+
## Bug fixes and minor improvements
19+
20+
* Option `pkgdown.internet` was removed because CDN file caching now requires an internet connection.
21+
* Math rendering using katex and mathjax was improved and now includes necessary components using CDN (#2704).
22+
* Articles have improved test cases (thanks to @venpopov and @ethanbass).
723
* Sass variables from bslib are now used to set the navbar background color: `$navbar-bg` for the background color in light and dark mode, or `$navbar-light-bg` and `$navbar-dark-bg` for individually controlling light and dark mode background colors. `pkgdown-navbar-bg` and `$pkgdown-navbar-bg-dark` both still provide pkgdown-specific overrides (@gadenbuie, #2847).
824
* Code repositories hosted on Codeberg are now supported in the `BugReports` and `URL` fields (@nfrerebeau, #2843).
9-
* Articles (i.e., Rmd/qmd files in `vignettes/articles`, created by `usethis::use_article()` and available on pkgdown sites but not included in a built package) have improved test cases (thanks to @venpopov and @ethanbass).
10-
* New `clean_site(force = TRUE)` for cleaning of `docs/` regardless of whether it was built by pkgdown (#2827).
1125
* Links to favicons in page headers were updated to reflect changes to https://realfavicongenerator.net/ (#2804). Favicons should be re-generated by manually removing the `pkgdown/favicon` directory and then running `pkgdown::build_favicons()`.
1226
* Reinstate Rd macro loading, which was accidentally disabled in v2.1.1 (#2782).
13-
* The language of the site is set from the first `Language:` in the `DESCRIPTION` if it is available and no other language is specified (@jonthegeek, #2808).
1427

1528
# pkgdown 2.1.1
1629

R/build.R

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@
301301
#' in the current process affects the build process.
302302
#' @param install If `TRUE`, will install the package in a temporary library
303303
#' so it is available for vignettes.
304+
#' @param quiet If `FALSE`, generate build messages for build functions that
305+
#' take `quiet` arguments.
304306
#' @export
305307
#' @examples
306308
#' \dontrun{
@@ -318,7 +320,8 @@ build_site <- function(
318320
preview = NA,
319321
devel = FALSE,
320322
new_process = !devel,
321-
install = !devel
323+
install = !devel,
324+
quiet = TRUE
322325
) {
323326
pkg <- as_pkgdown(pkg, override = override)
324327
check_bool(devel)
@@ -352,7 +355,8 @@ build_site <- function(
352355
lazy = lazy,
353356
override = override,
354357
preview = preview,
355-
devel = devel
358+
devel = devel,
359+
quiet = quiet
356360
)
357361
} else {
358362
build_site_local(
@@ -363,7 +367,8 @@ build_site <- function(
363367
lazy = lazy,
364368
override = override,
365369
preview = preview,
366-
devel = devel
370+
devel = devel,
371+
quiet = quiet
367372
)
368373
}
369374
}
@@ -376,7 +381,8 @@ build_site_external <- function(
376381
lazy = FALSE,
377382
override = list(),
378383
preview = NA,
379-
devel = TRUE
384+
devel = TRUE,
385+
quiet = TRUE
380386
) {
381387
pkg <- as_pkgdown(pkg, override = override)
382388
args <- list(
@@ -390,6 +396,7 @@ build_site_external <- function(
390396
preview = FALSE,
391397
new_process = FALSE,
392398
devel = devel,
399+
quiet = quiet,
393400
cli_colors = cli::num_ansi_colors(),
394401
hyperlinks = cli::ansi_has_hyperlink_support()
395402
)
@@ -422,7 +429,8 @@ build_site_local <- function(
422429
lazy = FALSE,
423430
override = list(),
424431
preview = NA,
425-
devel = TRUE
432+
devel = TRUE,
433+
quiet = TRUE
426434
) {
427435
pkg <- section_init(pkg, override = override)
428436

@@ -438,7 +446,7 @@ build_site_local <- function(
438446
init_site(pkg, override)
439447
}
440448

441-
build_home(pkg, override = override, preview = FALSE)
449+
build_home(pkg, override = override, quiet = quiet, preview = FALSE)
442450
build_reference(
443451
pkg,
444452
lazy = lazy,
@@ -449,7 +457,13 @@ build_site_local <- function(
449457
preview = FALSE,
450458
devel = devel
451459
)
452-
build_articles(pkg, lazy = lazy, override = override, preview = FALSE)
460+
build_articles(
461+
pkg,
462+
lazy = lazy,
463+
override = override,
464+
quiet = quiet,
465+
preview = FALSE
466+
)
453467
build_tutorials(pkg, override = override, preview = FALSE)
454468
build_news(pkg, override = override, preview = FALSE)
455469
build_sitemap(pkg)

R/navbar-menu.R

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,22 @@ menu_submenu <- function(text, menu, icon = NULL, label = NULL, id = NULL) {
1515
))
1616
}
1717
}
18-
menu_link <- function(text, href, target = NULL) {
19-
purrr::compact(list(text = text, href = href, target = target))
18+
menu_link <- function(
19+
text,
20+
href,
21+
target = NULL,
22+
class = NULL,
23+
id = NULL,
24+
title = NULL
25+
) {
26+
purrr::compact(list(
27+
text = text,
28+
href = href,
29+
target = target,
30+
class = class,
31+
id = id,
32+
title = title
33+
))
2034
}
2135
menu_links <- function(text, href) {
2236
purrr::map2(text, href, menu_link)
@@ -151,11 +165,14 @@ navbar_html_menu <- function(
151165
}
152166

153167
navbar_html_link <- function(x, menu_depth = 0) {
168+
base_class <- if (menu_depth == 0) "nav-link" else "dropdown-item"
154169
html_tag(
155170
"a",
156-
class = if (menu_depth == 0) "nav-link" else "dropdown-item",
171+
class = paste0(c(base_class, x$class), collapse = " "),
172+
id = x$id,
157173
href = x$href,
158174
target = x$target,
175+
title = x$title,
159176
"aria-label" = x$`aria-label`,
160177
navbar_html_text(x)
161178
)

air.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[format]
2+
skip = ["tribble"]

cran-comments.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@
44

55
## revdepcheck results
66

7-
We checked 144 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
8-
9-
* We saw 0 new problems
10-
* We failed to check 3 packages: clusttree, multinma, and scDiffCom
7+
This was a very minor addition, so I did not check revdeps.

man/build_site.Rd

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

revdep/README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,2 @@
11
# Revdeps
22

3-
## Failed to check (2)
4-
5-
|package |version |error |warning |note |
6-
|:--------|:-------|:-----|:-------|:----|
7-
|bayesCT |0.99.3 |1 | | |
8-
|multinma |0.7.1 |1 | | |
9-
10-
## New problems (1)
11-
12-
|package |version |error |warning |note |
13-
|:----------|:-------|:-----|:-------|:----|
14-
|[preferably](problems.md#preferably)|0.4.1 | |__+1__ | |
15-

revdep/cran.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
## revdepcheck results
22

3-
We checked 144 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
3+
We checked 156 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
44

5-
* We saw 1 new problems
6-
* We failed to check 2 packages
5+
* We saw 0 new problems
6+
* We failed to check 0 packages
77

8-
Issues with CRAN packages are summarised below.
9-
10-
### New problems
11-
(This reports the first line of each new failure)
12-
13-
* preferably
14-
checking whether package ‘preferably’ can be installed ... WARNING
15-
I have submitted a patch at https://github.com/amirmasoudabdol/preferably/pull/19.
16-
17-
### Failed to check
18-
19-
* bayesCT (NA)
20-
* multinma (NA)

0 commit comments

Comments
 (0)