Skip to content

feat(blueprint): serve features from an MDX content source - #366

Merged
andrewck24 merged 1 commit into
devfrom
feat/blueprint-features-mdx
Aug 6, 2026
Merged

feat(blueprint): serve features from an MDX content source#366
andrewck24 merged 1 commit into
devfrom
feat/blueprint-features-mdx

Conversation

@andrewck24

@andrewck24 andrewck24 commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

Registers blueprint/content/features as a second Fumadocs content source so feature pages are discovered from disk instead of resolved through a hand-maintained module map, and gives /features a sidebar tree of its own.

Problem

  • features/[[...slug]]/page.tsx held a featureModules record mapping every slug to a dynamic import(). Adding a feature page meant editing the route.
  • /features had no page tree. DocsLayoutShell fell through to the changes tree, so the Features tab showed the Changes sidebar.

Changes

  • source.config.ts / src/lib/source.ts: add featuresSource (content/features, base URL /features)
  • features/[[...slug]]/page.tsx: drop featureModules; resolve via featuresSource.getPage() / generateParams(), with InteractiveFlowchart, StatusBadge, and DecisionTimeline registered as MDX components
  • layout.tsx / DocsLayoutShell: /features uses featuresSource.pageTree; every other section keeps the changes tree
  • Add eight feature MDX pages (index, team-management, game-recording, analytics, notifications, account, platform, landing) plus meta.json, and a StatusBadge component
  • Convert the three platform pages from TSX to MDX. Their decision records stay as the JSON files already on disk — the MDX imports them and passes them to DecisionTimeline — so PlatformFeaturePage has no remaining consumers and is removed.

Verification

  • pnpm verify:all passes — 100 suites / 784 tests, app build, assert-sw: OK, blueprint build
  • Blueprint: type-check clean, 16 suites / 37 tests pass
  • All 11 feature routes prerender; /features/platform/{blueprint,agent-orchestration,delivery-workflow} keep their existing URLs
  • Prerendered HTML checked: the delivery-workflow decision records render in full through DecisionTimeline; flowcharts and status badges render
  • Sidebar: /features lists the top-level pages and expands the platform folder when active
  • knip reports nothing new

Notes

No changeset: this changes the Blueprint site only, not app runtime behaviour.

Recovered from a stash taken on feat/blueprint-features; the rest of that stash had already landed on dev in a newer form.


摘要(zh-TW)

把 Blueprint 的 features 頁面從手維護的 module map 改成 fumadocs MDX content source。原本每新增一頁都要改 route,且 /features 沒有自己的 page tree,側欄會 fallback 成 Changes 的樹。這次新增 featuresSource、8 個 feature MDX 頁與 StatusBadge,並把 platform 三頁從 TSX 轉成 MDX——decision JSON 沿用磁碟上既有檔案,由 MDX 直接 import 後交給 DecisionTimeline,因此 PlatformFeaturePage 一併移除。既有 URL 全部不變,pnpm verify:all 通過。因僅影響 Blueprint 站台、不動 app runtime,未附 changeset。

The features route resolved pages through a hand-maintained module map, so
every new feature page required editing the route, and /features had no
sidebar tree of its own — it fell through to the changes tree. Register
content/features as a second fumadocs source so pages are discovered from
disk, and give the layout shell the features tree.

Convert the three platform pages from TSX to MDX in the process; their
decision records are still the JSON files on disk, imported by the MDX and
rendered through DecisionTimeline, so PlatformFeaturePage is no longer
needed. Existing feature URLs are unchanged.
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
volleybro Ready Ready Preview Aug 6, 2026 11:39am

@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
volleybro-blueprint e356e42 Commit Preview URL

Branch Preview URL
Aug 06 2026, 11:37 AM

@andrewck24
andrewck24 merged commit 291ddbe into dev Aug 6, 2026
5 checks passed
@andrewck24
andrewck24 deleted the feat/blueprint-features-mdx branch August 6, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant