mirror of
https://github.com/multica-ai/multica.git
synced 2026-08-04 17:18:35 +02:00
Complete rework of the docs site, in three passes squashed into one change: 1. P0 fact corrections across the core-loop pages (agent access model, comment triggers and coalescing, issue lifecycle, offline/queue semantics, task states and retries, dispatch via realtime push). 2. Chinese rewrite as the authoring language: final 12-group IA, new "Core concepts" and "Put agents to work" pages, curated welcome page, permanent-UI quickstart (no onboarding-wizard dependency), operator reference restored (CLI command reference, webhook response codes, task state/timeout tables, config set keys, upgrade notes). 3. Verification and sync: every load-bearing claim re-checked against current main with file:line evidence (migration 103 auto-backfill, CLI-only trigger toggling, duplication semantics, COOKIE_DOMAIN, GitHub App variables, Qwen Code as the 17th provider); register standards applied to all 39 pages; en/ja/ko synced from zh with same-language heading anchors (verified, zero dead links); 17 product screenshots plus 2 diagrams wired in. Supporting fixes: i18n middleware no longer swallows /images assets, sidebar folder indent survives custom link padding, unused editorial components removed. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
56 lines
1.4 KiB
JavaScript
56 lines
1.4 KiB
JavaScript
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
reactStrictMode: true,
|
|
basePath: "/docs",
|
|
// Visiting http://host/ (outside basePath) would otherwise 404 — redirect
|
|
// to the docs root. basePath: false makes the source and destination
|
|
// literal (not re-prefixed with `/docs`), so the redirect runs before
|
|
// basePath routing kicks in.
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/",
|
|
destination: "/docs",
|
|
basePath: false,
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: "/zh/getting-started/cloud-quickstart",
|
|
destination: "/zh/cloud-quickstart",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/zh/getting-started/self-hosting",
|
|
destination: "/zh/self-host-quickstart",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/zh/guides/quickstart",
|
|
destination: "/zh/cloud-quickstart",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/zh/guides/agents",
|
|
destination: "/zh/agents",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/zh/cli/installation",
|
|
destination: "/zh/cli",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/zh/cli/reference",
|
|
destination: "/zh/cli",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|