Skip to content

Commit 0f2c6d4

Browse files
migrate docs to mintlify (#913)
<img width="1595" height="1186" alt="image" src="https://github.com/user-attachments/assets/debb0c65-72ba-427d-9ebe-62c7be61c136" /> --------- Co-authored-by: Ammar <ammar+ai@ammar.io>
1 parent 47c2da0 commit 0f2c6d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+306
-985
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 108 deletions
This file was deleted.

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Mintlify docs that use JSX comments which prettier mangles
2+
docs/system-prompt.md

Makefile

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ include fmt.mk
4949
.PHONY: test test-unit test-integration test-watch test-coverage test-e2e smoke-test
5050
.PHONY: dist dist-mac dist-win dist-linux
5151
.PHONY: vscode-ext vscode-ext-install
52-
.PHONY: docs docs-server docs-watch check-docs-links
52+
.PHONY: docs-server
5353
.PHONY: storybook storybook-build test-storybook chromatic
5454
.PHONY: benchmark-terminal
5555
.PHONY: ensure-deps rebuild-native
@@ -213,7 +213,7 @@ build/icon.png: docs/img/logo.webp scripts/generate-icons.ts
213213
@bun scripts/generate-icons.ts png
214214

215215
## Quality checks (can run in parallel)
216-
static-check: lint typecheck fmt-check check-eager-imports check-bench-agent check-docs-links ## Run all static checks (includes startup performance checks)
216+
static-check: lint typecheck fmt-check check-eager-imports check-bench-agent ## Run all static checks
217217

218218
check-bench-agent: ## Verify terminal-bench agent configuration and imports
219219
@./scripts/check-bench-agent.sh
@@ -337,23 +337,8 @@ vscode-ext-install: ## Build and install VS Code extension locally
337337
@$(MAKE) -C vscode install
338338

339339
## Documentation
340-
docs: ## Build documentation
341-
@./scripts/docs_build.sh
342-
343-
docs-server: ## Serve documentation locally (opens browser)
344-
@./scripts/docs.sh
345-
346-
docs-watch: ## Watch and rebuild documentation
347-
@cd docs && mdbook watch
348-
349-
check-docs-links: ## Check documentation for broken links (requires mdbook tools via nix)
350-
@if command -v mdbook >/dev/null 2>&1 && command -v mdbook-linkcheck >/dev/null 2>&1; then \
351-
$(MAKE) docs && \
352-
echo "🔗 Checking documentation links..." && \
353-
cd docs && mdbook-linkcheck --standalone .; \
354-
else \
355-
echo "⏭️ Skipping docs link check (mdbook tools not installed - use 'nix develop' for full checks)"; \
356-
fi
340+
docs-server: node_modules/.installed ## Serve documentation locally (Mintlify dev server)
341+
@cd docs && npx mintlify dev
357342

358343
## Storybook
359344
storybook: node_modules/.installed ## Start Storybook development server

docs/AGENTS.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# AGENT INSTRUCTIONS
1+
---
2+
title: AGENTS.md
3+
description: Agent instructions for AI assistants working on the mux codebase
4+
---
25

36
**Prime directive:** keep edits minimal and token-efficient—say only what conveys actionable signal.
47

@@ -153,7 +156,7 @@ Avoid mock-heavy tests that verify implementation details rather than behavior.
153156
- Prefer fixes that simplify existing code; such simplifications often do not need new tests.
154157
- When adding complexity, add or extend tests. If coverage requires new infrastructure, propose the harness and then add the tests there.
155158

156-
<!-- IMPORTANT: Do not rename these Mode headings; the parser extracts them verbatim. -->
159+
{/_ IMPORTANT: Do not rename these Mode headings; the parser extracts them verbatim. _/}
157160

158161
## Mode: Exec
159162

docs/SUMMARY.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

docs/agentic-git-identity.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Agentic Git Identity
1+
---
2+
title: Agentic Git Identity
3+
description: Configure a separate Git identity for AI-generated commits
4+
---
25

36
Configure mux to use a separate Git identity for AI-generated commits, making it easy to distinguish between human and AI contributions. Reasons to use a separate identity include:
47

@@ -23,7 +26,7 @@ Create a separate GitHub account for your agent:
2326
2. Use a distinctive username (e.g., `yourname-agent`, `yourname-ai`)
2427
3. Use a separate email (GitHub allows plus-addressing: `yourname+ai@example.com`)
2528

26-
> **Note**: This is optional but recommended. You can also use your main account with a different email/name.
29+
<Info>This is optional but recommended. You can also use your main account with a different email/name.</Info>
2730

2831
## Step 2: Generate Classic GitHub Token
2932

@@ -54,7 +57,7 @@ Add the Git identity environment variables as [Project Secrets](./project-secret
5457

5558
These environment variables will be automatically injected when the agent runs Git commands in that project.
5659

57-
> **Note**: If you need the agent identity outside of mux, you can alternatively set these as global environment variables in your shell configuration (`~/.zshrc`, `~/.bashrc`, etc.)
60+
<Info>If you need the agent identity outside of mux, you can alternatively set these as global environment variables in your shell configuration (`~/.zshrc`, `~/.bashrc`, etc.)</Info>
5861

5962
## Step 4: Configure GitHub Authentication
6063

@@ -98,4 +101,4 @@ git config --global credential.helper ""
98101
git config --global --add credential.helper '!gh auth git-credential'
99102
```
100103

101-
⚠️ **Warning**: The "replace all" approach will disable platform keychain helpers and may break Git authentication for non-GitHub remotes (GitLab, Bitbucket, etc.).
104+
<Warning>The "replace all" approach will disable platform keychain helpers and may break Git authentication for non-GitHub remotes (GitLab, Bitbucket, etc.).</Warning>

docs/benchmarking.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
# Terminal Benchmarking
1+
---
2+
title: Terminal Benchmarking
3+
description: Run Terminal-Bench benchmarks with the mux adapter
4+
---
25

36
mux ships with a headless adapter for [Terminal-Bench](https://www.tbench.ai/). The adapter runs the Electron backend without opening a window and exercises it through the same IPC paths we use in integration tests. This page documents how to launch benchmarks from the repository tree.
47

58
## Prerequisites
69

710
- Docker must be installed and running. Terminal-Bench executes each task inside a dedicated Docker container.
8-
- `uv` is available in the nix `devShell` (provided via `flake.nix`), or install it manually from <https://docs.astral.sh/uv/>.
11+
- `uv` is available in the nix `devShell` (provided via `flake.nix`), or install it manually from [docs.astral.sh/uv](https://docs.astral.sh/uv/).
912
- Standard provider API keys (e.g. `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`) should be exported so mux can stream responses.
1013

1114
Optional environment overrides:

docs/book.toml

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/cli.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Command Line Interface
1+
---
2+
title: Command Line Interface
3+
description: Run one-off agent tasks from the command line with mux run
4+
---
25

36
Mux provides a CLI for running one-off agent tasks without the desktop app. Unlike the interactive desktop experience, `mux run` executes a single request to completion and exits.
47

docs/context-management.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Context Management
1+
---
2+
title: Context Management
3+
description: Commands for managing conversation history and token usage
4+
---
25

36
Commands for managing conversation history length and token usage.
47

@@ -149,7 +152,7 @@ Remove oldest 50% of messages.
149152

150153
### OpenAI Responses API Limitation
151154

152-
⚠️ **`/truncate` does not work with OpenAI models** due to the Responses API architecture:
155+
<Warning>`/truncate` does not work with OpenAI models due to the Responses API architecture:</Warning>
153156

154157
- OpenAI's Responses API stores conversation state server-side
155158
- Manual message deletion via `/truncate` doesn't affect the server-side state

0 commit comments

Comments
 (0)