Skip to content

Commit 004e694

Browse files
Update capibmadm cli tool installation guide
1 parent b8b1a62 commit 004e694

File tree

5 files changed

+67
-1
lines changed

5 files changed

+67
-1
lines changed

.github/ISSUE_TEMPLATE/release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ After every CAPIBM major version release:
1515
- [ ] [Update release support data in docs](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/docs/book/src/developer/release-support-guidelines.md)
1616
- [ ] [Update docs with reference to latest release](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/README.md#compatibility-with-cluster-api-and-kubernetes-versions)
1717
- [ ] Update and add documentation link for new release branch in Netlify
18+
- [ ] Update capibmadm tool to the latest version after each new release
1819
- [ ] Add new presubmit job for latest release branch in [kubernetes/test-infra](https://github.com/kubernetes/test-infra/tree/master/config/jobs/kubernetes-sigs/cluster-api-provider-ibmcloud)
1920
- [ ] Update kubekins-e2e image to relevent Kubernetes version
2021
- [ ] Add E2E CI jobs for latest release branch in [ppc64le-cloud/test-infra](https://github.com/ppc64le-cloud/test-infra/blob/master/config/jobs/periodic/cluster-api-provider-ibmcloud/test-e2e-capi-ibmcloud-periodics.yaml)

docs/book/book.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ title = "Kubernetes Cluster API Provider IBM Cloud"
88
[output.html]
99
curly-quotes = true
1010
git-repository-url = "https://sigs.k8s.io/cluster-api-provider-ibmcloud"
11-
additional-css = ["theme/css/custom.css"]
11+
additional-css = [
12+
"theme/css/custom.css",
13+
"theme/tabs.css"
14+
]
15+
additional-js = ["theme/tabs.js"]
1216

1317
[output.html.redirect]
1418
"/agenda.html" = "https://docs.google.com/document/d/1oWnqXy1VFv0E3kovQoZfS6IlVP0L4eaQsN-2HYC_6_A"

docs/book/src/topics/capibmadm/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Kubernetes Cluster API Provider IBM Cloud Management Utility
44

55
## Install capibmadm
66

7+
<div class="tabs">
8+
<button class ="tablink" data-tab="linux-mac">Linux/MacOS</button>
9+
<button class ="tablink" data-tab="windows">Windows</button>
10+
11+
<div id="linux-mac" class="tabcontent">
12+
713
#### Install capibmadm binary with curl on Linux / MacOS
814
Run the following command to download the capibmadm binary:
915

@@ -23,6 +29,9 @@ Test to ensure the version you installed is up-to-date:
2329
capibmadm version -o short
2430
```
2531

32+
</div>
33+
<div id="windows" class="tabcontent">
34+
2635
#### Install capibmadm binary with curl on Windows using PowerShell
2736
Go to the working directory where you want capibmadm downloaded.
2837

@@ -43,5 +52,8 @@ Test to ensure the version you installed is up-to-date:
4352
capibmadm.exe version -o short
4453
```
4554

55+
</div>
56+
</div>
57+
4658
## [1. PowerVS commands](./powervs/index.md)
4759
## [2. VPC commands](./vpc/index.md)

docs/book/theme/tabs.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.tabs {
2+
margin: 1em 0;
3+
}
4+
5+
.tablink {
6+
background-color: var(--table-alternate-bg);
7+
padding: 0.5rem 1rem;
8+
cursor: pointer;
9+
border: none;
10+
font-size: 1.6rem;
11+
line-height: 1.45em;
12+
}
13+
14+
.tablink.active {
15+
background-color: var(--table-header-bg);
16+
font-weight: bold;
17+
border: 1px solid #ccc;
18+
}
19+
20+
.tabcontent {
21+
display: none;
22+
padding: 20px;
23+
border: 1px solid #ccc;
24+
}

docs/book/theme/tabs.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
document.addEventListener("DOMContentLoaded", () => {
2+
document.querySelectorAll(".tabs").forEach(tabBlock => {
3+
const links = tabBlock.querySelectorAll(".tablink");
4+
const contents = tabBlock.querySelectorAll(".tabcontent");
5+
6+
// show first by default
7+
if (links.length > 0 && contents.length > 0) {
8+
links[0].classList.add("active");
9+
contents[0].style.display = "block";
10+
}
11+
12+
links.forEach(link => {
13+
link.addEventListener("click", () => {
14+
// hide all
15+
contents.forEach(c => c.style.display = "none");
16+
links.forEach(l => l.classList.remove("active"));
17+
18+
// show clicked
19+
const id = link.getAttribute("data-tab");
20+
tabBlock.querySelector("#" + id).style.display = "block";
21+
link.classList.add("active");
22+
});
23+
});
24+
});
25+
});

0 commit comments

Comments
 (0)