diff --git a/src/docs/api/r.qmd b/src/docs/api/r.qmd index 328164eb..7697f4cd 100644 --- a/src/docs/api/r.qmd +++ b/src/docs/api/r.qmd @@ -11,10 +11,10 @@ The webR R API is provided via a pre-installed `webr` support package. library(rvest) files <- list.files(path="../../../packages/webr/man/", pattern="*.Rd", full.names=TRUE) for (f in files) { - capture.output(tools::Rd2HTML(f)) |> + capture.output(tools::Rd2HTML(f, standalone = FALSE)) |> paste(collapse = '\n') |> minimal_html() |> - html_elements(xpath="//*[contains(@class, 'container')]/*[position() >= 2]") |> + html_elements(xpath="//body") |> paste(collapse='') |> writeLines() }