diff --git a/.github/workflows/pkgdown.yml b/.github/workflows/pkgdown.yml index e35d848..31fdd13 100644 --- a/.github/workflows/pkgdown.yml +++ b/.github/workflows/pkgdown.yml @@ -81,7 +81,7 @@ jobs: name: val_results path: inst/validation/results - - name: Build site 🔧 + - name: Build site run: | # Pay the hadley tax: https://github.com/r-lib/roxygen2/issues/905 desc <- read.dcf("DESCRIPTION") @@ -98,6 +98,27 @@ jobs: pkgdown::build_site(new_process = FALSE) # otherwise errors are not logged shell: Rscript {0} + - name: Remove Quality Control vignete from Articles dropdown + run: | + # This removal is highly dependent on the pkgdown template, but we've tried to make the regexp patterns + # fairly restrictive to prevent deletions from happening if the template changes. If that were to happen, + # the QC vignette would reappear under Articles, which is annoying, but not the end of the world. + + # For reference, see https://regex101.com/ and https://stackoverflow.com/a/56927135 + PATTERN_QC_ITEM='^\s*.*\s*$' + PATTERN_DROPDOWN_WITH_ITEMS='(?s)