Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing /whats_new.html page #1427

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
page "/changelog.html", layout: :two_column_layout
page "/conduct.html", layout: :two_column_layout
page "/compatibility.html", layout: :two_column_layout
page "/whats_new.html", layout: :two_column_layout
page /\/v(\d+.\d+)\/(?!bundle_|commands|docs|man)(.*)/, layout: :two_column_layout
page /\/v(.*)\/man\/(.*)/, layout: :two_column_layout
page /man\/(.*)/, layout: :two_column_layout
Expand Down
10 changes: 7 additions & 3 deletions lib/tasks/versions.rake
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@ namespace :versions do
last = VERSIONS.last
succ = VERSIONS.last.succ
puts "Latest version is #{last}. Creating version #{succ}..."
cp_r "source/#{last}", "source/#{succ}"
last_root = "source/#{last}"
succ_root = "source/#{succ}"
cp_r last_root, succ_root
puts "Creating empty What's New page..."
render_whats_new(succ)
puts "Creating announcement blog post..."
sh "middleman article 'Bundler #{succ}'"
puts "Updating latest version symlinks..."
Dir.glob("source/#{succ}/man/*.html.erb") do |file|
url = file.delete_prefix("source/#{succ}/")
Dir.glob("#{succ_root}/man/*.html.erb") do |file|
url = file.delete_prefix("#{succ_root}/")
latest_man = "source/#{url}"
FileUtils.ln_sf Pathname.new(file).relative_path_from(File.dirname(latest_man)), latest_man
end
puts "Updating whats_new symlink..."
FileUtils.ln_sf Pathname.new("#{succ_root}/whats_new.html.md").relative_path_from("source"), "source/whats_new.html.md"
end
end

Expand Down
2 changes: 1 addition & 1 deletion source/guides/getting_started.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Bundler is an exit from dependency hell, and ensures that the gems
you need are present in development, staging, and production.
Starting work on a project is as simple as `bundle install`.

<a href="../v2.4/whats_new.html" class="btn btn-primary">What's new in Bundler</a>
<a href="../whats_new.html" class="btn btn-primary">What's new in Bundler</a>
<a href="./rationale.html" class="btn btn-primary">Why Bundler exists</a>

## Getting Started
Expand Down
1 change: 1 addition & 0 deletions source/whats_new.html.md