Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace hexwall code introduction #118

Open
avallecam opened this issue Feb 1, 2024 · 0 comments
Open

replace hexwall code introduction #118

avallecam opened this issue Feb 1, 2024 · 0 comments
Labels
early-task Part of the Early Task Roadmap to-all-tasks To apply in all repos after solved in early-task

Comments

@avallecam
Copy link
Member

avallecam commented Feb 1, 2024

In #104 we introduced the hexwall as figure, but we intended to do it as in the main website in https://epiverse-trace.github.io/

if we want this to react as in the main website, this code needs to inherit the CSS from epiverse website to the epiverse copy of {varnish} to reuse that CSS

library(tidyverse)

# turn on if maintainers manage to
# adapt css from main page to varnish
pkg_list <- c("readepi","cleanepi","linelist","epiparameter","episoap")

# from https://github.com/epiverse-trace/epiverse-trace.github.io/blob/main/index.qmd

pkg_path <- "https://raw.githubusercontent.com/epiverse-trace/epiverse-trace.github.io/main/_data/epiverse_pkgs.csv"
hexwall_path<- "https://raw.githubusercontent.com/epiverse-trace/epiverse-trace.github.io/main/_templates/hexwall_element.Rmd"

file.path(pkg_path) |>
  read.csv() |>
  dplyr::filter(
    magrittr::is_in(pkgname,pkg_list)) |>
  as.list() |>
  purrr::transpose() |>
  purrr::map_chr(~ knitr::knit_expand(
    file = hexwall_path,
    pkgname = .x$pkgname,
    description = .x$description)) |>
  cat(sep = "\n")
#> :::: {.hex}
#> 
#> [![](https://raw.githubusercontent.com/epiverse-trace/hex-stickers/main/thumbs/readepi.png){fig-alt="readepi logo"}](https://epiverse-trace.github.io/readepi)
#> 
#> ::: {.description}
#> 
#> Tools for reading data
#> 
#> :::
#> 
#> ::::
#> :::: {.hex}
#> 
#> [![](https://raw.githubusercontent.com/epiverse-trace/hex-stickers/main/thumbs/cleanepi.png){fig-alt="cleanepi logo"}](https://epiverse-trace.github.io/cleanepi)
#> 
#> ::: {.description}
#> 
#> Tools for cleaning data
#> 
#> :::
#> 
#> ::::
#> :::: {.hex}
#> 
#> [![](https://raw.githubusercontent.com/epiverse-trace/hex-stickers/main/thumbs/linelist.png){fig-alt="linelist logo"}](https://epiverse-trace.github.io/linelist)
#> 
#> ::: {.description}
#> 
#> Tagging and validating individual data
#> 
#> :::
#> 
#> ::::
#> :::: {.hex}
#> 
#> [![](https://raw.githubusercontent.com/epiverse-trace/hex-stickers/main/thumbs/epiparameter.png){fig-alt="epiparameter logo"}](https://epiverse-trace.github.io/epiparameter)
#> 
#> ::: {.description}
#> 
#> Tools for epidemiological parameters
#> 
#> :::
#> 
#> ::::
#> :::: {.hex}
#> 
#> [![](https://raw.githubusercontent.com/epiverse-trace/hex-stickers/main/thumbs/episoap.png){fig-alt="episoap logo"}](https://epiverse-trace.github.io/episoap)
#> 
#> ::: {.description}
#> 
#> Pipelines for common tasks
#> 
#> :::
#> 
#> ::::

Created on 2024-02-01 with reprex v2.0.2

note: the chunk should use results='asis'

avallecam added a commit that referenced this issue Feb 1, 2024
@avallecam avallecam added early-task Part of the Early Task Roadmap to-all-tasks To apply in all repos after solved in early-task labels Feb 1, 2024
avallecam added a commit that referenced this issue Feb 2, 2024
avallecam added a commit that referenced this issue Feb 5, 2024
avallecam added a commit that referenced this issue Feb 6, 2024
avallecam added a commit to epiverse-trace/tutorials-early that referenced this issue Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
early-task Part of the Early Task Roadmap to-all-tasks To apply in all repos after solved in early-task
Projects
None yet
Development

No branches or pull requests

1 participant