Skip to content

docs: adopt shadcn page template on 5 flagship pages#44

Open
abdout wants to merge 1 commit into
docs/shadcn-ia-restructurefrom
docs/shadcn-page-templates-clean
Open

docs: adopt shadcn page template on 5 flagship pages#44
abdout wants to merge 1 commit into
docs/shadcn-ia-restructurefrom
docs/shadcn-page-templates-clean

Conversation

@abdout
Copy link
Copy Markdown
Contributor

@abdout abdout commented May 18, 2026

Summary

Phase 2 of the shadcn-style docs refresh, re-opened from a clean branch after #40 was contaminated by the parallel auto-sync work. Stacked on top of #39.

Adopts the canonical shadcn page template (hero → preview → installation → usage → reference → examples → related) on the five highest-impact pages, and adds the <LinkedCards> primitive that path-picker grids depend on.

This PR targets docs/shadcn-ia-restructure (Phase 1) and should be merged after #39 lands. Rebase onto main after that.

Changes

  • src/components/docs/linked-card.tsx (new): <LinkedCards> grid container + <LinkedCard> item. Hover state, RTL-flipped chevron, semantic tokens only (bg-card, bg-accent).
  • src/mdx-components.tsx: registers LinkedCard and LinkedCards for MDX.
  • content/docs/installation/index.mdx: title bumped from "Onboarding" to "Installation". <LinkedCards> path picker, <Tabs> for Cowork vs Manual, <Steps> for the 3-step Cowork flow.
  • content/docs/engine/agents/index.mdx: <BuildingBlocks> tier preview replaces the ASCII art; installation moved up; reference tables reorganized; routing examples expanded.
  • content/docs/engine/skills.mdx: installation + usage at the top; categorized reference tables; examples section added.
  • content/docs/engine/commands.mdx: adds pipeline, coverage sweeps, intelligence sections that were missing.
  • content/docs/operations/captain.mdx: <FlowChart> of the Mon/Wed/Fri rhythm; decision matrix + scenario examples + financial dashboard preserved.

Why a fresh branch

The original Phase 2 branch picked up an auto-sync commit (52315a7) from a parallel feat/auto-sync-service branch that was being worked on simultaneously. The leak ended up inside #40's diff and could not be force-pushed away (harness denied). This branch is the same Phase 2 work cherry-picked cleanly onto Phase 1 — diff matches what #40 was supposed to be.

Test plan

  • pnpm docs:check clean
  • next build succeeds — 37 docs paths generated
  • All 5 rewritten pages render without MDX errors
  • After merge: visual check of each page in dev — preview blocks render, LinkedCards are clickable, RTL works

Stack

The Phase 3 and Phase 4 PRs already branch from this clean chain, so they don't need re-targeting — #42 is docs/shadcn-new-sections which contains commit 3a99d36 (Phase 2 cherry-pick), then Phase 3 commits, identical to what this branch ships.

🤖 Generated with Claude Code

Rewrite installation/index, engine/agents/index, engine/skills,
engine/commands, and operations/captain to match shadcn/ui's canonical
page structure: hero blockquote → preview visualization → installation
→ usage → reference tables → examples → related.

Why: shadcn-style page templates make docs scannable. A reader can land
on any page and orient via a one-sentence hero, see the shape via a
preview block, then drop into reference or examples without hunting
for structure. The 5 chosen pages cover the highest-traffic entry
points for new contributors and existing operators.

- Add LinkedCards / LinkedCard primitives at
  src/components/docs/linked-card.tsx — grid of clickable cards with
  hover state, RTL-flipped chevron, semantic tokens only
- Register LinkedCard + LinkedCards in src/mdx-components.tsx
- installation/index: LinkedCards path picker + Tabs (Cowork vs Manual)
  + Steps, content preserved from the existing onboarding flow
- engine/agents/index: BuildingBlocks tier preview + reorganized
  reference tables with installation moved to the top
- engine/skills: installation + usage examples + reference tables
  grouped by category (workflow / creation / quality / utility / etc.)
- engine/commands: full catalogue including pipeline + sweeps + intel
  sections that were previously missing
- operations/captain: FlowChart of the Mon/Wed/Fri rhythm + decision
  matrix + scenario examples + financial dashboard

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

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

Project Deployment Actions Updated (UTC)
kun Ready Ready Preview, Comment May 18, 2026 5:54am

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