File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,13 @@ desc 'Generate adn build documentation for older versions of Rails'
23
23
task :build_multi do
24
24
# WORKAROUND: use `reverse_each` instead of `each` to avoid nokogiri installation error
25
25
config [ 'rails_versions' ] . reverse_each do |version , detail |
26
+ if detail [ 'latest' ]
27
+ puts "=== Skip Rails v#{ version } because it's latest version ==="
28
+ next
29
+ else
30
+ puts "=== Build Rails v#{ version } documentation ==="
31
+ end
32
+
26
33
dir = "#{ SOURCE_DIR } /#{ version } "
27
34
mkdir dir unless Dir . exist? ( dir )
28
35
@@ -31,6 +38,7 @@ task :build_multi do
31
38
generate_rails_rdoc
32
39
generate_src ( target_version : version )
33
40
end
41
+ puts
34
42
sh 'bundle exec jekyll build'
35
43
end
36
44
Original file line number Diff line number Diff line change @@ -2,8 +2,11 @@ title: RailsDoc(β)
2
2
description : Ruby on Rails API Documentation.
3
3
url : https://railsdoc.github.io
4
4
source : src
5
- default_rails_version : 7.1.0
5
+ default_rails_version : ' 7.1.0'
6
6
rails_versions :
7
+ " 7.1 " :
8
+ specific_version : " 7.1.0"
9
+ latest : true
7
10
" 7.0 " :
8
11
specific_version : " 7.0.8"
9
12
" 6.1 " :
You can’t perform that action at this time.
0 commit comments