bbc/making-a-slave

Name: making-a-slave

Owner: BBC

Description: null

Created: 2016-06-13 16:38:48.0

Updated: 2016-07-05 11:35:13.0

Pushed: 2016-07-12 13:37:33.0

Homepage: null

Size: 2753

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Making a Slave

Versioning

Please use Git Flow; https://github.com/nvie/gitflow and Semantic Versioning; http://semver.org/

Build

The site is created using jekyll. All code to be uploaded to server lives in the _site folder.

You can rebuild the _site folder by running:

jekyll build

in the root folder.

You can test the site locally using:

jekyll watch

NB - in order to test locally you will need to make a few changes to the _config.yml file

gems:

- jekyll-minifier 

this is the html minifier, which causes trouble serving locally. Be sure to put correct url var for live site and jekyll-minifier back into config if building for live site

Videos

If for any reason the videos need changing, then you need to edit the index.html file in each of the following folders:

Simply change the vimeoid variable in each file and then rebuild the _site folder.

Javascript

There are 2 js files. One for the home page and one for the video pages:

It is unlikely there will need amending, but if they do, make your changes and then run the build scripts by going to the js directory in terminal and running:

r.js -o build-media.js

and

r.js -o build.js


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.