Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Feb 7, 2025
1 parent 51afdfa commit addb146
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 1 addition & 6 deletions R/import_readme.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@
}
}

if (tool == "quarto_website") {
tar_file <- fs::path_join(c(tar_dir, "index.md"))
} else {
tar_file <- fs::path_join(c(tar_dir, "README.md"))
}

tar_file <- fs::path_join(c(tar_dir, "README.md"))
src_file <- fs::path_join(c(src_dir, "README.md"))
fs::file_copy(src_file, tar_file, overwrite = TRUE)
.check_md_structure(tar_file)
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-render_docs.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ test_that("quarto: no error for basic workflow", {

### generate docs
install.packages(".", repos = NULL, type = "source")
fs::file_move("README.Rmd", "README.qmd") # special thing quarto
setup_docs("quarto_website")
expect_no_error(render_docs(verbose = .on_ci()))

Expand Down Expand Up @@ -190,7 +189,6 @@ test_that("quarto: autolink", {

### generate docs
install.packages(".", repos = NULL, type = "source")
fs::file_move("README.Rmd", "README.qmd") # special thing quarto
setup_docs("quarto_website")
expect_no_error(render_docs(verbose = .on_ci()))

Expand Down

0 comments on commit addb146

Please sign in to comment.