From c28376c480c43b94caccdce3f91ad1a88bae82c0 Mon Sep 17 00:00:00 2001
From: Jacek Lebioda <jacek.lebioda@uni.lu>
Date: Mon, 16 Dec 2019 13:30:35 +0100
Subject: [PATCH] Laurent.heirendt/howto cards update theme

---
 .gitignore     |  1 +
 .gitlab-ci.yml |  5 +++--
 Gemfile        | 27 +++++++++++++++++----------
 _config.yml    |  1 +
 4 files changed, 22 insertions(+), 12 deletions(-)

diff --git a/.gitignore b/.gitignore
index 2a36ff34..c054381b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+env/.jekyll-cache/
 *.aux
 *.log
 *.out
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index be091074..6a826c92 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,5 @@
-image: ruby:2.5
+# In case something goes horribly wrong, you can fall back to `image: ruby:2.5`
+image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:1.0
 
 variables:
   JEKYLL_ENV: production
@@ -6,7 +7,7 @@ variables:
 before_script:
   - apt-get -qq update
   - apt-get install -y -qq git-lfs
-  - bundle install && bundle update
+  - gem install bundler:2.0.2 && bundle install
 
 pages:
   stage: deploy
diff --git a/Gemfile b/Gemfile
index 8cfee77d..05a3baca 100644
--- a/Gemfile
+++ b/Gemfile
@@ -7,15 +7,12 @@ source "https://rubygems.org"
 #
 #     bundle exec jekyll serve
 #
-# This will help ensure the proper Jekyll version is running.
-# Happy Jekylling!
-gem "jekyll", "~> 3.8.5"
-gem "bundler", "> 1.16.1"
 
-# This is the default theme for new Jekyll sites. You may change this to anything you like.
+gem "jekyll", "~> 4.0"
+gem "bundler", "> 2.0"
+
 gem "minima", "~> 2.5"
-gem 'jekyll-theme-primer', '~> 0.5.3'
-gem 'jekyll-theme-lcsb-default', '~> 0.2.23', :git => "https://git-r3lab.uni.lu/core-services/jekyll-theme-lcsb-default.git", :branch => "master"
+gem 'jekyll-theme-lcsb-default', '~> 0.3'
 
 # If you want to use GitHub Pages, remove the "gem "jekyll"" above and
 # uncomment the line below. To upgrade, run `bundle update github-pages`.
@@ -23,9 +20,18 @@ gem 'jekyll-theme-lcsb-default', '~> 0.2.23', :git => "https://git-r3lab.uni.lu/
 
 # If you have any plugins, put them here!
 group :jekyll_plugins do
- gem "jekyll-paginate-v2", "~> 1.7"
- gem "jekyll-feed", "~> 0.6"
- gem "jekyll-email-protect"
+ gem "jekyll-paginate-v2",
+     "~> 2",
+     :git => "https://github.com/sverrirs/jekyll-paginate-v2.git"
+
+ gem "jekyll-feed",
+     "~> 0.6"
+
+ gem 'jekyll-theme-lcsb-frozen-components',
+     '~> 0.0.1',
+     :git => "https://git-r3lab.uni.lu/core-services/jekyll-theme-lcsb-frozen-components.git",
+     :branch => "master"
+
 end
 
 # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
@@ -33,3 +39,4 @@ gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
 
 # Performance-booster for watching directories on Windows
 gem "wdm", "~> 0.1.1" if Gem.win_platform?
+
diff --git a/_config.yml b/_config.yml
index 5b8b3570..45c71ac8 100644
--- a/_config.yml
+++ b/_config.yml
@@ -54,6 +54,7 @@ theme: jekyll-theme-lcsb-default
 plugins:
   - jekyll-feed
   - jekyll-paginate-v2
+  - jekyll-theme-lcsb-frozen-components
 
 # These settings are used to display share link to howto.lcsb.uni.lu
 # The display logic itself is in the template
-- 
GitLab