The blog and the Knowledge Center each fetched their markdown from a
SEPARATE GitHub repository at request time (g-but/botsmann-blog-content,
g-but/botsmann-knowledge-content) and rendered it through next-mdx-remote
with a hand-rolled component map per surface. Two maps for one markdown
vocabulary, already drifted: the blog slugged headings with rehype-slug, the
guides with a different inline regex; the guides highlighted code, the blog
did not; each had its own Callout. The content itself lived where nobody
reviewed it, behind a GitHub handle rename that now answers only via a 301.
Both surfaces now read content/*.md from this repo and render through
bip-kit's typed-block parser and reference renderer:
- content/blog/*.md (5 posts) and content/knowledge/**/*.md (10 guides) are
vendered verbatim from the two content repos — word-level parity verified
across all 15 files, zero words lost. Post images moved to public/blog/.
- The three app/blog/<slug>/page.mdx files came along as drafts. They were
never routes: `page.mdx` only serves as a page when pageExtensions includes
mdx, and this app never configured that, so all three were dead files. They
are committed with `published: false` rather than deleted.
- lib/longform/ is the one pipeline both routes call: a fence-aware
normalizer (`# ` → `## `, `*`/`+` bullets → `-`, nested items flattened —
the guides carry 74 indented items and ~130 shell-comment `#` lines inside
fences that a naive normalizer would have corrupted), then parse → blocks +
TOC + reading time.
- setHighlighterLoader(() => import('shiki')) is registered at module scope.
This app builds `output: standalone`, where bip-kit's zero-config shiki
import is invisible to Next's file tracer — without the explicit literal,
production ships unhighlighted while dev looks right.
- The TOC is derived from the same parse that renders the page, so a TOC
anchor can no longer point at a heading id built by a different slug rule.
types/knowledge.ts loses TableOfContentsItem accordingly.
Retired: next-mdx-remote, remark-gfm, rehype-slug, rehype-autolink-headings,
gray-matter (deps), components/blog/{Server,Client}MDXContent + MDXComponents,
components/knowledge/{Callout,CodeBlock,TableOfContents}. next.config drops
the raw.githubusercontent image pattern and the GitHub hosts from CSP
connect-src, and points frame-src at the privacy video players bip-kit uses.
Article typography now flows from the token SSOT: lib/longform/longform.css
maps globals.css onto bip-kit's --bp-* contract, replacing ~40 hardcoded
Tailwind greys. The mapping covers every --bp-* colour and pins the article
light, because Botsmann has no dark theme anywhere (zero `dark:` utilities,
no theme provider, light-only chrome) — letting bip-kit's dark defaults
through would put a dark article inside a white page. When the site grows a
dark tier, this file follows it by changing values in globals.css only.
tests/__tests__/lib/longform-content.test.ts walks every content file through
the real pipeline: committed content is bip-kit's trust boundary and a
malformed chart/stats fence throws at parse time, which without a test would
surface as a 500 on the live page.
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
#144 put the bot pages on the brand. This does the other 60 files, so the
whole product reads as one thing, and adds the guard that keeps it that way.
~410 raw palette classes became semantic tokens across the public marketing
surface (/try, /enterprise, /about, /knowledge, /personal, /professionals,
/bots, blog, navigation) and the app internals (dashboard, documents, chat,
conversations, onboarding, auth, settings, profile).
Gradient text is gone. Fifteen headings were
`bg-gradient-to-r from-X to-Y bg-clip-text text-transparent`; they are now
solid text-ink or text-action. globals.css says the identity is carried by
typography, and a serif display does not need a gradient to do that.
The 'B' mark was still a blue/purple gradient in BotNavigation's MOBILE menu.
#144 only fixed the desktop header. Both now render the shared <Logo>.
Three defects introduced mid-sweep and corrected, all caught by reading the
diff rather than trusting the regex:
- degenerate gradients (`from-action-tint to-action-tint`) collapsed to solid
- dead hovers (tint on tint) rebased to bg-surface + hover:bg-action-tint
- `to-action\b` matched the prefix of `to-action-hover`, so a collapse left a
stray `bg-action-hover` as a BASE background in 11 places -- those are the
primary, not the hover shade
Deliberately NOT changed:
- components/knowledge/Callout.tsx -- its blue is the `info` half of an
info/warning/error triad. Semantic status colour is a separate scale from
the brand accent, and warning is amber, so ochre-ing info would make the
two nearly indistinguishable.
- the custom-bot surfaces -- custom_bots.accent_color is a real column with
a CHECK constraint and the owner picks it. User data, not a design token.
Never-twice: tests/__tests__/lib/design-tokens.test.ts refuses any raw
brand-palette class, and any bg-clip-text, outside those two documented
exceptions. Mutation-verified -- swap one token back to bg-blue-600 and it
fails and names the file. No allowlist debt: every other file was swept rather
than excused.
verify: format, lint, typecheck, 256 tests, build -- all green. Twelve pages
smoke-tested and checked visually against a local production build.
Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG
Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
- Add @~/.claude/CLAUDE.md import for global engineering standards
- Update Last Updated date to 2026-01-23
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add types/knowledge.ts with type definitions for guides, difficulty levels, and comparisons
- Add lib/knowledge.ts for GitHub-based content fetching with ISR caching
- Create knowledge components: DifficultyBadge, GuideCard, Callout, CodeBlock, TableOfContents
- Add /knowledge/guides page with difficulty and category filters
- Add /knowledge/guides/[slug] dynamic page for individual guide rendering with MDX
- Add /knowledge/infrastructure page with hosting comparison overview
- Update navigation menu with new Knowledge Center links
Content will be fetched from g-but/botsmann-knowledge-content GitHub repo.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>