From 3cd8007a398a3eadcc64541ec130ee1f1e1ca254 Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Tue, 24 Mar 2026 09:46:21 +0100 Subject: [PATCH 1/2] Use ruby:3 as image to serve dev github-pages isn't compatible with Ruby 4, since its dependency jekyll-commonmark depends on a very old version of commonmarker, which isn't compatible with Ruby 4. The latest release of jekyll-commonmark was in January 2022, so maybe this is a sign that we'll have to look for alternatives. Signed-off-by: Pablo Zmdl --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b696d96..72929ec 100644 --- a/Makefile +++ b/Makefile @@ -9,4 +9,4 @@ css: npx less --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css serve-dev: - docker run -it -p 4000:4000 -v $(PWD):/site -w /site library/ruby bash -c 'bundle install && bundle exec jekyll serve -H 0.0.0.0' + docker run -it -p 4000:4000 -v $(PWD):/site -w /site library/ruby:3 bash -c 'bundle install && bundle exec jekyll serve -H 0.0.0.0' From f8ae54e3567c5be3ab0a787888d0ba5ce4653c1f Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Tue, 24 Mar 2026 10:06:09 +0100 Subject: [PATCH 2/2] Avoid explicitly requiring dependency With github-pages v232 we also get liquid v4.0.4 (to avoid ). Signed-off-by: Pablo Zmdl --- Gemfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 659e4df..3993e55 100644 --- a/Gemfile +++ b/Gemfile @@ -1,8 +1,6 @@ source 'https://rubygems.org' -gem 'github-pages' - -# Explicitly require v4.0.4 to fix "Liquid Exception: undefined method 'tainted?' for an instance of String". See . -gem 'liquid', '>=4.0.4' +# Explicitly require >=232 to make sure liquid >=4.0.4 is used, which has a fix for "Liquid Exception: undefined method 'tainted?' for an instance of String". See . +gem 'github-pages', '>=232' # Require some gems that are not part of the core anymore in recent Ruby versions. gem 'csv'