From 2d80eb3f3ef420ae47cf793a66a70d2cf4043374 Mon Sep 17 00:00:00 2001
From: Brandon Behring
Date: Thu, 2 Jul 2026 12:14:57 -0400
Subject: [PATCH] fix(demo): base-aware landing links; drop dead /convergence
and /00-design (#154)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The demo's hand-authored homepage hardcoded four root-absolute hrefs.
Two now thread BASE_URL (chapters, search — verified emitting
/foo/chapters/ and /foo/search/ under a base:'/foo' build). The other
two pointed at routes the academic demo never builds (/convergence/ is
tools-profile-only; /00-design/ never existed) — removed along with the
stale tools-era prose (volatility metadata, version dropdown).
Generated with Claude Code
Co-Authored-By: Claude Fable 5
Claude-Session: https://claude.ai/code/session_01RAZxPcnVjkwv7nhYMxgKQE
---
demo/src/pages/index.astro | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/demo/src/pages/index.astro b/demo/src/pages/index.astro
index 812b3e0..14c0995 100644
--- a/demo/src/pages/index.astro
+++ b/demo/src/pages/index.astro
@@ -11,6 +11,10 @@ import Convergence from '@brandon_m_behring/book-scaffold-astro/components/Conve
import Divergence from '@brandon_m_behring/book-scaffold-astro/components/Divergence.astro';
import Sidenote from '@brandon_m_behring/book-scaffold-astro/components/Sidenote.astro';
import Citation from '@brandon_m_behring/book-scaffold-astro/components/Citation.astro';
+
+// #154: the demo ships at base '/', but as the copy-paste reference it must
+// model base-aware links like every scaffold page (#140/#142 lineage).
+const baseUrl = (import.meta.env.BASE_URL ?? '/').replace(/\/?$/, '/');
---
Koller-Friedman pedagogy on real content.
- Browse all chapters grouped by Part, with
- volatility and freshness metadata on every card. The
- convergence dashboard tracks which
- agentic-coding patterns have landed in which tools. Or visit
- the design chapter to see every component
- through the routing pipeline. Open /search/
- to try full-text search. Toggle dark mode (top-right ☀/☾) or the
- version dropdown (top-right v). Resize to phone width to watch
+ Browse all chapters grouped by
+ Part, with status metadata on every card. Open
+ /search/ to try full-text search.
+ Toggle dark mode (top-right ☀/☾). Resize to phone width to watch
sidenotes reflow as inline asides.