Skip to content

Commit 0156512

Browse files
committed
fixed Windows download link
1 parent 68f6593 commit 0156512

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

site/learn/InstallHkubeCLI.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export os="linux" # or macos
3737
&& sudo mv hkubectl /usr/local/bin/<button id="copyBtn" onclick="copyToClipboard('bashCode')" class="copy-btn">Copy</button>
3838
</pre>
3939

40-
<p>For <strong>Windows</strong>, download <code>hkubectl-win.exe</code> from <a id="windowsLink" href="/hkubectl_files/hkubectl-win.exe">here</a>.</p>
40+
<p>For <strong>Windows</strong>, download <code>hkubectl-win.exe</code> from <a id="windowsLink" href="https://hkube-domain.com/hkubectl_files/hkubectl-win.exe">here</a>.</p>
4141

4242

4343
---
@@ -65,20 +65,24 @@ kubectl get nodes
6565
<script>
6666
document.addEventListener('DOMContentLoaded', function () {
6767
var fullUrl = window.location.href;
68-
6968
var learnIndex = fullUrl.indexOf('/learn');
7069
var serverUrl = learnIndex !== -1 ? fullUrl.substring(0, learnIndex) : window.location.origin;
7170

7271
var bashCodeElement = document.getElementById('bashCode');
73-
7472
if (bashCodeElement) {
7573
var updatedCode = bashCodeElement.innerHTML.replace(/hkube-domain\.com/g, serverUrl);
7674
bashCodeElement.innerHTML = updatedCode;
7775
}
76+
77+
var windowsLink = document.getElementById('windowsLink');
78+
if (windowsLink) {
79+
windowsLink.href = windowsLink.href.replace(/^https?:\/\/hkube-domain\.com/, serverUrl);
80+
}
7881
});
7982
</script>
8083

8184

85+
8286
<script>
8387
function copyToClipboard(elementId) {
8488
var code = document.getElementById(elementId);

0 commit comments

Comments
 (0)