Skip to content

Upgrade to Ruby 3.4 and Middleman 4.6 - #68

Merged
yuwenmemon merged 1 commit into
masterfrom
francois-upgrade-ruby
Oct 28, 2026
Merged

yuwenmemon merged 1 commit into
masterfrom
francois-upgrade-ruby

Conversation

@francoisl

Copy link
Copy Markdown

Our repo is way behind on the upstream, but getting it in sync would require rewriting a lot of our custom style code, which is not a priority right now.

This updates the ruby and middleman dependency versions instead, to avoid relying on EOL versions and getting errors when you want to rebuild the docs.

Ruby 2.7 is end-of-life, and the gems were pinned to versions that do
not install on current Ruby. Upstream slatedocs/slate is archived and
only ever supported up to Ruby 3.2, so this updates the toolchain
directly instead of merging upstream.

- Bump Ruby to 3.4.1, matching App and Mobile-Expensify
- Bump Middleman to 4.6, Rouge to 4, Redcarpet to 3.6, Nokogiri to 1.18
- Drop the deprecated Ruby Sass gem; SassC compiles the stylesheets
- Add arm64-darwin and Linux platforms to Gemfile.lock so Nokogiri
  installs from prebuilt gems
- Let Sprockets handle JavaScript only. Middleman 4.6 needs Rack 3,
  which forces Sprockets 4, and Sprockets 4 passed the SCSS through
  uncompiled. Middleman's own Sass renderer compiles it instead.
- Update the Dockerfile base image to ruby:3.4-slim
- Remove the unused Vagrantfile, which only supported VirtualBox on
  Intel Macs

The generated HTML matches the docs published in Integration-Server,
apart from extra rules in the inline Rouge theme. Full-page screenshots
of both pages show no pixel differences on desktop or phone widths.
@francoisl
francoisl requested a review from yuwenmemon October 28, 2026 18:28
@francoisl francoisl self-assigned this Oct 28, 2026
@yuwenmemon
yuwenmemon merged commit 053a3f8 into master Oct 28, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants