Skip to content

Commit

Permalink
docs(wiki): tweak ordering of the table contents
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Apr 29, 2024
1 parent 57ce4c8 commit b8df6bf
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build/reports/wiki_home.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ df_definitions <- fs::dir_ls(
path = "bakefiles",
regexp = r"(.+\.docker-bake.json$)"
) |>
stringr::str_sort(decreasing = TRUE) |>
# Move extra to the end
(\(x) {
cond <- stringr::str_detect(x, "extra")
c(x[!cond], x[cond])
})() |>
tibble::tibble(file = _) |>
dplyr::arrange(
stringr::str_extract(file, r"(\d+\.\d+\.\d+)") |>
numeric_version(strict = FALSE) |>
dplyr::desc()
) |>
dplyr::pull(file) |>
purrr::map(.read_bakefile) |>
purrr::list_rbind() |>
dplyr::mutate(
Expand Down Expand Up @@ -172,7 +173,7 @@ if (isTRUE(nrow(df_past) > 0)) {
cat("(Definition files are not available for these images in current HEAD of the repository.)\n")
df_past |>
dplyr::arrange(CreatedTime) |>
dplyr::arrange(dplyr::desc(CreatedTime)) |>
dplyr::select(
RepoTags = tags,
ID = id,
Expand Down

0 comments on commit b8df6bf

Please sign in to comment.