-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from stockholmux/version-box
Add a current version box to documentation homepage.
- Loading branch information
Showing
4 changed files
with
15 additions
and
0 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
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,2 @@ | ||
os = "Bottlerocket OS" | ||
brupop = "Bottlerocket Update Operator" |
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,3 @@ | ||
github = "https://github.com/bottlerocket-os/bottlerocket" | ||
path_prefix = "/tree/develop" | ||
github_issue_url = "https://github.com/bottlerocket-os/bottlerocket/issues/new/choose" |
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,8 @@ | ||
{{- $project_short := .Get "project" | default "os" -}} | ||
{{- $repo_metadata := index $.Site.Data.repos $project_short -}} | ||
{{- $full_version := print $.Site.Data.versions.current.os.major "." $.Site.Data.versions.current.os.minor "." $.Site.Data.versions.current.os.patch -}} | ||
<div class="card border-success mb-3"> | ||
<div class="card-body"> | ||
The most recent release of {{ index $.Site.Data.project_long_names $project_short }} is <strong>{{ $full_version }}</strong> (<a href="{{ $repo_metadata.github }}/releases/tag/v{{ $full_version }}">Release Notes</a>). | ||
</div> | ||
</div> |