More advanced Jekyll setup
@tischer @hossain @halavaty @jhartman
Using the Binarization module as an example, this MR includes a Jekyll layout for module pages. This should make it easier for us to keep a standard layout for the module pages and to add in additional instructions for platforms and so on. The idea is that we will ask people to populate the header of the module page files as follows:
---
title: Image binarization #page title
layout: module # leave this the same
prerequisites:
- "the concepts of image files, pixels, and intensity" # a list of required knowledge
- "something else __that__ `requires` _formatting_" # for the module to make sense
objectives:
- "describe the relationship between an intensity image and a derived binary image" # learning objectives
- "use thresholding to distinguish foreground and background pixels" # for the module
platforms: # these will be used to populate the dropdown and blocks for the "Activity" section
"ImageJ GUI": "activities/binarization/binarization_imagejgui.md" # paired list of platform
"ImageJ Macro": "activities/binarization/binarization.ijm" # names and associated
"Jython": "activities/binarization/binarization_jython.py" # files of instructions
"MATLAB": "activities/binarization/binarization.m" # for that platform
---
For now, please take a look at https://grp-bio-it.embl-community.io/image-analysis-training-resources/modules/binarization.html (example module as web page) and https://git.embl.de/grp-bio-it/image-analysis-training-resources/blob/jekyll/modules/binarization.md (equivalent Markdown file for module, best viewed raw) and give me your feedback.
If you like the look of this and want to merge, we will need to go through the other modules and adjust them accordingly. Before that I would like to add a similar dropdown-based setup for the exercises, so that I can shift the weird blocks of combined Jekyll and JavaScript out of the module pages and into the module layout specification.