Skip to content

Commit

Permalink
Don't show install man page links from other commands
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jan 23, 2025
1 parent f1d0b88 commit bb5791b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helpers/config_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def versions
end

def versions_grouped_by_status
versions.reverse.group_by { status(_1) }
versions.select {|version| documentation_path(current_page_without_version, version) }.reverse.group_by { status(_1) }
end

private
Expand Down
2 changes: 1 addition & 1 deletion source/partials/_commands_sidebar.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
%optgroup{label: status}
- _versions.each do |version|
- selected = version == current_visible_version
- value = documentation_path(current_page_without_version, version) || documentation_path('bundle-install.1', version)
- value = documentation_path(current_page_without_version, version)
%option{selected: selected, value: value}
= version
%h4 General
Expand Down

0 comments on commit bb5791b

Please sign in to comment.