Adding code comments.

Signed-off-by: Sunil Singh <sunil.singh@suse.com>
This commit is contained in:
Sunil Singh
2025-02-11 15:26:14 -08:00
parent 6fcfa74a57
commit 9377721b61
+2
View File
@@ -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,