Skip to content

Commit 6e08842

Browse files
committed
ci: do not use pre-made jekyll action
1 parent 527dab2 commit 6e08842

File tree

3 files changed

+97
-11
lines changed

3 files changed

+97
-11
lines changed

.github/workflows/documentation.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ jobs:
1919
uses: ruby/setup-ruby@v1
2020
with:
2121
bundler-cache: true
22-
- name: Build YARD documentation
23-
id: build
22+
- name: Build Jekyll documentation
23+
id: build-jekyll
24+
run: bundle exec jekyll build
25+
- name: Build YARD documentation # must be after jekyll as jekyll wipe the destination folder before building
26+
id: build-yard
2427
run: bundle exec yard doc
2528
- name: Setup Pages
2629
uses: actions/configure-pages@v5
27-
- name: Build Jekyll documentation
28-
uses: actions/jekyll-build-pages@v1 # https://github.com/actions/jekyll-build-pages
29-
with:
30-
destination: output/
3130
- name: Upload static files as artifact
3231
id: deployment
3332
uses: actions/upload-pages-artifact@v3 # https://github.com/actions/upload-pages-artifact
@@ -38,7 +37,7 @@ jobs:
3837
name: github-pages
3938
url: ${{ steps.deployment.outputs.page_url }}
4039
runs-on: ubuntu-latest
41-
needs: build
40+
needs: build-yard, build-jekyll
4241
steps:
4342
- name: Deploy to GitHub Pages
4443
id: deployment

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ group :development, :docs do
3737
# gem 'commonmarker', '~> 2.0' # for markdown support in YARD
3838

3939
gem 'commonmarker', '~> 0.23' # for markdown support in YARD
40+
gem 'jekyll', '~> 4.4', '>= 4.4.1' # user documentation
41+
gem 'jekyll-commonmark', '~> 1.4' # jekyll markdown plugin
42+
gem 'jekyll-remote-theme', '~> 0.4.3' # jekyll theme plugin
43+
gem 'jekyll-seo-tag', '~> 2.8' # jekyll seo plugin
4044
gem 'webrick', '~> 1.9' # for yard server
41-
gem 'yard', ['>= 0.9.37', '< 0.10']
45+
gem 'yard', ['>= 0.9.37', '< 0.10'] # library documentation
4246
gem 'yard-coderay', '~> 0.1' # for syntax highlight support in YARD
4347
end

Gemfile.lock

Lines changed: 86 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,95 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
46
ast (2.4.3)
7+
base64 (0.2.0)
8+
bigdecimal (3.1.9)
59
coderay (1.1.3)
10+
colorator (1.1.0)
611
commonmarker (0.23.11)
12+
concurrent-ruby (1.3.5)
13+
csv (3.3.2)
714
docopt (0.6.1)
15+
em-websocket (0.5.3)
16+
eventmachine (>= 0.12.9)
17+
http_parser.rb (~> 0)
18+
eventmachine (1.2.7)
19+
ffi (1.17.1)
20+
ffi (1.17.1-x86_64-linux-gnu)
21+
forwardable-extended (2.6.0)
22+
google-protobuf (4.29.3)
23+
bigdecimal
24+
rake (>= 13)
25+
google-protobuf (4.29.3-x86_64-linux)
26+
bigdecimal
27+
rake (>= 13)
28+
http_parser.rb (0.8.0)
29+
i18n (1.14.7)
30+
concurrent-ruby (~> 1.0)
31+
jekyll (4.4.1)
32+
addressable (~> 2.4)
33+
base64 (~> 0.2)
34+
colorator (~> 1.0)
35+
csv (~> 3.0)
36+
em-websocket (~> 0.5)
37+
i18n (~> 1.0)
38+
jekyll-sass-converter (>= 2.0, < 4.0)
39+
jekyll-watch (~> 2.0)
40+
json (~> 2.6)
41+
kramdown (~> 2.3, >= 2.3.1)
42+
kramdown-parser-gfm (~> 1.0)
43+
liquid (~> 4.0)
44+
mercenary (~> 0.3, >= 0.3.6)
45+
pathutil (~> 0.9)
46+
rouge (>= 3.0, < 5.0)
47+
safe_yaml (~> 1.0)
48+
terminal-table (>= 1.8, < 4.0)
49+
webrick (~> 1.7)
50+
jekyll-commonmark (1.4.0)
51+
commonmarker (~> 0.22)
52+
jekyll-remote-theme (0.4.3)
53+
addressable (~> 2.0)
54+
jekyll (>= 3.5, < 5.0)
55+
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
56+
rubyzip (>= 1.3.0, < 3.0)
57+
jekyll-sass-converter (3.0.0)
58+
sass-embedded (~> 1.54)
59+
jekyll-seo-tag (2.8.0)
60+
jekyll (>= 3.8, < 5.0)
61+
jekyll-watch (2.2.1)
62+
listen (~> 3.0)
863
json (2.11.3)
64+
kramdown (2.5.1)
65+
rexml (>= 3.3.9)
66+
kramdown-parser-gfm (1.1.0)
67+
kramdown (~> 2.0)
968
language_server-protocol (3.17.0.4)
1069
lint_roller (1.1.0)
70+
liquid (4.0.4)
71+
listen (3.9.0)
72+
rb-fsevent (~> 0.10, >= 0.10.3)
73+
rb-inotify (~> 0.9, >= 0.9.10)
74+
mercenary (0.4.0)
1175
minitest (5.25.5)
1276
parallel (1.27.0)
1377
parser (3.3.8.0)
1478
ast (~> 2.4.1)
1579
racc
80+
pathutil (0.16.2)
81+
forwardable-extended (~> 2.6)
1682
prism (1.4.0)
83+
public_suffix (6.0.1)
1784
racc (1.8.1)
1885
rainbow (3.1.1)
1986
rake (13.2.1)
87+
rb-fsevent (0.11.2)
88+
rb-inotify (0.11.1)
89+
ffi (~> 1.0)
2090
regexp_parser (2.10.0)
91+
rexml (3.4.1)
92+
rouge (4.5.1)
2193
rubocop (1.75.4)
2294
json (~> 2.3)
2395
language_server-protocol (~> 3.17.0.2)
@@ -33,9 +105,16 @@ GEM
33105
parser (>= 3.3.7.2)
34106
prism (~> 1.4)
35107
ruby-progressbar (1.13.0)
36-
unicode-display_width (3.1.4)
37-
unicode-emoji (~> 4.0, >= 4.0.4)
38-
unicode-emoji (4.0.4)
108+
rubyzip (2.4.1)
109+
safe_yaml (1.0.5)
110+
sass-embedded (1.83.4)
111+
google-protobuf (~> 4.29)
112+
rake (>= 13)
113+
sass-embedded (1.83.4-x86_64-linux-gnu)
114+
google-protobuf (~> 4.29)
115+
terminal-table (3.0.2)
116+
unicode-display_width (>= 1.1.1, < 3)
117+
unicode-display_width (2.6.0)
39118
webrick (1.9.1)
40119
yard (0.9.37)
41120
yard-coderay (0.1.0)
@@ -50,6 +129,10 @@ DEPENDENCIES
50129
bundler (~> 2.1)
51130
commonmarker (~> 0.23)
52131
docopt (~> 0.6)
132+
jekyll (~> 4.4, >= 4.4.1)
133+
jekyll-commonmark (~> 1.4)
134+
jekyll-remote-theme (~> 0.4.3)
135+
jekyll-seo-tag (~> 2.8)
53136
minitest (~> 5.25)
54137
rake (~> 13.2)
55138
rubocop (~> 1.75)

0 commit comments

Comments
 (0)