Skip to content

Commit 26659f9

Browse files
committed
Disable pkgdown::build_llm_docs() by default
1 parent 53505e8 commit 26659f9

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# rdev 1.15.3
22

3-
* Minor updates
3+
* Updated `use_rdev_pkgdown()` to disable the new `pkgdown::build_llm_docs()` by default (update `use_rdev_pkgdown()`)
44

55
# rdev 1.15.2
66

R/setup.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,9 @@ use_analysis_package <- function(use_quarto = TRUE, prompt = FALSE) {
685685
#' `pkgdown` to fix rendering of GitHub-style
686686
# nolint next: line_length_linter.
687687
#' [task lists](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/about-task-lists),
688-
#' adds the GitHub Pages URL, and enables
689-
#' [`template.light-switch`](https://pkgdown.r-lib.org/articles/customise.html#light-switch).
688+
#' adds the GitHub Pages URL, enables
689+
#' [`template.light-switch`](https://pkgdown.r-lib.org/articles/customise.html#light-switch), and
690+
#' disables [pkgdown::build_llm_docs()].
690691
#'
691692
#' @inheritParams usethis::use_pkgdown
692693
#'
@@ -700,6 +701,7 @@ use_rdev_pkgdown <- function(config_file = "_pkgdown.yml", destdir = "docs") {
700701
urls <- desc::desc_get_urls()
701702
pkg$url <- ifelse(!is.na(urls[2]), urls[1], ".")
702703
pkg$template <- append(pkg$template, list(`light-switch` = TRUE))
704+
pkg$`llm-docs` <- FALSE
703705
# workaround for RStudio race condition
704706
if (rlang::is_interactive()) {
705707
writeLines(paste0("\nupdating ", config_file, "..."), sep = "")

R/upkeep.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ upkeep_checklist <- function(last_upkeep = last_upkeep_year()) {
9595
bullets,
9696
"### 2024",
9797
"",
98-
todo("`rdev::use_rdev_pkgdown()`", ptype == "rdev"),
9998
todo("`rdev::use_analysis_package(use_quarto = FALSE)`", ptype == "analysis"),
10099
""
101100
)
@@ -109,6 +108,7 @@ upkeep_checklist <- function(last_upkeep = last_upkeep_year()) {
109108
todo("`rdev::use_gitattributes()`"),
110109
todo("`rdev::use_analysis_package(use_quarto = TRUE)`", ptype == "quarto"),
111110
todo("`rdev::use_codecov()`", length(fs::dir_ls("R")) > 1),
111+
todo("`rdev::use_rdev_pkgdown()", ptype == "rdev"),
112112
""
113113
)
114114
}

_pkgdown.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ url: https://jabenninghoff.github.io/rdev/
22
template:
33
bootstrap: 5
44
light-switch: true
5-
65
llm-docs: false
76

87
reference:

man/use_rdev_pkgdown.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-setup.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ test_that("use_rdev_pkgdown adds customizations", {
350350
expect_true(fs::file_exists("pkgdown/extra.css"))
351351
expect_identical(pkg$template$bootstrap, 5L)
352352
expect_true(pkg$template$`light-switch`)
353+
expect_false(pkg$`llm-docs`)
353354
})
354355

355356
test_that("use_rdev_pkgdown pauses when running interactively", {

tests/testthat/test-upkeep.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ test_that("upkeep_checklist is expected length for last upkeep year", {
6969
expect_length(upkeep_checklist(2022), base_length - 6)
7070
expect_length(upkeep_checklist(2023), base_length - 11)
7171
expect_length(upkeep_checklist(2024), base_length - 16)
72-
expect_length(upkeep_checklist(2025), base_length - 20)
72+
expect_length(upkeep_checklist(2025), base_length - 19)
7373
expect_length(upkeep_checklist(2026), base_length - 25)
7474
})

0 commit comments

Comments
 (0)