Skip to content

Commit 9f49c7b

Browse files
bchapuisclaude
andcommitted
Move docs from app to www as SSR-rendered pages
Relocates /docs/* out of the SPA app shell and into the marketing site so the prose is indexed under dafthunk.com, ships no auth-shell bundle, and renders on the server. Shiki runs inside the route loader for the API reference, emitting pre-highlighted HTML with zero client cost. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 07403a8 commit 9f49c7b

30 files changed

Lines changed: 2298 additions & 1739 deletions

apps/app/src/components/app-header.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export function AppHeader() {
1919
const location = useLocation();
2020
const isAdminSection = location.pathname.startsWith("/admin");
2121
const isSettingsSection = location.pathname.startsWith("/settings");
22-
const isDocsSection = location.pathname.startsWith("/docs");
2322

2423
const navLinkClasses =
2524
"px-2.5 py-1 text-sm rounded-md hover:bg-neutral-200/50 dark:hover:bg-neutral-700/50 transition-colors flex items-center whitespace-nowrap";
@@ -41,10 +40,6 @@ export function AppHeader() {
4140
<span className="h-8 px-2 text-sm font-semibold flex items-center rounded-md bg-neutral-300/50 dark:bg-neutral-600/50">
4241
Settings
4342
</span>
44-
) : isDocsSection ? (
45-
<span className="h-8 px-2 text-sm font-semibold flex items-center rounded-md bg-neutral-300/50 dark:bg-neutral-600/50">
46-
Documentation
47-
</span>
4843
) : (
4944
<OrganizationSwitcher />
5045
))}
@@ -92,15 +87,16 @@ export function AppHeader() {
9287
Login
9388
</NavLink>
9489
)}
95-
<NavLink
96-
to="/docs"
90+
<a
91+
href={`${import.meta.env.VITE_WEBSITE_URL}/docs`}
92+
target="_blank"
93+
rel="noopener noreferrer"
9794
className={navLinkClasses}
98-
activeClassName={activeNavLinkClasses}
9995
data-tour="documentation-link"
10096
>
10197
<BookOpen className="h-4 w-4 mr-1.5" />
10298
<span>Documentation</span>
103-
</NavLink>
99+
</a>
104100
<a
105101
href="https://github.com/dafthunk-com/dafthunk"
106102
target="_blank"

apps/app/src/components/docs/ready-to-build.tsx

Lines changed: 0 additions & 91 deletions
This file was deleted.

apps/app/src/components/layouts/docs-layout.tsx

Lines changed: 0 additions & 106 deletions
This file was deleted.

apps/app/src/components/sidebar/docs-nav-main.tsx

Lines changed: 0 additions & 93 deletions
This file was deleted.

apps/app/src/components/sidebar/docs-sidebar.tsx

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)