Skip to contents

This function checks for common issues in a Quarto website project directory. Currently, it finds:

  • Subfolders lacking index.qmd

  • .qmd files without a title in their YAML front matter Future versions will add more checks.

Usage

detect_malformed_quarto_project(root_dir)

Arguments

root_dir

Path to the root directory of the Quarto website project.

Value

A data.frame with columns: type, path, details

Examples

detect_malformed_quarto_project(tempdir())
#>                type                                                   path
#> 1 missing_index.qmd                                        /tmp/RtmpClqKEn
#> 2 missing_index.qmd /tmp/RtmpClqKEn/bslib-79a500313ebf7bc925c8d8479239b68a
#> 3 missing_index.qmd                                /tmp/RtmpClqKEn/downlit
#>                     details
#> 1 No index.qmd in subfolder
#> 2 No index.qmd in subfolder
#> 3 No index.qmd in subfolder