jekyll을 사용하여 github pages를 생성하는 방법에 대해서 기록합니다.
MacOS를 기준으로 작성되었습니다.
Step 1: Install Homebrew
/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
Step 2: Install chruby and the latest Ruby with ruby-install
brew install chruby ruby-install xz
ruby-install ruby 3.1.3
echo "source $(brew --prefix)/opt/chruby/share/chruby/chruby.sh" >> ~/.zshrc
echo "source $(brew --prefix)/opt/chruby/share/chruby/auto.sh" >> ~/.zshrc
echo "chruby ruby-3.1.3" >> ~/.zshrc # run 'chruby' to see actual version
ruby -v
gem install jekyll
To create a new Jekyll site, use the jekyll new
command:
$ jekyll new --skip-bundle .
# Creates a Jekyll site in the current directory
Add "#" to the beginning of the line that starts with gem "jekyll"
to comment out this line.