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)
an updated _bookdown.yml or _quarto.yml with all chapters.
if (FALSE) { # \dontrun{
update_chapters()
} # }