Skip to content

Commit

Permalink
Fix deploy (#159)
Browse files Browse the repository at this point in the history
* remove roxygen

* tryout without merging into main

* fix index

* hopefully fix

* hopefully fix 2

* fix silly typo

* add package for file_exists

* finally hopefully fix index

* workflow to main
  • Loading branch information
StefanThoma authored May 2, 2024
1 parent eb10dcf commit c163820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ jobs:
pharmaverseadam
link
sessioninfo
roxygen2
- name: Install tinytex
run: quarto install tool tinytex
Expand Down
4 changes: 2 additions & 2 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ post_redirects <- paste0("/", slugs, " ", "/posts/", posts)
# function to extract post categories from index.qmd files
get_post_categories <- function(post) {
file <- here::here("posts", post) |> list.files(pattern = ".qmd", full.names = TRUE)
if (!fs::file_exists(file)) {
file <- here::here("posts", post) |> list.files(pattern = ".qmd", full.names = TRUE, recursive = TRUE)
if (is.null(file) || is.na(fs::file_exists(file)) || !fs::file_exists(file)) {
return(character(0))
}
file |>
Expand Down

0 comments on commit c163820

Please sign in to comment.