UCSF-CBI / c4

The C4 Website
https://ucsf-cbi.github.io/c4/
1 stars 2 forks source link

Make it possible to render software repository pages on GitHub Actions #66

Open HenrikBengtsson opened 2 years ago

HenrikBengtsson commented 2 years ago

Issue

Currently, the page generation of module repositories is done "live", i.e. the script calls spider ... when it renders the page;

https://github.com/UCSF-CBI/c4/blob/b8875b004adc918c7c28f7f6db5d99b923c32be4/docs/software/R/lmod.R#L52-L59

This prevents us from rendering the page outside of the cluster, e.g. on a local notebook or on GitHub Pages.

Suggestions

To fix this, we can:

  1. Dump spider ... output to file, e.g. via a cronjob and commit to the repo
  2. Have the page rendering script read spider data from this file
HenrikBengtsson commented 2 years ago

Remaining task: