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
- pull the latest container:
docker pull ghcr.io/hubverse-org/hub-dash-site-builder:main
- Run the container (replace
/path/to/dashboard/repo
with the absolute path to your dashboard. This can be replaced with$(pwd)
to use the current working directory):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
- 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.