Jekyll local test commands
03 Apr 2022 - Gengar
Update: 21 Apr 2024
Test commands
Build and start a local server
bundle exec jekyll serve
Browse your site by http://localhost:4000
Some possible issues
- Some dependiencies will be not in default gems since Ruby 3.4.0
- Error message:
/Users/user/.gem/ruby/3.3.0/gems/jekyll-4.3.3/lib/jekyll.rb:28: warning: csv was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add csv to your Gemfile or gemspec. Also contact author of jekyll-4.3.3 to add csv into its gemspec.
- Solution: Add conditional dependency in Gemfile
# Some dependencies will be not in default gems since Ruby 3.4.0 # Gemfile if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.3') gem "csv", "~> 3.3" gem "base64", "~> 0.2.0" gem "bigdecimal", "~> 3.1.5" end
- Error message:
- minima 2.5.1 not follow jekyll-sass-converter-3.0.0 rule yet, can be solved by rolling back to jekyll-sass-converter-2.x or just disable the warnings
- Error message:
../../../../minima-2.5.1/_sass/minima/_base.scss
../../../../minima-2.5.1/_sass/minima/_base.scss
margin-bottom: $spacing-unit / 2;
Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
- Solution: disable the warnings about sass
# _config.yml sass: quiet_deps: true
- Error message: