Skip to content

Commit 9227538

Browse files
authored
Update compose.yml / Bump jquery to v3.7.1 / refactor Rakefile (#171)
* Set `BUNDLE_AUTO_INSTALL` to auto-install jekyll * Use environment variable for the image tag * Change const name * Bump jquery from 3.5.1 to 3.7.1
1 parent 97daeb8 commit 9227538

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Diff for: Rakefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ require 'yaml'
44
require 'bundler'
55

66
SOURCE_DIR = 'src'
7-
INDEX_HTML = 'files/railties/RDOC_MAIN_rdoc.html'
8-
NEW_INDEX_HTML = 'files/railties/RDOC_MAIN_md.html'
7+
INDEX_HTML = 'files/railties/RDOC_MAIN_md.html'
8+
OLD_INDEX_HTML = 'files/railties/RDOC_MAIN_rdoc.html'
99
MY_SDOC_BRANCH = 'main'
1010

1111
desc 'Generate documentation for default Rails version and build Jekyll site'
@@ -85,9 +85,9 @@ def generate_src(target_version:)
8585
cd target_dir do
8686
# Generate index.html
8787
if Gem::Version.new(target_version) >= Gem::Version.new('7.1')
88-
cp NEW_INDEX_HTML, 'index.html'
89-
else
9088
cp INDEX_HTML, 'index.html'
89+
else
90+
cp OLD_INDEX_HTML, 'index.html'
9191
end
9292

9393
# Prepend version number to the absolute path in navigation.html

Diff for: compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
services:
22
app:
3-
image: ruby:3.3
4-
# Use Ruby 2.7 for older builds
5-
# image: ruby:2.7
3+
# NOTE: Use Ruby 2.7 for older builds
4+
image: ruby:${RUBY_VERSION:-3.3}
65
working_dir: /app
76
volumes:
87
- .:/app
98
environment:
109
RUBY_YJIT_ENABLE: true
10+
BUNDLE_AUTO_INSTALL: true

Diff for: src/_layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</div>
6969
</div>
7070

71-
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" crossorigin="anonymous"></script>
71+
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js" crossorigin="anonymous"></script>
7272
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
7373
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.3.1/anchor.min.js" integrity="sha512-zPB79j2C+3sFS9zcA3vg/z6bVKzJVEyu9pY5w89akQRys76zpAT2t6S3wZKla3QQ14O5l/Yt0RUQ/DHXx82Y5g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
7474
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>

0 commit comments

Comments
 (0)