Skip to content

Commit 8b4d12a

Browse files
committed
updated docs
1 parent b5a56d3 commit 8b4d12a

7 files changed

Lines changed: 60 additions & 8 deletions

File tree

docs/faq.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
<li><a href="services.html">Services</a></li>
2828
<li><a href="guides.html">Guides</a></li>
2929
<li><a href="faq.html" class="active">FAQ</a></li>
30-
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases" class="nav-cta" target="_blank">Download</a></li>
30+
<li><a href="https://github.com/JeffGepiga/DevBoxPro" target="_blank">GitHub</a></li>
31+
<li style="display:flex; align-items:center;">
32+
<iframe src="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true" frameborder="0" scrolling="0" width="100" height="20" title="GitHub"></iframe>
33+
</li>
34+
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases/latest" class="nav-cta download-setup-btn" target="_blank">Download Setup</a></li>
3135
</ul>
3236
</div>
3337
</nav>

docs/features.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
<li><a href="services.html">Services</a></li>
2828
<li><a href="guides.html">Guides</a></li>
2929
<li><a href="faq.html">FAQ</a></li>
30-
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases" class="nav-cta" target="_blank">Download</a></li>
30+
<li><a href="https://github.com/JeffGepiga/DevBoxPro" target="_blank">GitHub</a></li>
31+
<li style="display:flex; align-items:center;">
32+
<iframe src="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true" frameborder="0" scrolling="0" width="100" height="20" title="GitHub"></iframe>
33+
</li>
34+
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases/latest" class="nav-cta download-setup-btn" target="_blank">Download Setup</a></li>
3135
</ul>
3236
</div>
3337
</nav>

docs/getting-started.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
<li><a href="services.html">Services</a></li>
2828
<li><a href="guides.html">Guides</a></li>
2929
<li><a href="faq.html">FAQ</a></li>
30-
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases" class="nav-cta" target="_blank">Download</a></li>
30+
<li><a href="https://github.com/JeffGepiga/DevBoxPro" target="_blank">GitHub</a></li>
31+
<li style="display:flex; align-items:center;">
32+
<iframe src="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true" frameborder="0" scrolling="0" width="100" height="20" title="GitHub"></iframe>
33+
</li>
34+
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases/latest" class="nav-cta download-setup-btn" target="_blank">Download Setup</a></li>
3135
</ul>
3236
</div>
3337
</nav>

docs/guides.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
<li><a href="services.html">Services</a></li>
2828
<li><a href="guides.html" class="active">Guides</a></li>
2929
<li><a href="faq.html">FAQ</a></li>
30-
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases" class="nav-cta" target="_blank">Download</a></li>
30+
<li><a href="https://github.com/JeffGepiga/DevBoxPro" target="_blank">GitHub</a></li>
31+
<li style="display:flex; align-items:center;">
32+
<iframe src="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true" frameborder="0" scrolling="0" width="100" height="20" title="GitHub"></iframe>
33+
</li>
34+
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases/latest" class="nav-cta download-setup-btn" target="_blank">Download Setup</a></li>
3135
</ul>
3236
</div>
3337
</nav>

docs/index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
<li><a href="services.html">Services</a></li>
2828
<li><a href="guides.html">Guides</a></li>
2929
<li><a href="faq.html">FAQ</a></li>
30-
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases" class="nav-cta" target="_blank">Download</a></li>
30+
<li><a href="https://github.com/JeffGepiga/DevBoxPro" target="_blank">GitHub</a></li>
31+
<li style="display:flex; align-items:center;">
32+
<iframe src="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true" frameborder="0" scrolling="0" width="100" height="20" title="GitHub"></iframe>
33+
</li>
34+
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases/latest" class="nav-cta download-setup-btn" target="_blank">Download Setup</a></li>
3135
</ul>
3236
</div>
3337
</nav>
@@ -43,8 +47,8 @@ <h1 class="animate-in">
4347
Run PHP and Node.js projects side by side — no conflicts, no headaches. Everything you need in one beautiful desktop app.
4448
</p>
4549
<div class="btn-group animate-in">
46-
<a href="https://github.com/JeffGepiga/DevBoxPro/releases" class="btn btn-primary" target="_blank">⬇ Download DevBox Pro</a>
47-
<a href="getting-started.html" class="btn btn-secondary">Get Started →</a>
50+
<a href="https://github.com/JeffGepiga/DevBoxPro/releases/latest" class="btn btn-primary download-setup-btn" target="_blank">⬇ Download Setup</a>
51+
<a href="https://github.com/JeffGepiga/DevBoxPro/releases/latest" class="btn btn-secondary download-portable-btn" target="_blank">⬇ Download Portable</a>
4852
</div>
4953
</div>
5054
</section>

docs/js/main.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,36 @@ document.addEventListener('DOMContentLoaded', () => {
66
initNavbar();
77
initScrollAnimations();
88
initAccordions();
9+
updateDownloadLinks();
910
});
1011

12+
async function updateDownloadLinks() {
13+
try {
14+
const response = await fetch('https://api.github.com/repos/JeffGepiga/DevBoxPro/releases/latest');
15+
const data = await response.json();
16+
17+
if (data && data.assets) {
18+
const setupAsset = data.assets.find(a => a.name.includes('Setup') && a.name.endsWith('.exe'));
19+
const portableAsset = data.assets.find(a => !a.name.includes('Setup') && a.name.endsWith('.exe'));
20+
21+
if (setupAsset) {
22+
document.querySelectorAll('.download-setup-btn').forEach(btn => {
23+
btn.href = setupAsset.browser_download_url;
24+
});
25+
}
26+
27+
if (portableAsset) {
28+
document.querySelectorAll('.download-portable-btn').forEach(btn => {
29+
btn.href = portableAsset.browser_download_url;
30+
});
31+
}
32+
}
33+
} catch (err) {
34+
console.error('Failed to fetch latest release:', err);
35+
}
36+
}
37+
38+
1139
/* ---------- Navbar ---------- */
1240
function initNavbar() {
1341
const navbar = document.querySelector('.navbar');

docs/services.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
<li><a href="services.html" class="active">Services</a></li>
2828
<li><a href="guides.html">Guides</a></li>
2929
<li><a href="faq.html">FAQ</a></li>
30-
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases" class="nav-cta" target="_blank">Download</a></li>
30+
<li><a href="https://github.com/JeffGepiga/DevBoxPro" target="_blank">GitHub</a></li>
31+
<li style="display:flex; align-items:center;">
32+
<iframe src="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true" frameborder="0" scrolling="0" width="100" height="20" title="GitHub"></iframe>
33+
</li>
34+
<li><a href="https://github.com/JeffGepiga/DevBoxPro/releases/latest" class="nav-cta download-setup-btn" target="_blank">Download Setup</a></li>
3135
</ul>
3236
</div>
3337
</nav>

0 commit comments

Comments
 (0)