Skip to content

Commit

Permalink
Fix test site path names
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeLydeamore committed Aug 28, 2023
1 parent d410ff2 commit 8cc5d7c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/render_template.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ render_template <- function(file, template_folder, target_path, output_name = NA
output_name <- file
}

message("Creating ", file.path(target_path2, output_name))
message("Creating ", file.path(target_path, output_name))
template <- system.file(file.path("quarto", "templates", template_folder, file),
package = "condensr"
)
Expand Down
1 change: 0 additions & 1 deletion inst/quarto/templates/project/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ format:
html:
toc: true
mainfont: 'sans-serif'

2 changes: 1 addition & 1 deletion man/create_staff_member_page.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-site-generator.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test_that("staff template appears", {
site_dir = test_site_path
)

expect_true(file.exists(file.path(test_site_path, "/staff_example-id.Rmd")))
expect_true(file.exists(file.path(test_site_path, "staff//example-id/index.qmd")))
})

test_that("staff inputs are valid", {
Expand Down

0 comments on commit 8cc5d7c

Please sign in to comment.