Skip to content

Commit c4aa7f1

Browse files
authored
Merge pull request #162 from cxharris/master
Home page changes
2 parents 9ced8ed + 054f8f6 commit c4aa7f1

File tree

8 files changed

+51
-127
lines changed

8 files changed

+51
-127
lines changed

docs/_config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ company_name: IBM
1616
github_editme_path:
1717
# if you're using Github, provide the basepath to the branch you've created for reviews, following the sample here. if not, leave this value blank.
1818

19-
path_to_generated_docs: https://github.com/IBM/zowe-cli-cics-deploy-plugin/blob/master/docs-internal/
20-
# Location of the CLIReadme.md file that's generated when docs are built
21-
2219
# gitlab_editme_path: tomjoht/documentation-theme-jekyll/tree/master
2320
# if you're using GitLab, provide the basepath to the branch you've created for reviews, following the sample here. if not, leave this value blank.
2421

docs/_data/sidebars/cdp_commads_sidebar.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

docs/_data/sidebars/cdp_sidebar.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,33 +58,33 @@ entries:
5858
output: web
5959
folderitems:
6060
- title: create cics-deploy-profile
61-
external_url: https://github.com/IBM/zowe-cli-cics-deploy-plugin/blob/master/docs-internal/CLIReadme.md#create--cre
61+
url: cdp-CLIReadMe#create--cre
6262
output: web
6363
- title: update cics-deploy-profile
64-
external_url: https://github.com/IBM/zowe-cli-cics-deploy-plugin/blob/master/docs-internal/CLIReadme.md#update--upd
64+
url: cdp-CLIReadMe#update--upd
6565
output: web
6666
- title: delete cics-deploy-profile
67-
external_url: https://github.com/IBM/zowe-cli-cics-deploy-plugin/blob/master/docs-internal/CLIReadme.md#delete--rm
67+
url: cdp-CLIReadMe#delete--rm
6868
output: web
6969
- title: list cics-deploy-profile
70-
external_url: https://github.com/IBM/zowe-cli-cics-deploy-plugin/blob/master/docs-internal/CLIReadme.md#list--ls
70+
url: cdp-CLIReadMe#list--ls
7171
output: web
7272
- title: set-default cics-deploy-profile
73-
external_url: https://github.com/IBM/zowe-cli-cics-deploy-plugin/blob/master/docs-internal/CLIReadme.md#set-default--set
73+
url: cdp-CLIReadMe#set-default--set
7474
output: web
7575

7676
- title: Commands - CICS deploy
7777
output: web
7878
folderitems:
7979
- title: generate bundle
80-
external_url: https://github.com/IBM/zowe-cli-cics-deploy-plugin/blob/master/docs-internal/CLIReadme.md#module-generate
80+
url: cdp-CLIReadMe#generate--g--gen
8181
output: web
8282
- title: push bundle
83-
external_url: https://github.com/IBM/zowe-cli-cics-deploy-plugin/blob/master/docs-internal/CLIReadme.md#module-push
83+
url: cdp-CLIReadMe#push--p
8484
output: web
8585
- title: deploy bundle
86-
external_url: https://github.com/IBM/zowe-cli-cics-deploy-plugin/blob/master/docs-internal/CLIReadme.md#module-deploy
86+
url: cdp-CLIReadMe#deploy--d--dep
8787
output: web
8888
- title: undeploy bundle
89-
external_url: https://github.com/IBM/zowe-cli-cics-deploy-plugin/blob/master/docs-internal/CLIReadme.md#module-undeploy
89+
url: cdp-CLIReadMe#undeploy--u--udep
9090
output: web

docs/css/customstyles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,10 @@ a.no_icon:after
960960
margin-bottom: 10px;
961961
}
962962

963+
.clipboardbutton {
964+
display: block;
965+
margin-left: 97%;
966+
}
963967
/* algolia search */
964968

965969
.search {

docs/js/customscripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $(document).ready(function () {
3636
$(this).attr('id', currentId);
3737

3838
//trigger
39-
var clipButton = '<button class="btn btn-primary btn-xs" data-clipboard-target="#' + currentId + '"><i class="fa fa-copy"></i></button>';
39+
var clipButton = '<div class="clipboardbutton"><button class="btn btn-primary btn-xs" data-clipboard-target="#' + currentId + '"><i class="fa fa-copy"></i></button></div>';
4040
$(this).after(clipButton);
4141
});
4242

docs-internal/CLIReadme.md renamed to docs/pages/cdp/CLIReadme.md

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,12 @@
1-
# Zowe CLI cics-deploy plugin command reference
2-
3-
### Table of Contents
4-
* [cics-deploy](#module-cics-deploy)
5-
* [deploy | d | dep](#module-deploy)
6-
* [bundle](#command-bundle)
7-
* [generate | g | gen](#module-generate)
8-
* [bundle](#command-bundle)
9-
* [push | p](#module-push)
10-
* [bundle](#command-bundle)
11-
* [undeploy | u | udep](#module-undeploy)
12-
* [bundle](#command-bundle)
13-
* [profiles](#module-profiles)
14-
* [create | cre](#module-create)
15-
* [cics-deploy-profile](#command-cics-deploy-profile)
16-
* [update | upd](#module-update)
17-
* [cics-deploy-profile](#command-cics-deploy-profile)
18-
* [delete | rm](#module-delete)
19-
* [cics-deploy-profile](#command-cics-deploy-profile)
20-
* [list | ls](#module-list)
21-
* [cics-deploy-profiles](#command-cics-deploy-profiles)
22-
* [set-default | set](#module-set-default)
23-
* [cics-deploy-profile](#command-cics-deploy-profile)
24-
25-
1+
---
2+
title: Zowe CLI cics-deploy plugin command reference
3+
keywords:
4+
summary: "This section contains syntax reference information for the Zowe CLI CICS deploy plugin"
5+
sidebar: cdp_sidebar
6+
permalink: cdp-CLIReadMe.html
7+
folder: cdp
8+
toc: true
9+
---
2610
# cics-deploy<a name="module-cics-deploy"></a>
2711
Generate and deploy IBM CICS bundle resources
2812
## deploy | d | dep<a name="module-deploy"></a>

docs/pages/cdp/cdp-Home.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
title: Zowe CLI CICS deploy plugin
33
tags: [getting_started]
44
keywords:
5-
summary: "The Zowe command line interface (CLI) provides a simple and streamlined way to interact with IBM z/OS. The cics-deploy plugin extends the Zowe CLI to deploy applications developed on a workstation to IBM CICS Transaction Server for z/OS (CICS)."
5+
summary: "The Zowe command line interface (CLI) provides a simple and streamlined way to interact with IBM z/OS. The cics-deploy plugin extends the Zowe CLI to deploy Node.js applications developed on a workstation to IBM CICS Transaction Server for z/OS (CICS)."
66
sidebar: cdp_sidebar
77
permalink: index.html
88
folder: cdp
99
---
1010

11-
It aims to provide an experience for developers and CI/CD automation pipelines similar to deploying to a cloud platform when deploying to CICS.
11+
It provides a Node.js CICS deployment workflow for developers and CI/CD automation pipelines similar to that experienced when deploying Node.js applications to the cloud.
1212

13-
The plug-in provides the following commands:
14-
* [zowe cics-deploy generate bundle]({{ site.path_to_generated_docs }}CLIReadme.md#module-generate) - Generate a CICS bundle in the working directory. Typically used by developers to package their existing application as a CICS bundle.
13+
Before you start, and especially if you are not familiar with the world of z/OS, Zowe and CICS, it's a good idea to read about some of the key concepts, which include [Zowe](cdp-zowe-and-cli), [Zowe CLI profiles](cdp-zowe-profiles) and [CICS bundles](cdp-cics-bundles). If you're keen to get going quickly, you can jump right in and follow along with our tutorial on [Deploying your first app](cdp-Deploying-your-first-app).
1514

16-
* [zowe cics-deploy push bundle]({{ site.path_to_generated_docs }}CLIReadme.md#module-push) - Firstly undeploy the previous version of the CICS bundle from CICS incase it had been previously deployed. Then copy the bundle from the working directory to a z/OS directory, and run npm to install dependencies for each Node.js application in the bundle. Finally deploy the bundle to one or more CICS regions within a CICSplex. Typically used by developers to deploy applications in CICS ready for testing.
15+
When everything has been [installed](cdp-Installation) and [you've created the Zowe CLI profiles](cdp-Create-Zowe-CLI-profiles), you can deploy a Node.js application from your workstation to CICS in two steps:
1716

18-
* [zowe cics-deploy deploy bundle]({{ site.path_to_generated_docs }}CLIReadme.md#module-deploy) - Deploy a CICS bundle that is in a z/OS directory to one more CICS regions within a CICSplex. The DFHDPLOY utility is used to define the BUNDLE resource in a CICS system definition (CSD) file or CPSM Business Application Services (BAS) file, then install and enable the resource in the target CICS regions. Typically used by developers and CI-CD pipelines that require more precise control when deploying applications to CICS, for example to install the bundle in subsets of CICS regions in a cluster in a manner that maintains the availability of the application for clients.
17+
1. Use the [zowe cics-deploy generate bundle](cdp-CLIReadMe#generate--g--gen) command to generate some metadata and artifacts that help the target CICS system understand your application.
18+
1. Use the [zowe cics-deploy push bundle](cdp-CLIReadMe#push--p) command to push the generated bundle to one or more regions within a CICSplex, enabling and deploying it as an executing application.
1919

20-
* [zowe cics-deploy undeploy bundle]({{ site.path_to_generated_docs }}CLIReadme.md#module-undeploy) - Undeploy a CICS bundle from one or more CICS regions within a CICSplex. The DFHDPLOY utility is used to disable then discard the BUNDLE resource from the target CICS regions, then the resource is deleted from a CICS CSD or CPSM BAS file. Typically used by developers and CI-CD pipelines that require more precise control when undeploying applications to CICS.
20+
Should you need it, and if you understand a little more about CICS, further commands like [zowe cics-deploy deploy bundle](cdp-CLIReadMe#deploy--d--dep) and [zowe cics-deploy undeploy bundle](cdp-CLIReadMe#undeploy--u--udep) offer you finer-grained control of the process - for example, to enable you to install a bundle in subsets of CICS regions in a cluster in such a way as to maintain an application's availability for clients.
21+
22+
If you hit any speed bumps on your journey, check out our [Troubleshooting](cdp-Troubleshooting-General) pages.

gulp/GenerateDoc.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ const DISPLAY_NAME = "Zowe CLI";
2424

2525
const BINARY_NAME = "zowe";
2626

27+
const JEKYLL_FRONTMATTER = `---
28+
title: Zowe CLI cics-deploy plugin command reference
29+
keywords:
30+
summary: "This section contains syntax reference information for the Zowe CLI CICS deploy plugin"
31+
sidebar: cdp_sidebar
32+
permalink: cdp-CLIReadMe.html
33+
folder: cdp
34+
toc: true
35+
---\n`
36+
2737
const doc: ITaskFunction = async () => {
2838
process.env.FORCE_COLOR = "0";
2939

@@ -41,10 +51,12 @@ const doc: ITaskFunction = async () => {
4151
clearRequire.all(); // in case the code has changed, reload any code
4252

4353
let totalCommands = 0;
44-
let markdownContent = "# Zowe CLI cics-deploy plugin command reference\n\n";
54+
//let markdownContent = "# Zowe CLI cics-deploy plugin command reference\n\n";
55+
let markdownContent = '';
4556

46-
markdownContent += "{{tableOfContents}}\n\n";
57+
//markdownContent += "{{tableOfContents}}\n\n";
4758
let tableOfContentsText = "### Table of Contents\n";
59+
//let tableOfContentsText = '';
4860

4961
const tabIndent = "\t";
5062
let oldCommandName = "";
@@ -70,8 +82,9 @@ const doc: ITaskFunction = async () => {
7082
getGroupHelp(profilesGroup);
7183

7284
markdownContent = mustache.render(markdownContent, {tableOfContents: tableOfContentsText});
73-
fs.writeFileSync("docs-internal/CLIReadme.md", markdownContent);
74-
gutil.log(gutil.colors.blue("Updated docs-internal/CLIReadme.md with definitions of " + totalCommands + " commands"));
85+
86+
fs.writeFileSync("docs/pages/cdp/CLIReadme.md", JEKYLL_FRONTMATTER + markdownContent);
87+
gutil.log(gutil.colors.blue("Updated docs/pages/CLIReadme.md with definitions of " + totalCommands + " commands"));
7588

7689
process.env.FORCE_COLOR = undefined;
7790

@@ -103,7 +116,7 @@ const doc: ITaskFunction = async () => {
103116
}
104117

105118
const anchorTag = "module-" + definition.name;
106-
tableOfContentsText += util.format("%s* [%s](#%s)\n", tabIndent.repeat(indentLevel), commandNameSummary, anchorTag);
119+
tableOfContentsText += util.format("%s* [%s](#%s)", tabIndent.repeat(indentLevel), commandNameSummary, anchorTag);
107120

108121
markdownContent += util.format("#%s %s<a name=\"%s\"></a>\n", "#".repeat(indentLevel), commandNameSummary, anchorTag);
109122
markdownContent += definition.description ? definition.description.trim() + "\n" : "";
@@ -121,7 +134,7 @@ const doc: ITaskFunction = async () => {
121134
childNameSummary += " (experimental)";
122135
}
123136

124-
tableOfContentsText += util.format("%s* [%s](#%s)\n", tabIndent.repeat(indentLevel + 1), childNameSummary, childAnchorTag);
137+
tableOfContentsText += util.format("%s* [%s](#%s)", tabIndent.repeat(indentLevel + 1), childNameSummary, childAnchorTag);
125138
markdownContent += util.format("##%s %s<a name=\"%s\"></a>\n", "#".repeat(indentLevel), childNameSummary, childAnchorTag);
126139

127140
const helpGen = new DefaultHelpGenerator({

0 commit comments

Comments
 (0)