Skip to content

Commit

Permalink
cleanup docs/ more aggressively
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Nov 21, 2023
1 parent 86f65c6 commit 4292723
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/render_docs.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
#' }
render_docs <- function(path = ".", verbose = FALSE, parallel = FALSE) {

# delete the full `docs/` directory to avoid collisions
if (fs::dir_exists(.doc_path(path))) {
fs::dir_delete(.doc_path(path))
}

dir_altdoc <- fs::path_join(c(path, "altdoc"))
if (!fs::dir_exists(dir_altdoc) || length(fs::dir_ls(dir_altdoc)) == 0) {
cli::cli_abort("No settings file found in {dir_altdoc}. Consider running {.code setup_docs()}.")
Expand Down

0 comments on commit 4292723

Please sign in to comment.