Skip to content

Commit ed10a2e

Browse files
committed
Some restructure for multilanguage and fix nix flake and ruby
1 parent 797d0dd commit ed10a2e

30 files changed

Lines changed: 2413 additions & 90 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/01x5k4nlxcpyd85nnr0b9gm89rm8ff4x-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/fy1zkcaf993w05ylfqx93b27am49i27b-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/pbvr2vcj4pccc4w9v0j2nv15bar5n5sm-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/yj1wxm9hh8610iyzqnz75kvs6xl8j3my-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/381p90scrzj9dbjfwj9yn0kbnd49hvv6-nix-shell-env

.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc

Lines changed: 2214 additions & 0 deletions
Large diffs are not rendered by default.

Gemfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
source 'https://rubygems.org'
22

3-
gem "jekyll", "~> 4.3" # installed by `gem jekyll`
4-
# gem "webrick" # required when using Ruby >= 3 and Jekyll <= 4.2.2
5-
6-
gem "just-the-docs", "0.5.0" # pinned to the current release
7-
# gem "just-the-docs" # always download the latest release
8-
3+
gem "jekyll", "~> 4.3.3"
4+
gem "webrick"
5+
gem "just-the-docs", "0.5.0"
6+
gem "liquid", "~> 4.0.4" # This is the key fix for Ruby 3.2
97
gem "jekyll-default-layout"
10-
118
gem "jekyll-target-blank"
12-
139
gem "jekyll-redirect-from"

Gemfile.lock

Lines changed: 51 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.1)
5-
public_suffix (>= 2.0.2, < 6.0)
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
6+
bigdecimal (3.2.2)
67
colorator (1.1.0)
7-
concurrent-ruby (1.1.10)
8+
concurrent-ruby (1.3.5)
89
em-websocket (0.5.3)
910
eventmachine (>= 0.12.9)
1011
http_parser.rb (~> 0)
1112
eventmachine (1.2.7)
12-
ffi (1.15.5)
13+
ffi (1.17.2-arm64-darwin)
14+
ffi (1.17.2-x86_64-darwin)
15+
ffi (1.17.2-x86_64-linux-gnu)
1316
forwardable-extended (2.6.0)
17+
google-protobuf (4.31.1-arm64-darwin)
18+
bigdecimal
19+
rake (>= 13)
20+
google-protobuf (4.31.1-x86_64-darwin)
21+
bigdecimal
22+
rake (>= 13)
23+
google-protobuf (4.31.1-x86_64-linux-gnu)
24+
bigdecimal
25+
rake (>= 13)
1426
http_parser.rb (0.8.0)
15-
i18n (1.12.0)
27+
i18n (1.14.7)
1628
concurrent-ruby (~> 1.0)
17-
jekyll (4.3.0)
29+
jekyll (4.3.4)
1830
addressable (~> 2.4)
1931
colorator (~> 1.0)
2032
em-websocket (~> 0.5)
@@ -32,8 +44,10 @@ GEM
3244
webrick (~> 1.7)
3345
jekyll-default-layout (0.1.5)
3446
jekyll (>= 3.0, < 5.0)
35-
jekyll-sass-converter (2.2.0)
36-
sassc (> 2.0.1, < 3.0)
47+
jekyll-redirect-from (0.16.0)
48+
jekyll (>= 3.3, < 5.0)
49+
jekyll-sass-converter (3.1.0)
50+
sass-embedded (~> 1.75)
3751
jekyll-seo-tag (2.8.0)
3852
jekyll (>= 3.8, < 5.0)
3953
jekyll-target-blank (2.0.2)
@@ -45,49 +59,57 @@ GEM
4559
jekyll (>= 3.8.5)
4660
jekyll-seo-tag (>= 2.0)
4761
rake (>= 12.3.1)
48-
kramdown (2.4.0)
49-
rexml
62+
kramdown (2.5.1)
63+
rexml (>= 3.3.9)
5064
kramdown-parser-gfm (1.1.0)
5165
kramdown (~> 2.0)
52-
liquid (4.0.3)
53-
listen (3.7.1)
66+
liquid (4.0.4)
67+
listen (3.9.0)
5468
rb-fsevent (~> 0.10, >= 0.10.3)
5569
rb-inotify (~> 0.9, >= 0.9.10)
5670
mercenary (0.4.0)
57-
nokogiri (1.15.1-arm64-darwin)
71+
nokogiri (1.18.9-arm64-darwin)
5872
racc (~> 1.4)
59-
nokogiri (1.15.1-x86_64-darwin)
73+
nokogiri (1.18.9-x86_64-darwin)
6074
racc (~> 1.4)
61-
nokogiri (1.15.1-x86_64-linux)
75+
nokogiri (1.18.9-x86_64-linux-gnu)
6276
racc (~> 1.4)
6377
pathutil (0.16.2)
6478
forwardable-extended (~> 2.6)
65-
public_suffix (5.0.0)
66-
racc (1.6.2)
67-
rake (13.0.6)
79+
public_suffix (6.0.2)
80+
racc (1.8.1)
81+
rake (13.3.0)
6882
rb-fsevent (0.11.2)
69-
rb-inotify (0.10.1)
83+
rb-inotify (0.11.1)
7084
ffi (~> 1.0)
71-
rexml (3.2.5)
72-
rouge (4.0.0)
85+
rexml (3.4.1)
86+
rouge (4.6.0)
7387
safe_yaml (1.0.5)
74-
sassc (2.4.0)
75-
ffi (~> 1.9)
88+
sass-embedded (1.89.2)
89+
google-protobuf (~> 4.31)
90+
rake (>= 13)
91+
sass-embedded (1.89.2-arm64-darwin)
92+
google-protobuf (~> 4.31)
93+
sass-embedded (1.89.2-x86_64-darwin)
94+
google-protobuf (~> 4.31)
7695
terminal-table (3.0.2)
7796
unicode-display_width (>= 1.1.1, < 3)
78-
unicode-display_width (2.3.0)
79-
webrick (1.7.0)
97+
unicode-display_width (2.6.0)
98+
webrick (1.9.1)
8099

81100
PLATFORMS
82-
arm64-darwin-21
83-
x86_64-darwin-19
101+
arm64-darwin
102+
x86_64-darwin
84103
x86_64-linux
85104

86105
DEPENDENCIES
87-
jekyll (~> 4.3)
106+
jekyll (~> 4.3.3)
88107
jekyll-default-layout
108+
jekyll-redirect-from
89109
jekyll-target-blank
90110
just-the-docs (= 0.5.0)
111+
liquid (~> 4.0.4)
112+
webrick
91113

92114
BUNDLED WITH
93-
2.3.9
115+
2.6.9

Justfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,36 @@
11
# List available recipes
22
default:
33
@just --list
4+
@echo ""
5+
@echo "⚠️ IMPORTANT: If you're getting Ruby version errors, run 'nix develop' first!"
6+
@echo " The project uses Ruby 3.1 for compatibility, but your system has Ruby 3.3"
47

58
# Install dependencies
69
install:
7-
bundle install
10+
bundle install --path vendor/bundle
811

912
# Start the development server
1013
serve:
11-
bundle exec jekyll serve --livereload
14+
./jekyll-wrapper.sh serve --livereload
1215

1316
# Build the site for production
1417
build:
15-
bundle exec jekyll build
18+
./jekyll-wrapper.sh build
1619

1720
# Clean the built site
1821
clean:
19-
bundle exec jekyll clean
22+
./jekyll-wrapper.sh clean
2023

2124
# Update dependencies
2225
update:
2326
bundle update
2427

28+
# Fix Ruby compatibility issues and reinstall
29+
fix-ruby:
30+
rm -rf vendor/bundle
31+
rm -f Gemfile.lock
32+
bundle install --path vendor/bundle
33+
2534
# Check for broken links (requires html-proofer gem)
2635
check-links:
2736
bundle exec jekyll build

_plugins/ruby_compatibility.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Monkey patch for Ruby 3.2+ compatibility with older Liquid versions
2+
# The tainted? method was removed in Ruby 3.2, but Liquid 4.0.3 still uses it
3+
4+
if RUBY_VERSION >= "3.2.0"
5+
class Object
6+
def tainted?
7+
false
8+
end
9+
10+
def taint
11+
self
12+
end
13+
14+
def untaint
15+
self
16+
end
17+
end
18+
19+
class String
20+
def tainted?
21+
false
22+
end
23+
24+
def taint
25+
self
26+
end
27+
28+
def untaint
29+
self
30+
end
31+
end
32+
end

0 commit comments

Comments
 (0)