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'
2323task :build_multi do
2424 # WORKAROUND: use `reverse_each` instead of `each` to avoid nokogiri installation error
2525 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+
2633 dir = "#{ SOURCE_DIR } /#{ version } "
2734 mkdir dir unless Dir . exist? ( dir )
2835
@@ -31,6 +38,7 @@ task :build_multi do
3138 generate_rails_rdoc
3239 generate_src ( target_version : version )
3340 end
41+ puts
3442 sh 'bundle exec jekyll build'
3543end
3644
Original file line number Diff line number Diff line change @@ -2,8 +2,11 @@ title: RailsDoc(β)
22description : Ruby on Rails API Documentation.
33url : https://railsdoc.github.io
44source : src
5- default_rails_version : 7.1.0
5+ default_rails_version : ' 7.1.0'
66rails_versions :
7+ " 7.1 " :
8+ specific_version : " 7.1.0"
9+ latest : true
710 " 7.0 " :
811 specific_version : " 7.0.8"
912 " 6.1 " :
You can’t perform that action at this time.
0 commit comments