Open bast opened 4 years ago
The real motivation for this is that I have had situations where "jekyll serve" looked good and then a day later in the lesson presenting in front of people I realized that something rendered slightly differently on GH Pages. This change was made to avoid this.
My temporary notes on this. (If we are going to go Jekyll --> ZOLA this isn't needed.)
sudo yum list "*rh-ruby26*"
rpm --import http://<rpm-key.hos.t>/pub/rpm-gpg-keys/RPM-GPG-KEY-CentOS-SIG-SCLo
sudo yum install rh-ruby26 rh-ruby26-ruby-devel
vim ~/.config/fish/config.fish
:
set -gx GEM_HOME /home/<user>/.gem/ruby/
set -gx PATH /home/<user>/.gem/ruby/bin $PATH
Or for bash: vim ~/.bashrc
:
export GEM_HOME="/home/<user>/.gem/ruby/"
export PATH="/home/<user>/.gem/ruby/bin:$PATH"
scl enable rh-ruby26 fish
gem install jekyll bundler
"Fork" -button in GitHub UI
vim Gemfile
content of the file:
source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins
scl enable rh-ruby26 fish
bundle install / bundle update github-pages
bundle exec jekyll serve
Thanks! I don't think we plan to migrate lessons to Zola soon. This was only discussed for the project website so far.
https://github.com/bast/til/blob/master/documentation/jekyll-bundler.md