Skip to content

Commit

Permalink
Add Bundler 2.4 to documentation (#991)
Browse files Browse the repository at this point in the history
No blog post for now and just a link to the changelog in the What's new
page.
  • Loading branch information
deivid-rodriguez authored Dec 29, 2022
1 parent 0820374 commit 7522c84
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/config_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
36 changes: 36 additions & 0 deletions source/v2.4/docs.html.haml
Original file line number Diff line number Diff line change
@@ -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/[email protected] 2x, /images/[email protected] 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)
8 changes: 8 additions & 0 deletions source/v2.4/whats_new.html.haml
Original file line number Diff line number Diff line change
@@ -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"}.

0 comments on commit 7522c84

Please sign in to comment.