Skip to content

Commit

Permalink
Issue #268 (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebutts authored Apr 4, 2024
1 parent 5457e21 commit 9640d70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions R/render_docs.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ render_docs <- function(path = ".", verbose = FALSE, parallel = FALSE, freeze =
fs::file_delete(docs_files)
}

.add_gitignore("_quarto/", path = path)
.add_gitignore("!_quarto/_freeze/", path = path)
} else {
docs_dir <- fs::path_join(c(path, "docs"))
}
Expand Down
6 changes: 5 additions & 1 deletion R/setup_docs.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ setup_docs <- function(tool, path = ".", overwrite = FALSE) {
.add_rbuildignore("^docs$", path = path)
.add_rbuildignore("^altdoc$", path = path)
.add_gitignore("altdoc/freeze.rds", path = path)
if (tool == "quarto_website") .add_rbuildignore("^_quarto$", path = path)
if (tool == "quarto_website") {
.add_rbuildignore("^_quarto$", path = path)
.add_gitignore("_quarto/*", path = path)
.add_gitignore("!_quarto/_freeze/", path = path)
}

cli::cli_alert_info("Importing default settings file(s) to `altdoc/`")

Expand Down

0 comments on commit 9640d70

Please sign in to comment.