From 02511e25a2c1512825a02bb34a111a2e9d32a88c Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Mon, 28 Sep 2026 23:03:51 -0700 Subject: [PATCH] docs: add CodeRouter documentation in all locales Three pages under /docs/coderouter: an overview (supported accounts, routing and failover, Mac quickstart, teams and sharing, usage, and credential handling), agents and models (Codex, OpenCode, Pi, and Claude Code on a Mac and on Cloud machines, API keys, model selection, Bedrock mapping), and a CLI reference with troubleshooting. Wired into docs nav, sitemap, agent page index, docs search aliases, and the audited SEO matrix, and linked from the Cloud workspaces and Cloud CLI pages. Copy is checked against the cr CLI, the cmux coderouter verbs, the guest CLI, and the coderouter data-plane error messages; translated into all 20 site locales. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../(landing)/docs/cloud/cli/page.tsx | 5 + .../(landing)/docs/cloud/workspaces/page.tsx | 5 + .../(landing)/docs/coderouter/agents/page.tsx | 117 +++++++++++++ .../(landing)/docs/coderouter/cli/page.tsx | 127 ++++++++++++++ .../(landing)/docs/coderouter/page.tsx | 122 +++++++++++++ web/app/[locale]/components/docs-nav-items.ts | 8 + web/app/lib/agent-page-paths.ts | 3 + web/app/sitemap.ts | 3 + web/i18n/audited-seo.ts | 5 +- web/messages/ar.json | 161 +++++++++++++++++- web/messages/bs.json | 161 +++++++++++++++++- web/messages/da.json | 161 +++++++++++++++++- web/messages/de.json | 161 +++++++++++++++++- web/messages/en.json | 161 +++++++++++++++++- web/messages/es.json | 161 +++++++++++++++++- web/messages/fr.json | 161 +++++++++++++++++- web/messages/it.json | 161 +++++++++++++++++- web/messages/ja.json | 161 +++++++++++++++++- web/messages/km.json | 161 +++++++++++++++++- web/messages/ko.json | 161 +++++++++++++++++- web/messages/no.json | 161 +++++++++++++++++- web/messages/pl.json | 161 +++++++++++++++++- web/messages/pt-BR.json | 161 +++++++++++++++++- web/messages/ru.json | 161 +++++++++++++++++- web/messages/th.json | 161 +++++++++++++++++- web/messages/tr.json | 161 +++++++++++++++++- web/messages/uk.json | 161 +++++++++++++++++- web/messages/zh-CN.json | 161 +++++++++++++++++- web/messages/zh-TW.json | 161 +++++++++++++++++- web/tests/seo.test.ts | 3 + web/tools/build-docs-search.mjs | 3 + 31 files changed, 3560 insertions(+), 61 deletions(-) create mode 100644 web/app/[locale]/(landing)/docs/coderouter/agents/page.tsx create mode 100644 web/app/[locale]/(landing)/docs/coderouter/cli/page.tsx create mode 100644 web/app/[locale]/(landing)/docs/coderouter/page.tsx diff --git a/web/app/[locale]/(landing)/docs/cloud/cli/page.tsx b/web/app/[locale]/(landing)/docs/cloud/cli/page.tsx index 39e33eaff85c..98ec30a55ed2 100644 --- a/web/app/[locale]/(landing)/docs/cloud/cli/page.tsx +++ b/web/app/[locale]/(landing)/docs/cloud/cli/page.tsx @@ -3,6 +3,7 @@ import { auditedDocsMetadata } from "../../audited-docs-metadata"; import { DocsSchema } from "../../docs-schema"; import { CodeBlock } from "@/app/[locale]/components/code-block"; import { DocsHeading } from "@/app/[locale]/components/docs-heading"; +import { DocsLink as Link } from "@/app/[locale]/components/docs-link"; export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params; @@ -13,6 +14,9 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s }); } +const linkClass = + "underline underline-offset-2 decoration-link-underline hover:decoration-foreground transition-colors"; + export default async function CloudCliPage({ params, }: { @@ -132,6 +136,7 @@ cmux vpn revoke`} cmux ai-accounts upload claude|codex|anthropic-key|openai-key [--label