diff --git a/helpers/config_helper.rb b/helpers/config_helper.rb index bf8975c782..bd8a4ae241 100644 --- a/helpers/config_helper.rb +++ b/helpers/config_helper.rb @@ -14,9 +14,9 @@ def versions_grouped_by_status private def status(version) - if version == "v2.3" + if version == "v2.4" "Current release" - elsif %w[v2.2 v2.1].include?(version) + elsif %w[v2.3 v2.2 v2.1].include?(version) "Legacy release" else "Deprecated release" diff --git a/source/v2.4/docs.html.haml b/source/v2.4/docs.html.haml new file mode 100644 index 0000000000..1c25958688 --- /dev/null +++ b/source/v2.4/docs.html.haml @@ -0,0 +1,36 @@ +- primary_commands = %w(bundle-install.1 bundle-update.1 bundle-cache.1 bundle-exec.1 bundle-config.1 bundle-help.1) + +.bg-light-blue.header + = image_tag '/images/docs_header_transparent_bg.png', + srcset: '/images/docs_header_transparent_bg.png 1x, /images/docs_header_transparent_bg@2x.png 2x, /images/docs_header_transparent_bg@3x.png 3x', + class: 'img-fluid header-padding', + style: 'max-width: 400px;' + +.container + .row.docs.my-5 + .col-md-6.col-12 + %h3 + %b Guides + %p + Step-by-step tutorials that include useful explanations and and detailed instructions to help you get up and running. + %ul.ul-padding + - guides.each do |guide| + %li= link_to_guide guide + %li= link_to "Contributing to Bundler", "/doc/readme.html" + + .col-md-5.offset-md-1.col-12 + %h3 + %b Reference Guides + %p + In-depth articles with information on each primary command and utility, and how to use them. + %h4 + %b Primary Commands + %ul.ul-padding + - primary_commands.select{ |page| path_exist?(page) }.each do |page| + %li= link_to_documentation(page) + + %h4 + %b Utilities + %ul.ul-padding + - other_commands(primary_commands).each do |page| + %li= link_to_documentation(page) diff --git a/source/v2.4/whats_new.html.haml b/source/v2.4/whats_new.html.haml new file mode 100644 index 0000000000..062bafabaf --- /dev/null +++ b/source/v2.4/whats_new.html.haml @@ -0,0 +1,8 @@ +.container.guide + %h1 + What's New in + = current_visible_version + + %p + As always, a detailed list of every change is provided in + #{link_to "the changelog", "https://github.com/rubygems/rubygems/blob/3.4/bundler/CHANGELOG.md"}.