Skip to content

hubverse-org/hub-dash-site-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hub-dash-site-builder

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.

  1. clone the dashboard repository
  2. pull the latest container:
    docker pull ghcr.io/hubverse-org/hub-dash-site-builder:main
  3. 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
  4. clone the gh-pages branch of the dashboard repository into pages/
  5. copy the files from the dashboard repo/site/pages/_site/ folder into pages/
  6. push the pages/ folder up.

About

Docker container to build a hub dashboard website with Quarto

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages