- install ruby 2.7.8; use a ruby virtual environment such as
chruby
orrbenv
and a ruby installer such asruby-install
orruby-build
Note: don't use the Mac system version of Ruby in/usr/bin/ruby
or/usr/local/bin/ruby
- In the root of the project:
gem install bundler:2.4.22
- Next:
bundler install
. Just likenpm install
this will install all the project's dependencies such as jekyll.
To run locally, first edit the _config.yml
file to use theme:
instead of remote_theme
:
#remote_theme: pmarsceill/just-the-docs
theme: "just-the-docs"
When done, put back the remote_theme before commit! This is to have it working correctly in github docs.
To run locally, use bundle:
bundle exec jekyll serve
Follow these steps to use specific Ruby version