Last updated Tuesday 29 October 2024.

Most relevant documentation links
Important tribal knowledge

Traditionally, "GitHub Pages" support is a strongly locked-down affair. This created many conflicts with Jekyll, various Gems, and GitHub Pages plugins. The GitHub Pages Actions workflow is meant to partially alleviate the issue.

I use Linux and Mac OS X. Linux users need no help, but I will document the Mac OS X setup.

Mac OS X Setup

Use asdf to install ruby:

#!/usr/bin/env zsh

brew update && brew upgrade --greedy \
&& brew install coreutils curl asdf

Install latest ruby using asdf


Explanation 1:

Please remember that asdf delegates to resource managers called plugs-in

asdf manages tool artifacts via dedicated plugins that fully control the lifecycle of SDKs they manage.

asdf plugin list all
  • Example: To upgrade all plugins, use:

asdf plugin update --all

Step 1: Install ruby plugin (see the `ruby` home repository to get the sense of plugins):

asdf plugin add ruby

Step 2: Then, install the latest ruby:

asdf install ruby 3.3.5

Step 3: Verify:

asdf current

Install Jekyll and GitHub Pages dependencies

Navigate into your project site directory before working on the Jekyll site!

Follow the Jekyll Quickstart documentation.

cd site
gem install jekyll bundler
jekyll new site --force
bundle install && bundle exec jekyll serve -t

That’s it!

We have then modified our site to apply Minimal Mistakes Jekyll theme.