-
Set up Ruby. (Do not use ruby version of System.)
brew update brew install rbenv ruby-build rbenv versions # Got "* system (set by /Users/idong-uk/.rbenv/version)" rbenv install -l # Check the recent version. rbenv install {VERSION} && rbenv global {VERSION}
-
Add rbenv PATH in
~/.zshrc
.[[ -d ~/.rbenv ]] && \ export PATH=${HOME}/.rbenv/bin:${PATH} && \ eval "$(rbenv init -)"
-
Install jekyll.
gem install bundler jekyll
-
Install gems.
bundle install
-
Add webrick.
bundle add webrick
-
Set up jekyll-plantuml
sudo apt-get update sudo apt-get install graphviz mkdir -p /opt/local/bin ln -s /usr/bin/dot /opt/local/bin/dot wget https://github.com/plantuml/plantuml/releases/download/v1.2024.0/plantuml-gplv2-1.2024.0.jar mv plantuml-gplv2-1.2024.0.jar /opt/local/bin/plantuml.jar chmod 777 /opt/local/bin/plantuml.jar java -jar /opt/local/bin/plantuml.jar -testdot cat <<EOF > /usr/local/bin/plantuml #!/bin/bash java -jar /opt/local/bin/plantuml.jar "\$1" "\$2" EOF chmod +x /usr/local/bin/plantuml
bundle exec jekyll build
bundle exec jekyll serve
Then, open http://localhost:4000
on web browser.