Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Redirecting to MockForge documentation | MockForge</title>
<meta name="robots" content="noindex, follow" />
<link rel="canonical" href="https://docs.mockforge.dev/" />
<meta http-equiv="refresh" content="0; url=https://docs.mockforge.dev/" />
<script>location.replace("https://docs.mockforge.dev/" + location.hash);</script>
</head>
<body>
<p>This page has moved to <a href="https://docs.mockforge.dev/">MockForge documentation</a>.</p>
</body>
</html>
2 changes: 1 addition & 1 deletion dpa.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<script>location.replace("https://app.mockforge.dev/legal/dpa" + location.hash);</script>
</head>
<body>
<p>This page has moved to <a href="https://app.mockforge.dev/legal/dpa">Data Processing Agreement</a>.</p>
<p>This page has moved to <a href="https://app.mockforge.dev/legal/dpa">Data Processing Agreement</a> (v2.0, effective September 27, 2026).</p>
</body>
</html>
1 change: 1 addition & 0 deletions privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
<h1 class="mt-3 text-4xl font-semibold tracking-tight text-brand-dark dark:text-white">
What this website collects
</h1>
<p class="mt-3 text-sm text-text-secondary">Last updated: September 27, 2026</p>
<p class="mt-4 text-lg text-text-secondary leading-relaxed">
This policy covers the public marketing site at mockforge.dev. It is intentionally short
because the site is static: it has no user accounts, no comment forms, no advertising,
Expand Down
11 changes: 7 additions & 4 deletions scripts/build-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,16 @@ const REDIRECTS = {
'notes.html': { to: '/engineering-notes.html', label: 'Engineering Notes' },
'blog.html': { to: '/engineering-notes.html', label: 'Engineering Notes' },
'docs.html': { to: 'https://docs.mockforge.dev/', label: 'MockForge documentation' },
'docs/index.html': { to: 'https://docs.mockforge.dev/', label: 'MockForge documentation' },
'security.html': { to: '/trust.html', label: 'Trust & Security' },
'terms.html': { to: 'https://app.mockforge.dev/legal/terms', label: 'Terms of Service' },
'dpa.html': { to: 'https://app.mockforge.dev/legal/dpa', label: 'Data Processing Agreement' },
'terms.html': { to: 'https://app.mockforge.dev/legal/terms', label: 'Terms of Service', note: 'v2.0, effective September 27, 2026' },
'dpa.html': { to: 'https://app.mockforge.dev/legal/dpa', label: 'Data Processing Agreement', note: 'v2.0, effective September 27, 2026' },
};

function renderRedirectPage({ to, label }) {
function renderRedirectPage({ to, label, note }) {
const canonical = to.startsWith('/') ? `https://mockforge.dev${to}` : to;
const safeLabel = escapeHtmlAttr(label);
const noteHtml = note ? ` (${escapeHtmlAttr(note)})` : '';
return `<!DOCTYPE html>
<html lang="en">
<head>
Expand All @@ -451,7 +453,7 @@ function renderRedirectPage({ to, label }) {
<script>location.replace(${JSON.stringify(to)} + location.hash);</script>
</head>
<body>
<p>This page has moved to <a href="${to}">${safeLabel}</a>.</p>
<p>This page has moved to <a href="${to}">${safeLabel}</a>${noteHtml}.</p>
</body>
</html>
`;
Expand Down Expand Up @@ -558,6 +560,7 @@ function emit(file, text) {
return;
}

fs.mkdirSync(path.dirname(outputPath), { recursive: true });
fs.writeFileSync(outputPath, text);
if (existsOnDisk) {
wrote += 1;
Expand Down
1 change: 1 addition & 0 deletions src/pages/privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<h1 class="mt-3 text-4xl font-semibold tracking-tight text-brand-dark dark:text-white">
What this website collects
</h1>
<p class="mt-3 text-sm text-text-secondary">Last updated: September 27, 2026</p>
<p class="mt-4 text-lg text-text-secondary leading-relaxed">
This policy covers the public marketing site at mockforge.dev. It is intentionally short
because the site is static: it has no user accounts, no comment forms, no advertising,
Expand Down
2 changes: 1 addition & 1 deletion terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<script>location.replace("https://app.mockforge.dev/legal/terms" + location.hash);</script>
</head>
<body>
<p>This page has moved to <a href="https://app.mockforge.dev/legal/terms">Terms of Service</a>.</p>
<p>This page has moved to <a href="https://app.mockforge.dev/legal/terms">Terms of Service</a> (v2.0, effective September 27, 2026).</p>
</body>
</html>
Loading