This repository creates a docker container used by hubverse-org/hub-dashboard-control-room to generate a static site that contains a forecast dashboard and other customizations.
The static site is generated via render.sh
inside the
container and writes a folder called _site/
under the pages/
folder of the
dashboard repository. You need to then copy the contents of _site/
into the
gh-pages
branch of a dashboard repository.
- clone the dashboard repository
- Run the container:
$ docker run \ --platform=linux/amd64 \ --rm \ --ti \ -v "/path/to/dashboard/repo":"/site" \ ghcr.io/hubverse-org/hub-dash-site-builder:main \ bash render.sh \ ${dashboard repo org} \ ${dashboard repo name} \ "ptc/data"
- clone the gh-pages branch of the dashboard repository into
pages/
- copy the files from the
dashboard repo/site/pages/_site/
folder intopages/
- push the
pages/
folder up.