Skip to content

Instantly share code, notes, and snippets.

@rijieli
Created March 31, 2022 05:10
Show Gist options
  • Save rijieli/78f502bca58492af267bf74e0350aaf2 to your computer and use it in GitHub Desktop.
Save rijieli/78f502bca58492af267bf74e0350aaf2 to your computer and use it in GitHub Desktop.
Jekyll Running Locally on M1 Chip Mac
brew install rbenv ruby-build
rbenv init # Or add eval "$(rbenv init - zsh)" to rc file
rbenv install 2.7.2
echo 2.7.2 > .ruby-version
gem inst ffi -- --disable-system-libffi
bundle install
bundle exec jekyll serve
source "https://rubygems.org"

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
#     bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.9.0"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima", "~> 2.0"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
  gem "jekyll-feed", "~> 0.15.1"
  gem "jekyll-paginate", "~> 1.1.0"
  gem "jekyll-seo-tag", "~> 2.8.0"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
  gem "tzinfo", "~> 1.2"
  gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform?

# kramdown v2 ships without the gfm parser by default. If you're using
# kramdown v1, comment out this line.
gem "kramdown-parser-gfm"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment