From 8725214b440c31eb18ee33cc7ccf8747ed106b48 Mon Sep 17 00:00:00 2001 From: adam-wolfe <122040687+adam-wolfe@users.noreply.github.com> Date: Fri, 28 Jul 2023 18:46:46 -0400 Subject: [PATCH] Reworked post-download-script for other ?types Signed-off-by: adam-wolfe <122040687+adam-wolfe@users.noreply.github.com> --- _includes/legal-script.html | 10 +++-- _includes/post-download-script.html | 67 +++++++++++++++++++++-------- post_download.md | 6 +-- 3 files changed, 59 insertions(+), 24 deletions(-) diff --git a/_includes/legal-script.html b/_includes/legal-script.html index ce99686b..188c18d9 100644 --- a/_includes/legal-script.html +++ b/_includes/legal-script.html @@ -4,7 +4,7 @@ if (params.has('version')) { if (params.has('type') && params.get('type') == "cli") { document.getElementById('download_button').href = - "https://docs.zowe.org/stable/user-guide/cli-installcli.html" + "post_download.html?version=" + params.get('version') + "&type=" + params.get('type'); document.getElementById('download_button').onclick = function () { ga && ga('send', 'event', 'download', 'Zowe CLI ' + params.get('version'), 'zowe-cli-package-' + (params.get('preview') ? 'next-' + params.get('preview') : params.get('version')) + '.zip'); @@ -17,7 +17,7 @@ (params.get('preview') ? 'next-' + params.get('preview') : params.get('version')) + '.zip'; } else if (params.has('type') && params.get('type') == "cli-plugins") { document.getElementById('download_button').href = - "https://docs.zowe.org/stable/user-guide/cli-installcli.html" + "post_download.html?version=" + params.get('version') + "&type=" + params.get('type'); document.getElementById('download_button').onclick = function () { ga && ga('send', 'event', 'download', 'Zowe CLI Plugins ' + params.get('version'), 'zowe-cli-plugins-' + @@ -87,7 +87,8 @@ document.getElementById('download_file_message').innerHTML = 'You are downloading zowe-chat-' + params.get('version') + '.tar.gz'; } else if (params.has('type') && params.get('type') == "python-sdk") { - document.getElementById('download_button').href = "https://docs.zowe.org/stable/user-guide/sdks-using.html" + document.getElementById('download_button').href = + "post_download.html?version=" + params.get('version') + "&type=" + params.get('type'); document.getElementById('download_button').onclick = function () { ga && ga('send', 'event', 'download', 'Zowe SMPE ' + params.get('version'), 'zowe-python-sdk-' + (params.get('preview') ? 'next-' + params.get('preview') : params.get('version')) + '.zip'); @@ -99,7 +100,8 @@ document.getElementById('download_file_message').innerHTML = 'You are downloading zowe-python-sdk-' + (params.get('preview') ? 'next-' + params.get('preview') : params.get('version')) + '.zip'; } else if (params.has('type') && params.get('type') == "nodejs-sdk") { - document.getElementById('download_button').href = "https://docs.zowe.org/stable/user-guide/sdks-using.html" + document.getElementById('download_button').href = + "post_download.html?version=" + params.get('version') + "&type=" + params.get('type'); document.getElementById('download_button').onclick = function () { ga && ga('send', 'event', 'download', 'Zowe SMPE ' + params.get('version'), 'zowe-nodejs-sdk-' + (params.get('preview') ? 'next-' + params.get('preview') : params.get('version')) + '.zip'); diff --git a/_includes/post-download-script.html b/_includes/post-download-script.html index 40077915..55885e3d 100644 --- a/_includes/post-download-script.html +++ b/_includes/post-download-script.html @@ -1,28 +1,60 @@ \ No newline at end of file diff --git a/post_download.md b/post_download.md index 90100fd2..28601ddb 100644 --- a/post_download.md +++ b/post_download.md @@ -1,15 +1,15 @@ --- title: "Download" -extraHeaders: google-analytics-downloads-header.html +extraHeaders: google-analytics-downloads-header.html extraJs: post-download-script.html ---
-

Thank you for downloading the Zowe binary

+

Thank you for downloading the Zowe binary

If you had an issue or your download did not start, please click here to try again.


- Verify Hash and Signature of Zowe Binary + Verify Hash and Signature of Zowe Binary

These commands are tested on both Mac OS X v10.13.6 and Ubuntu v17.11.


Step 1 - Verify Hash Code