Skip to content

Commit 06d53ac

Browse files
committed
Simplify Jekyll setup: clean Gemfile and workflow for better compatibility
1 parent 5100350 commit 06d53ac

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,16 @@ jobs:
4040
- name: Install Jekyll
4141
run: |
4242
gem install jekyll bundler
43+
44+
- name: Install dependencies
45+
run: |
4346
cd docs
4447
bundle install
4548
4649
- name: Build documentation
4750
run: |
4851
cd docs
49-
jekyll build --baseurl "${{ github.event.repository.name }}"
52+
bundle exec jekyll build
5053
5154
- name: Upload artifact
5255
uses: actions/upload-pages-artifact@v3

docs/Gemfile

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,14 @@ gem "just-the-docs", "~> 0.7.3"
55

66
group :jekyll_plugins do
77
gem "jekyll-remote-theme"
8-
gem "jekyll-feed", "~> 0.12"
9-
gem "jekyll-seo-tag", "~> 2.7"
10-
gem "jekyll-sitemap", "~> 1.4"
118
end
129

13-
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
14-
# and associated library.
15-
platforms :mingw, :x64_mingw, :mswin, :jruby do
16-
gem "tzinfo", ">= 1", "< 3"
10+
# Windows compatibility
11+
platforms :mingw, :x64_mingw, :mswin do
12+
gem "tzinfo", ">= 1"
1713
gem "tzinfo-data"
14+
gem "wdm", "~> 0.1.1"
1815
end
1916

20-
# Performance-booster for watching directories on Windows
21-
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
22-
23-
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
24-
# do not have a Java counterpart.
25-
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
26-
27-
# Use `0.18.1` for all platforms, as newer versions of this gem have dependencies
28-
# that are not yet released for JRuby on Java 8.
17+
# Webrick for Ruby 3.0+
2918
gem "webrick", "~> 1.7"

0 commit comments

Comments
 (0)