mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 20:48:11 +00:00
Adding code comments.
Signed-off-by: Sunil Singh <sunil.singh@suse.com>
This commit is contained in:
@@ -28,6 +28,7 @@ function UnreleasedVersionLabel({siteTitle, versionMetadata}) {
|
||||
);
|
||||
}
|
||||
function UnmaintainedVersionLabel({siteTitle, versionMetadata}) {
|
||||
// Start of custom unmaintained archived version label. The purpose of this custom addition is to display a banner for docs versions that are scheduled for archiving.
|
||||
if (versionMetadata.className === "toArchive") {
|
||||
return (
|
||||
<Translate
|
||||
@@ -57,6 +58,7 @@ function UnmaintainedVersionLabel({siteTitle, versionMetadata}) {
|
||||
</Translate>
|
||||
);
|
||||
}
|
||||
// End of custom unmaintained archived version label.
|
||||
}
|
||||
const BannerLabelComponents = {
|
||||
unreleased: UnreleasedVersionLabel,
|
||||
|
||||
Reference in New Issue
Block a user