Skip to content

Commit 57dcc97

Browse files
committed
docs: add windows/linux support info and favicon
1 parent 6bc1662 commit 57dcc97

File tree

1 file changed

+57
-45
lines changed

1 file changed

+57
-45
lines changed

docs/index.html

Lines changed: 57 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -415,14 +415,15 @@
415415
<h1>Control Your <br> <span class="gradient-text">Git Universe</span></h1>
416416
<p class="subtitle">
417417
A blazing fast TUI to manage, search, and clean up all your repositories.<br>
418-
See everything at a glance. Zero config required.
418+
Runs on <strong>macOS</strong>, <strong>Linux</strong>, and <strong>Windows</strong>.
419419
</p>
420420

421421
<div class="install-section">
422422
<div class="tabs">
423-
<button class="tab-btn active" onclick="switchTab('brew')">Homebrew Tap</button>
424-
<button class="tab-btn" onclick="switchTab('go')">Go Install</button>
425-
<button class="tab-btn" onclick="switchTab('manual')">Manual</button>
423+
<button class="tab-btn active" onclick="switchTab('brew')">Homebrew (Mac/Linux)</button>
424+
<button class="tab-btn" onclick="switchTab('go')">Go Install (All)</button>
425+
<button class="tab-btn" onclick="switchTab('windows')">Windows</button>
426+
<button class="tab-btn" onclick="switchTab('manual')">Binary</button>
426427
</div>
427428

428429
<div class="install-box" onclick="copyCode()">
@@ -438,11 +439,22 @@ <h1>Control Your <br> <span class="gradient-text">Git Universe</span></h1>
438439
github.com/Bharath-code/git-scope/cmd/git-scope@latest</span></div>
439440
</div>
440441

442+
<div id="code-windows" class="code-block">
443+
<span class="comment"># PowerShell (Go required)</span>
444+
<div><span class="prompt">></span><span class="cmd">go install
445+
github.com/Bharath-code/git-scope/cmd/git-scope@latest</span></div>
446+
<span class="comment"># Or download .exe from Releases</span>
447+
</div>
448+
441449
<div id="code-manual" class="code-block">
442450
<span class="comment"># Download binary from Releases page, then:</span>
443451
<div><span class="prompt">$</span><span class="cmd">./git-scope</span></div>
444452
</div>
445453
</div>
454+
455+
<div style="margin-top: 2rem; font-size: 0.9rem; color: var(--text-muted)">
456+
<p>Supports Windows Powershell, WSL, Linux shells, and macOS.</p>
457+
</div>
446458
</div>
447459
</section>
448460

@@ -501,47 +513,47 @@ <h3><span class="card-icon">📝</span> Sorting</h3>
501513
</div>
502514

503515
<script>
504-
// Star Count Fetcher
505-
fetch('https://api.github.com/repos/Bharath-code/git-scope')
506-
.then(response => response.json())
507-
.then(data => {
508-
if (data.stargazers_count !== undefined) {
509-
const count = data.stargazers_count;
510-
// Format: 1.2k if > 1000
511-
const formatted = count > 1000 ? (count/1000).toFixed(1) + 'k' : count;
512-
document.getElementById('star-count').textContent = `Star ${formatted}`;
513-
}
514-
})
515-
.catch(err => console.log('Failed to fetch stars', err));
516-
517-
// Tabs
518-
function switchTab(id) {
519-
// Headers
520-
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
521-
event.target.classList.add('active');
522-
523-
// Content
524-
document.querySelectorAll('.code-block').forEach(b => b.classList.remove('active'));
525-
document.getElementById('code-' + id).classList.add('active');
526-
}
527-
528-
// Copy
529-
function copyCode() {
530-
const activeBlock = document.querySelector('.code-block.active');
531-
let text = "";
532-
activeBlock.querySelectorAll('.cmd').forEach(el => text += el.innerText + "\n");
533-
text = text.trim();
534-
535-
navigator.clipboard.writeText(text).then(() => {
536-
const hint = document.querySelector('.copy-hint');
537-
const original = hint.innerText;
538-
hint.innerText = "Copied!";
539-
hint.style.opacity = '1';
540-
setTimeout(() => {
541-
hint.innerText = original;
542-
}, 2000);
543-
});
544-
}
516+
// Star Count Fetcher
517+
fetch('https://api.github.com/repos/Bharath-code/git-scope')
518+
.then(response => response.json())
519+
.then(data => {
520+
if (data.stargazers_count !== undefined) {
521+
const count = data.stargazers_count;
522+
// Format: 1.2k if > 1000
523+
const formatted = count > 1000 ? (count / 1000).toFixed(1) + 'k' : count;
524+
document.getElementById('star-count').textContent = `Star ${formatted}`;
525+
}
526+
})
527+
.catch(err => console.log('Failed to fetch stars', err));
528+
529+
// Tabs
530+
function switchTab(id) {
531+
// Headers
532+
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
533+
event.target.classList.add('active');
534+
535+
// Content
536+
document.querySelectorAll('.code-block').forEach(b => b.classList.remove('active'));
537+
document.getElementById('code-' + id).classList.add('active');
538+
}
539+
540+
// Copy
541+
function copyCode() {
542+
const activeBlock = document.querySelector('.code-block.active');
543+
let text = "";
544+
activeBlock.querySelectorAll('.cmd').forEach(el => text += el.innerText + "\n");
545+
text = text.trim();
546+
547+
navigator.clipboard.writeText(text).then(() => {
548+
const hint = document.querySelector('.copy-hint');
549+
const original = hint.innerText;
550+
hint.innerText = "Copied!";
551+
hint.style.opacity = '1';
552+
setTimeout(() => {
553+
hint.innerText = original;
554+
}, 2000);
555+
});
556+
}
545557
</script>
546558

547559
</body>

0 commit comments

Comments
 (0)