Add cheatsheet tip to downloads section and fix Vercel 404

- Add download tip with cheatsheet link in downloads section
- Fix cheatsheet 404 on Vercel by adding rewrite rule
- Include cheatsheet.html in Bun build entrypoints

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Paul Bakaus
2026-01-11 15:31:29 -08:00
co-authored by Claude Opus 4.5
parent 98e673b8f4
commit a1a24daf3f
4 changed files with 25 additions and 3 deletions
+15
View File
@@ -2322,6 +2322,21 @@ code {
border-radius: 4px;
}
.download-tip {
font-size: 0.8125rem;
color: var(--color-ash);
margin-top: var(--spacing-sm);
}
.download-tip a {
color: var(--color-accent);
text-decoration: none;
}
.download-tip a:hover {
text-decoration: underline;
}
/* ============================================
SUPPORT SECTION
============================================ */
+1
View File
@@ -320,6 +320,7 @@
Prefix commands with <code>/i-</code> to avoid conflicts
</span>
</label>
<p class="download-tip">Once installed, keep our <a href="/cheatsheet">command cheatsheet</a> handy for quick reference.</p>
</div>
<div class="downloads-grid">
+5 -2
View File
@@ -73,14 +73,17 @@ function buildTailwindCSS() {
* CSS is pre-compiled by Tailwind CLI, then bundled with HTML/JS
*/
async function buildStaticSite() {
const entrypoint = path.join(ROOT_DIR, 'public', 'index.html');
const entrypoints = [
path.join(ROOT_DIR, 'public', 'index.html'),
path.join(ROOT_DIR, 'public', 'cheatsheet.html'),
];
const outdir = path.join(ROOT_DIR, 'build');
console.log('📦 Building static site with Bun...');
try {
const result = await Bun.build({
entrypoints: [entrypoint],
entrypoints: entrypoints,
outdir: outdir,
minify: true,
sourcemap: 'linked',
+4 -1
View File
@@ -6,6 +6,9 @@
"api/**/*.js": {
"includeFiles": "source/**,dist/**"
}
}
},
"rewrites": [
{ "source": "/cheatsheet", "destination": "/cheatsheet.html" }
]
}