Update instructions with webrick dependency
Restore Gemfile that was accidentally removed in #5821

---------

Co-authored-by: Logan Adams <loadams@microsoft.com>
This commit is contained in:
Olatunji Ruwase 2024-08-05 11:51:26 -04:00 коммит произвёл GitHub
Родитель 2ef8223210
Коммит 0584689d43
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 34 добавлений и 0 удалений

24
docs/Gemfile Normal file
Просмотреть файл

@ -0,0 +1,24 @@
source "https://rubygems.org"
gem 'github-pages', group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed"
gem "jekyll-paginate"
gem "jekyll-remote-theme"
gem "jekyll-include-cache"
gem "minimal-mistakes-jekyll"
end
# Windows and JRuby 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.1", :install_if => Gem.win_platform?
gem "webrick", "~> 1.8"

Просмотреть файл

@ -42,6 +42,16 @@ We now need to install the required Ruby packages for the website.
bundle install
```
Depending on your environment, you may need to add `webrick` to avoid the following [error](https://talk.jekyllrb.com/t/load-error-cannot-load-such-file-webrick/5417/6):
> gems/gems/jekyll-3.9.5/lib/jekyll/commands/serve/servlet.rb:3:in `require': cannot load such file -- webrick (LoadError)
```
bundle add webrick
```
You can now start a local webserver via:
```
bundle exec jekyll serve