This updates the chapter list in the _bookdown.yml or _quarto.yml Default behavior is to sort the chapters but have index come first.

update_chapters(path = ".", ignore_files = NULL)

Arguments

path

What's the file path to where we are updating chapters?

ignore_files

Are there qmd or rmd files that are not chapters and should be ignored?

Value

an updated _bookdown.yml or _quarto.yml with all chapters.

Examples

if (FALSE) { # \dontrun{

update_chapters()

} # }