Skip to content

nyu-dh/black-solidarity-day

Repository files navigation

Black Solidarity Day ✊🏿

ci:deploy

Prerequisites

Serve locally using Docker

To use Wax in a container, make sure you are familiar with Docker and have Docker installed.

  1. Clone the repo and change directory into it
$ cd ~/Desktop
$ git clone https://github.com/nyu-dss/black-solidarity-day.git
$ cd black-solidarity-day
  1. Next, build the wax_image base image:
$ docker build -t ubuntu/wax .
  1. You will run all of the Wax tasks and commands within an interactive bash container, which you can create and access by running:
$ docker run -it --rm -v "$PWD":/wax --name wax -p 4000:4000 ubuntu/wax bash
  1. To serve the site, you can run the following command in the guest container and view it in your host browser:
$ bundle exec jekyll serve --host 0.0.0.0 --verbose

You can exit the container at any time with $ exit, which will automatically stop and remove the container.

Add new collection data using docker

  1. Enter a Wax Docker container (step 3 above)
  2. Tear down the existing collection
$ bundle exec rake wax:clobber bsd
  1. In your local site directory (~/Desktop/black-solidarity-day), replace _data/bsd-data.csv with the new/updated CSV of records and add/replace any items in _data/raw_images as needed.
  2. Regenerate the image derivatives
$ bundle exec rake wax:derivatives:iiif bsd
  1. Regenerate the item pages
 $ bundle exec rake wax:pages bsd
  1. Serve the site to make sure it looks right
bundle exec jekyll serve --host 0.0.0.0 --verbose
  1. Exit the container with $ exit, then commit and push your changes.