Alison (Al/aL) W. Xin's site
Curriculum VitaeThe procedure isn’t that bad, but certain resources create conflicts that are a little hard to track down.
After you’ve already set up a Jekyll site on GitHub Pages, these are steps to help check it locally to avoid waiting for GitHub to publish it to make sure everything looks good.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
chruby
(comes with Bundler)
1. brew install chruby ruby-install
2. ruby-install ruby 3.3.4
1. This step takes a very long time (10 minutes? 20 minutes??)
3. Follow applicable terminal instructions to source chruby
install of the default macOS Ruby
1. echo "source $(brew --prefix)/opt/chruby/share/chruby/chruby.sh" >> ~/.zshrc
2. echo "source $(brew --prefix)/opt/chruby/share/chruby/auto.sh" >> ~/.zshrc
3. echo "chruby ruby-3.3.5" >> ~/.zshrc # run 'chruby' to see actual version
4. Check ruby -v
bundle update github-pages
cd WEBDIR
bundle install
bundle exec jekyll serve
If everything goes perfect, the above steps will probably take around 20 minutes. Here are things that tripped me up:
The latest supported version of Jekyll and Ruby (described int he Jekyll docs) are not consistent with the GitHub Pages dependencies. Moncef Belyamani provides steps to install a new version of Ruby and get everything squared away. As of Jan 06, 2025, the version of Ruby to use is 3.3.4. The steps are abbreviated here:
ruby-install 3.3.4
chruby 3.3.4
cd WEBDIR
echo "3.3.4" >> .ruby-version
ruby File.read(".ruby-version").strip
to the Gemfile.After I figured out that bundle update github-pages
was correct, I kept get an old error about ?tainted
not being a valid command. This is because of an old conflict with liquid-4.0.3
when the new dependencies require liquid-4.0.4
. Manual uninstallation was required.
gem uninstall -aIx
bundle update github-pages
Running the site with bundle exec jekyll serve
can create an error due to webrick
being missing.
bundle add webrick
bundle exec jekyll serve