Skip to content

Commit 5bfc77b

Browse files
committed
chore(docs): Jekyll 4
1 parent b7adda0 commit 5bfc77b

File tree

7 files changed

+125
-218
lines changed

7 files changed

+125
-218
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,31 @@ jobs:
2929
uses: actions/checkout@v4
3030
- name: Install wasm-pack
3131
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
32+
- name: Setup Ruby
33+
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
34+
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
35+
with:
36+
ruby-version: '3.1' # Not needed with a .ruby-version file
37+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
38+
cache-version: 0 # Increment this number if you need to re-download cached gems
3239
- name: Build the Studio
3340
working-directory: ./crates/sdo-web
3441
run: wasm-pack build --target web
3542
- name: Run rustdoc
3643
run: cargo doc --no-deps --workspace --lib
3744
- name: Setup Pages
45+
id: pages
3846
uses: actions/configure-pages@v3
3947
- name: Create output dir with permissions
4048
run: mkdir ${{ github.workspace }}/_site
4149
- name: Build with Jekyll
42-
uses: actions/jekyll-build-pages@v1
43-
with:
44-
source: ./docs
45-
destination: ./_site # relative to github.workspace
50+
run: >
51+
bundle exec jekyll build
52+
--baseurl "${{ steps.pages.outputs.base_path }}
53+
--source ./docs
54+
--destination ./_site
55+
env:
56+
JEKYLL_ENV: production
4657
- name: Copy files to site
4758
run: |
4859
mkdir ./_site/studio

docs/Gemfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,29 @@ source "https://rubygems.org"
88
#
99
# This will help ensure the proper Jekyll version is running.
1010
# Happy Jekylling!
11-
gem "jekyll", "~> 3.9.0"
11+
gem "jekyll", "~> 4.4.1"
12+
# https://github.com/ffi/ffi/issues/1103
13+
gem "ffi", "< 1.17.0"
14+
gem "sass-embedded", "< 1.54.0"
1215

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

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

2023
# If you have any plugins, put them here!
2124
group :jekyll_plugins do
25+
gem "jekyll-theme-slate", "~> 0.2.0"
26+
gem "jekyll-github-metadata", "~> 2.16.1"
27+
gem 'jekyll-optional-front-matter', "~> 0.3.2"
28+
gem 'jekyll-redirect-from', "~> 0.16.0"
29+
gem 'jekyll-sitemap', "~> 1.4.0"
30+
gem 'jekyll-default-layout', "~> 0.1.5"
31+
gem 'jekyll-titles-from-headings', "~> 0.5.3"
32+
gem 'jekyll-include-cache', "~> 0.2.1"
33+
gem 'jekyll-relative-links', "~> 0.7.0"
2234
# gem "jekyll-feed", "~> 0.6"
2335
end
2436

0 commit comments

Comments
 (0)