Skip to content

Commit

Permalink
adding V1 EOS banner (#3393)
Browse files Browse the repository at this point in the history
* adding V1 EOS banner

Signed-off-by: anaxceron <[email protected]>

* updated message per Jakub feedback

Signed-off-by: anaxceron <[email protected]>

* updating banner wording

Signed-off-by: anaxceron <[email protected]>

* updating archived doc version message

Signed-off-by: anaxceron <[email protected]>

---------

Signed-off-by: anaxceron <[email protected]>
Co-authored-by: Andrew Jandacek <[email protected]>
  • Loading branch information
anaxceron and janan07 authored Feb 1, 2024
1 parent f88c45d commit bb2224f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ module.exports = {
}),
},
themeConfig: {
announcementBar: {
id: 'announcementBar-1', // increment on change
content:
'📌 <b>Support for Zowe Version 1 ends on Sept. 30, 2024</b>. Follow <a href="https://docs.zowe.org/stable/extend/migrate-extensions/" target="_blank">this guide</a> to migrate to Zowe Version 2.',
textColor: '#000',
},
docs: {
sidebar: {
hideable: true
Expand Down
2 changes: 1 addition & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ html[data-theme="light"] .darkTheme {
div[class^='announcementBar_'] {
font-weight: 400;
font-size: 1.5em;
background: repeating-linear-gradient(35deg,#edf2fa,#edf2fa 20px,#c9d9f2 10px, #c9d9f2 40px) !important;
background: repeating-linear-gradient(35deg,#fefae9,#fefae9 20px,#fdf0be 10px, #fdf0be 40px) !important;
}


9 changes: 6 additions & 3 deletions src/theme/DocVersionBanner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ function UnmaintainedVersionLabel({siteTitle, versionMetadata}) {
description="The label used to tell the user that he's browsing an unmaintained doc version"
values={{
siteTitle,
guideLink: (
<a href="https://docs.zowe.org/stable/extend/migrate-extensions" target="_blank">the migration guide</a>
),
versionLabel: <b>{versionMetadata.label}</b>
}}>
{
`${versionMetadata.version[1] === "2" ? "" : `Please Note: The Zowe V1 LTS release has transitioned to "maintenance" effective 04/23/2022 with the 1.28 release and will no longer include new features. Security patches and critical bug fixes will continue to be documented for this release. ${versionMetadata.version !== "v1.28.x" ? " If you plan to remain on the V1 LTS release, please see the latest version of Zowe Docs for the maintained V1 LTS release (v1.28.x)." : "" }`}`
`${versionMetadata.version[1] === "2" ? "" : `Please Note: Support for Zowe Version 1 ends on Sept. 30, 2024. Follow {guideLink} to upgrade to Zowe Version 2. ${versionMetadata.version !== "v1.28.x" ? " If you plan to remain on the V1 LTS release, please see the latest version of Zowe Docs for the maintained V1 LTS release (v1.28.x)." : "" }`}`
}
</Translate>
</>
Expand Down Expand Up @@ -75,10 +78,10 @@ function LatestVersionSuggestionLabel({versionLabel, versionMetadata, to, onClic
</Translate>
</Link>
</b>
),
),
}}>
{
`${versionMetadata.version[1] === "2" ? "For documentation of the {latestVersionLink}, see ({versionLabel})" : 'For the latest Zowe features and capabilities, please reference the latest version of Zowe Docs for the "active" {latestVersionLink} ({versionLabel})'}.`
`${versionMetadata.version[1] === "2" ? "For {guideLink} of the {latestVersionLink}, see ({versionLabel})" : 'For the latest Zowe features and capabilities, please reference the latest version of Zowe Docs for the "active" {latestVersionLink} ({versionLabel})'}.`
}
</Translate>
);
Expand Down

0 comments on commit bb2224f

Please sign in to comment.