Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: webdev & Ruby 3.1+ required (3.4 used) #1728

Merged
merged 4 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

*.min.* binary
*.svg binary

# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
6 changes: 3 additions & 3 deletions .github/actions/prepare-build-site/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
ruby-version:
description: "Version of ruby to prepare"
required: false
default: "3.1"
default: "3.4"

runs:
using: composite
Expand All @@ -13,9 +13,9 @@ runs:
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gems-${{ inputs.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
${{ runner.os }}-gems-${{ inputs.ruby-version }}-

- name: Restore publication cache
uses: actions/cache@v3
Expand Down
4 changes: 3 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ Metrics/CyclomaticComplexity:
Max: 12
AllCops:
NewCops: enable
TargetRubyVersion: 2.6
TargetRubyVersion: 3.1
plugins:
- rubocop-rake
20 changes: 12 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source 'https://rubygems.org'

ruby '>= 2.6.0'
ruby '>= 3.1.0'

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
Expand All @@ -12,7 +12,7 @@ ruby '>= 2.6.0'
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem 'jekyll', '~> 4.2.0'
gem 'jekyll'

# This is needed for GitHub Flavored Markdown
gem 'kramdown-parser-gfm'
Expand All @@ -25,20 +25,24 @@ group :development do
gem 'rake', require: false

# Verify good coding practices in Ruby files
gem 'rubocop', '~>1.25.0', require: false
gem 'rubocop', require: false

# Extension for Rake files
gem 'rubocop-rake', require: false
end

# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem 'minima', '~> 2.5'
gem 'minima'

# Removed from the stdlib
gem 'benchmark'
gem 'logger'

# If you have any plugins, put them here!
group :jekyll_plugins do
gem 'jekyll-feed', '~> 0.16'
gem 'jekyll-feed'
gem 'jekyll-include-cache'
gem 'jekyll-indico', '~> 0.6.2'
gem 'jekyll-indico'
# gem 'jekyll-indico', github: 'iris-hep/jekyll-indico', branch: 'main'
end

Expand All @@ -49,10 +53,10 @@ gem 'jekyll-last-modified-at'
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

# Needed by Nokogiri
gem 'pkg-config', '~> 1.4'
gem 'pkg-config'

# Performance-booster for watching directories on Windows
gem 'wdm', '~> 0.1.0' if Gem.win_platform?
gem 'wdm' if Gem.win_platform?

# Required on Ruby 3+ (next Jekyll will fix this missing dep)
gem 'webrick'
Expand Down
Loading