forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: move markdown tables to shortcode
also, add i18n definitions for terms in the patch release page Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
- Loading branch information
1 parent
85f71d3
commit 6d7a573
Showing
5 changed files
with
130 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -844,6 +844,11 @@ dl { | |
} | ||
} | ||
|
||
.release-highlighted-date { | ||
font-weight: bold; | ||
} | ||
|
||
|
||
.no-js .mermaid { | ||
display: none; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<div> | ||
<table class="release-eol-versions table table-striped col-md-8"> | ||
<thead class="thead"> | ||
<tr> | ||
<th class="col-md-2">{{ T "release_minor_version" }}</th> | ||
<th class="col-md-2">{{ T "final_patch_release" }}</th> | ||
<th class="col-md-2">{{ T "release_end_of_life_date" }}</th> | ||
<th class="col-md-4">{{ T "release_note" }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{ range $eolRelease := .Site.Data.releases.eol.branches }} | ||
<tr> | ||
<td> | ||
{{ $eolRelease.release }} | ||
</td> | ||
<td> | ||
{{ $eolRelease.finalPatchRelease }} | ||
</td> | ||
<td> | ||
{{ $eolRelease.endOfLifeDate }} | ||
</td> | ||
<td lang="en-US"> | ||
{{ $eolRelease.note | markdownify }} | ||
</td> | ||
</tr> | ||
{{ end }} | ||
</tbody> | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{{ range $releaseInfo := .Site.Data.releases.schedule.schedules }} | ||
{{- $version := printf "%.2f" $releaseInfo.release -}} | ||
{{- $dataIdVersion := replace ( printf "%.2f" $releaseInfo.release ) "." "-" | anchorize -}} | ||
|
||
<h3 id="{{ $dataIdVersion }}">{{ $version }}</h3> | ||
<p> | ||
{{ printf (T "release_info_next_patch") $releaseInfo.next.release | markdownify }} | ||
</p> | ||
<p> | ||
{{ $releaseInfo.next.note | markdownify }} | ||
</p> | ||
<p> | ||
{{ printf (T "release_info_eol") | ||
$version | ||
( printf "<time datetime=%s>%s</time>" | ||
(time.Format "2006-01-02" $releaseInfo.maintenanceModeStartDate) | ||
(time.Format ( T "release_date_format") $releaseInfo.maintenanceModeStartDate) | ||
) | ||
( printf "<time datetime=%s>%s</time>" | ||
(time.Format "2006-01-02" $releaseInfo.endOfLifeDate) | ||
(time.Format ( T "release_date_format") $releaseInfo.endOfLifeDate) | ||
) | ||
| safeHTML | markdownify }} | ||
</p> | ||
{{ if $releaseInfo.previousPatches }} | ||
<div> | ||
<table class="release-maintained-version table table-striped col-md-8"> | ||
<thead class="thead"> | ||
<tr> | ||
<th class="col-md-2">{{ T "patch_release" }}</th> | ||
<th class="col-md-2">{{ T "release_cherry_pick_deadline" }}</th> | ||
<th class="col-md-2">{{ T "release_target_date" }}</th> | ||
<th class="col-md-4">{{ T "release_note" }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{ range $patchReleaseInfo := $releaseInfo.previousPatches }} | ||
<tr> | ||
<td> | ||
{{ $patchReleaseInfo.release }} | ||
</td> | ||
<td> | ||
{{ $patchReleaseInfo.cherryPickDeadline }} | ||
</td> | ||
<td> | ||
{{ $patchReleaseInfo.targetDate }} | ||
</td> | ||
<td lang="en-US"> | ||
{{ $patchReleaseInfo.note | markdownify }} | ||
</td> | ||
</tr> | ||
{{ end }} | ||
</tbody> | ||
</table> | ||
</div> | ||
{{ end }} | ||
{{ end }} |