Gestion petit MIA-PS
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Louis 2025-07-08 14:48:27 +02:00
parent 79f3c39901
commit 69140abcf1

View file

@ -28,18 +28,19 @@ format:
```{r} ```{r}
#| output: asis #| output: asis
img_files <- fs::dir_ls("images", glob="*") img_files <- fs::dir_ls("images", glob = "*")
back_files <- fs::dir_ls("background", glob="*") back_files <- fs::dir_ls("background", glob = "*")
quotes_list <- readLines("quotes.txt") quotes_list <- readLines("quotes.txt")
for (img in img_files) { for (img in img_files) {
for (back in back_files){ for (back in back_files) {
for (quote in quotes_list){ for (quote in quotes_list) {
cat("# ", quote, "{background-image='",back,"'}", "\n", cat("# ", quote, " {background-image='", back, "' background-repeat='", ifelse(back == "background/miaps.png", "repeat", "no-repeat"), "' background-size='", ifelse(back == "background/miaps.png", "400px", "100%"), "'}", "\n",
glue::glue("![]({img})"), "{fig-align='center' .r-stretch}\n\n", glue::glue("![]({img})"), "{fig-align='center' .r-stretch}\n\n",
sep = "") sep = ""
)
} }
} }
} }