Site Build Documentation

Step-by-step documentation how the website can be built and modified

Installation

Ruby + Jekyll

The website is created from markdown files rendered to html by Jekyll

Git bash + Make

The contents of the website are created and updated using R scripts that are triggered by Makefiles

Modify Contents

Diagrams

The website includes a number of diagrams that facilitate understanding the project structure

Visualizations

The heatmap visualization is using the R package highcharter that can only be used internally for licensing reasons

Import Contents

Once the changes have been completed in the dryworkflow routine(s), the compiled html fragments files are imported to the Jekyll site. The contents of the import-dryworkflow.bat are shown below. In this example, fragments from two dryworkflow projects are integrated: one for all FBS, the other for trade-specific outputs.

set JEKYLLFAOCYG="/cygdrive/c/Users/[User]/path/to/jekyll/site"
set DRYFAOFBSCYG="/cygdrive/c/Users/[User]/path/to/dryworkflow/root"
set SWSDATA="/cygdrive/c/SWS-Data"

rsync -h -v -P -t --recursive %DRYFAOFBSCYG%/includes/* %JEKYLLFAOCYG%/_includes/dryworkflow/
rsync -h -v -P -t --recursive %DRYFAOFBSCYG%/figures/* %JEKYLLFAOCYG%/assets/dryworkflow/
rsync -h -v -P -t --recursive %DRYFAOFBSCYG%/fragments/*.html %JEKYLLFAOCYG%/_includes/rmarkdown_fragment/

rsync -h -v -P -t --recursive %SWSDATA%/faoswsTrade/fragments/*.html %JEKYLLFAOCYG%/_includes/rmarkdown_fragment/faoswsTrade/
rsync -h -v -P -t --recursive %SWSDATA%/faoswsTrade/figures/* %JEKYLLFAOCYG%/assets/dryworkflow/faoswsTrade/

Table of Contents