1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-10 21:01:57 +02:00

(v2.1.1.9251) fix colour on GitHub docs

This commit is contained in:
2025-04-21 16:04:01 +02:00
parent 4a336d040c
commit 6135805455
6 changed files with 32 additions and 28 deletions

View File

@ -658,9 +658,11 @@ if (files_changed()) {
# Update index.md and README.md -------------------------------------------
if (files_changed("man/microorganisms.Rd") | files_changed("man/antimicrobials.Rd") | files_changed("man/clinical_breakpoints.Rd") | files_changed("man/antibiogram.Rd")) {
usethis::ui_info("Update index.md")
usethis::ui_info("Rendering {usethis::ui_field('index.md')} and {usethis::ui_field('README.md')}")
suppressWarnings(rmarkdown::render("index.Rmd", quiet = TRUE))
suppressWarnings(rmarkdown::render("README.Rmd", quiet = TRUE))
unlink("index.html") # remove previews from folder
unlink("README.html")
}
# Finished ----------------------------------------------------------------