cmux/docs-site
Lawrence Chen 679cafdc51 Fix update pill constraint feedback loop
The pill never appeared because:
1. SwiftUI .frame(width:0, height:0) when idle poisoned fittingSize
2. AppKit constraints locked at 0x0 prevented expansion on state change
3. fittingSize always returned 0 due to active 0x0 constraints

Fix: Remove zero-frame from SwiftUI (always render at natural size,
use opacity only). Deactivate constraints before measuring fittingSize
so they don't clamp the measurement. Pass visibility to sizeToolbarItem
to set constraints to zero when idle or natural size when active.
2026-02-08 20:21:27 -08:00
..
app Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
content/docs Fix update pill constraint feedback loop 2026-02-08 20:21:27 -08:00
lib Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
public Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
.gitignore Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
next.config.mjs Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
package-lock.json Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
package.json Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
postcss.config.mjs Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
README.md Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
source.config.ts Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
tailwind.config.ts Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
tsconfig.json Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00
vercel.json Add documentation site and Homebrew installation 2026-01-29 04:41:39 -08:00

cmuxterm Documentation

Documentation website for cmuxterm, built with Fumadocs and Next.js.

Development

# Install dependencies
npm install

# Start dev server
npm run dev

Open http://localhost:3000 to view the docs.

Deployment

This site is deployed to Vercel. Push to main to trigger a deployment.

Manual Deploy

npm run build
npx vercel --prod

Structure

docs-site/
├── app/                  # Next.js app router
│   ├── docs/            # Documentation pages
│   └── page.tsx         # Landing page
├── content/
│   └── docs/            # MDX documentation files
└── lib/
    └── source.ts        # Fumadocs source configuration

Adding Documentation

  1. Create a new .mdx file in content/docs/
  2. Add frontmatter with title and description
  3. Add the page to content/docs/meta.json

Example:

---
title: My Page
description: Description of my page
---

# My Page

Content here...