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 archive page for older LTS changelogs and update recent changelog page #7746

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
80b0669
Add archive page for older LTS changelogs and update recent changelog…
biru-codeastromer Dec 11, 2024
1c36632
Merge branch 'master' into feature/archive-changelog
biru-codeastromer Dec 11, 2024
30db5fd
Merge branch 'master' into feature/archive-changelog
gounthar Dec 11, 2024
ea24d32
Fix errors in PR checks
biru-codeastromer Dec 11, 2024
bb7ccf2
Merge branch 'feature/archive-changelog' of https://github.com/biru-c…
biru-codeastromer Dec 11, 2024
cd4e6f6
Merge branch 'master' into feature/archive-changelog
biru-codeastromer Dec 11, 2024
3a29486
Fix changelog pages: reverse recent and archived logic, update links …
biru-codeastromer Dec 11, 2024
0b238fc
Merge branch 'feature/archive-changelog' of https://github.com/biru-c…
biru-codeastromer Dec 11, 2024
a484f7f
Fix changelog logic: Stable shows latest 25 releases; Archived shows …
biru-codeastromer Dec 12, 2024
d6a12ae
fix the reversing of changelog-stable and changelog-stable-old
biru-codeastromer Dec 12, 2024
fe3ac3b
corrected the changelog-stable and changelog-stable-old to show the n…
biru-codeastromer Dec 13, 2024
2072f3b
Update content/changelog-stable/index.html.haml
biru-codeastromer Dec 13, 2024
e936bcd
Update content/changelog-stable-old/index.html.haml
biru-codeastromer Dec 13, 2024
5e87421
Updated content/changelog-stable-old/index.html.haml
biru-codeastromer Dec 13, 2024
8bdd0c7
updated all the required suggestions
biru-codeastromer Dec 13, 2024
6297a12
changed 27 to 25 in main codes
biru-codeastromer Dec 13, 2024
76a2721
changed spells in index.html.haml
biru-codeastromer Dec 13, 2024
74eddd2
Merge branch 'master' into feature/archive-changelog
biru-codeastromer Dec 13, 2024
72eeac4
Applied suggestions from code review
biru-codeastromer Dec 13, 2024
2f798c3
Remove duplicate archive link and Renamed files for consistency with …
biru-codeastromer Dec 13, 2024
e6290a4
updated both index.html.haml to maintain the changed file names,Renam…
biru-codeastromer Dec 13, 2024
ef57af6
reverted the files back to original and updated their index files again
biru-codeastromer Dec 13, 2024
10fced5
Merge branch 'master' into feature/archive-changelog
biru-codeastromer Dec 13, 2024
eab556d
Merge branch 'master' into feature/archive-changelog
MarkEWaite Dec 13, 2024
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
28 changes: 28 additions & 0 deletions content/changelog-stable-old/index.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: changelog
title: Archived LTS Changelog
show_ratings: false
has_rss: false
actions:
<a class="app-button app-button--primary app-mobile-hide" href="/changelog-stable">
<ion-icon name="arrow-back-circle-outline"></ion-icon>
Back to Recent LTS Changelog
</a>
---

.ratings
- # Load older changelogs (all except the most recent 25, ordered correctly)
- archived_changelogs = site.changelogs[:lts].reverse.drop(25)
- archived_changelogs.each do |release|
%div
= partial('../_partials/release-header.html.haml', :release => release, :url => 'changelog-stable-old')
- if release.changes
%div.app-releases__list__items
= partial('../_partials/changelog-changes.html.haml', :changes => release.changes)
- else
%p No notable changes for this release.

.app-banner
This is the changelog archive. The changelog for recent releases can be found
%a{:href => '/changelog-stable/'}
in the main LTS changelog page.
27 changes: 16 additions & 11 deletions content/changelog-stable/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,27 @@ actions:
---

.ratings
- # source: https://github.com/jenkins-infra/jenkins.io/blob/master/content/_data/changelogs/lts.yml
- site.changelogs[:lts].reverse_each do | release |
- # Load the most recent 25 changelogs (latest first)
- recent_changelogs = site.changelogs[:lts].reverse.take(25)
- recent_changelogs.each do |release|
- if Gem::Version.new(release.version) <= Gem::Version.new(site.jenkins.stable)
%div
= partial('release-header.html.haml', :release => release, :url => 'changelog-stable')
- if release.changes and release.lts_changes and release.lts_baseline
= partial('../_partials/release-header.html.haml', :release => release, :url => 'changelog-stable')
- if release.changes && release.lts_changes && release.lts_baseline
.app-releases__notable-changes{:style => "margin-top: 15px"}
-# TODO figure out how to get rid of this
= "Changes since #{release.lts_baseline}"
%div.app-releases__list__items
= partial('changelog-changes.html.haml', :changes => release.changes)
- if release.changes
%div.app-releases__list__items
= partial('../_partials/changelog-changes.html.haml', :changes => release.changes)

- if release.changes and release.lts_changes
- if release.changes && release.lts_changes
.app-releases__notable-changes
= "Notable changes since #{release.lts_predecessor}"
- if release.lts_predecessor
= "Notable changes since #{release.lts_predecessor}"
%div.app-releases__list__items
= partial('changelog-changes.html.haml', :changes => release.lts_changes)
= partial('../_partials/changelog-changes.html.haml', :changes => release.lts_changes)

= partial('changelog-stable.html')
.app-banner
The changelog of historical releases can be found
%a{:href => '/changelog-stable-old/'}
in the LTS changelog archive.
Loading