Skip to content

Commit

Permalink
Merge branch 'main' into examplesIf
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher authored Apr 5, 2024
2 parents 29b3cb8 + 9640d70 commit 42f8bee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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
3 changes: 2 additions & 1 deletion R/settings_quarto_website.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
fs::path_join(c(path, "_quarto/man")),
pattern = "\\.qmd$", full.names = TRUE)

fn_man <- gsub(".*_quarto.", "", fn_man)
# issue #266: add word boundary check
fn_man <- gsub(".*\\b_quarto.", "", fn_man)
fn_vignettes <- gsub(".*_quarto.", "", fn_vignettes)

yml <- paste(sidebar, collapse = "\n")
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 42f8bee

Please sign in to comment.