site: a sitemap, robots rules, a searchable title and canonical docs pages
usemagpie.ai had no sitemap, a robots.txt with Cloudflare's comments
only, a home page titled just "magpie" in every language, and docs
pages with no canonical or x-default.
- public/sitemap.xml lists the home page in en, zh, ja and de and every
docs page by its clean URL. A test fails when a docs page on disk is
missing from it, or it lists one that isn't there.
- public/robots.txt names the sitemap and keeps crawlers off /api/,
/go/, /r/ and /download, so a crawler's fetch isn't counted as a
download or a partner click.
- The home <title>, og:title and twitter:title name the agents
("magpie: one model switcher for Claude Code, Codex and Gemini CLI"),
translated by worker.js like the rest (meta.title, meta.locale in
i18n.js). og:type, og:site_name and og:locale are added, plus JSON-LD
for a free, MIT-licensed SoftwareApplication and the WebSite.
- Each docs page has rel=canonical to its own clean URL and an
x-default alternate to the English page, plus og:site_name. A test
checks each one, and that every hreflang alternate is a listed page.
Run: on mote, node --test worker.test.mjs install.test.mjs from site/
at this tree: 54 of 54 pass. Broken by hand in a copy: a docs page
without its canonical, and the sitemap without docs/zh/docker, each
turns the sitemap test red.
Not tried: Google's Rich Results test; the live check is after deploy.
This commit is contained in:
@@ -16,6 +16,8 @@ const zh = {
|
||||
"meta.tagline": "每个 Agent 的模型,一处搞定。",
|
||||
"meta.ogalt": "magpie:每个 Agent 的模型,一处搞定",
|
||||
"meta.url": "https://usemagpie.ai/zh/",
|
||||
"meta.title": "magpie:Claude Code、Codex、Gemini CLI 的模型一处切换",
|
||||
"meta.locale": "zh_CN",
|
||||
"alt.picker": "magpie 里 Codex 的模型选择器,列出了 DeepSeek、Kimi 和 GLM 的模型",
|
||||
"alt.panel": "magpie 菜单栏面板:每个 Agent 各用一家厂商的模型",
|
||||
"alt.providers": "magpie 的供应商页:DeepSeek、Kimi、GLM、Qwen、MiniMax、OpenRouter、Anthropic 和 Gemini,各自列出在用它的 Agent",
|
||||
@@ -167,6 +169,8 @@ const ja = {
|
||||
"meta.tagline": "すべてのエージェントのモデルを、一か所で。",
|
||||
"meta.ogalt": "magpie:すべてのエージェントのモデルを、一か所で",
|
||||
"meta.url": "https://usemagpie.ai/ja/",
|
||||
"meta.title": "magpie:Claude Code・Codex・Gemini CLI のモデルを一か所で切り替え",
|
||||
"meta.locale": "ja_JP",
|
||||
"alt.picker": "magpie を通した Codex のモデル選択。DeepSeek、Kimi、GLM のモデルが並ぶ",
|
||||
"alt.panel": "magpie のメニューバーパネル:エージェントごとに別のベンダーのモデル",
|
||||
"alt.providers": "magpie のプロバイダ画面:DeepSeek、Kimi、GLM、Qwen、MiniMax、OpenRouter、Anthropic、Gemini と、それぞれを使っているエージェント",
|
||||
@@ -318,6 +322,8 @@ const de = {
|
||||
"meta.tagline": "Das Modell jedes Agenten. An einem Ort.",
|
||||
"meta.ogalt": "magpie: das Modell jedes Agenten, an einem Ort",
|
||||
"meta.url": "https://usemagpie.ai/de/",
|
||||
"meta.title": "magpie: ein Modellwechsler für Claude Code, Codex und Gemini CLI",
|
||||
"meta.locale": "de_DE",
|
||||
"alt.picker": "Die Modellauswahl von Codex in magpie mit Modellen von DeepSeek, Kimi und GLM",
|
||||
"alt.panel": "Das Menüleisten-Panel von magpie: jeder Agent mit dem Modell eines anderen Anbieters",
|
||||
"alt.providers": "Der Reiter „Anbieter“ in magpie: DeepSeek, Kimi, GLM, Qwen, MiniMax, OpenRouter, Anthropic und Gemini, jeweils mit den Agenten, die sie nutzen",
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/contributors">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/contributors">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/contributors">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/contributors">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/contributors">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Contributors">
|
||||
<meta property="og:description" content="Who helped make magpie, release by release.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/docker">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/docker">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/docker">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/docker">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/docker">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="magpie in Docker">
|
||||
<meta property="og:description" content="Run magpie's gateway on a server or a NAS and manage it from the browser.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/import">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/import">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/import">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/import">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/import">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Add to magpie">
|
||||
<meta property="og:description" content="One link puts your models in every agent your users run.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -29,7 +29,10 @@
|
||||
<link rel="apple-touch-icon" href="/img/icon-256.png">
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/integrate">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/integrate">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/integrate">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/integrate">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Integrate your app">
|
||||
<meta property="og:description" content="Use magpie's gateway from your app, or get a row on its Agents page.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/intent">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/intent">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/intent">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/intent">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/intent">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Intent routing">
|
||||
<meta property="og:description" content="Send each turn to a model by what it asks for.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/contributors">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/contributors">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/contributors">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/contributors">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/contributors">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="コントリビューター">
|
||||
<meta property="og:description" content="magpie を手伝ってくれた人たち、リリースごとに。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/docker">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/docker">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/docker">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/docker">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/docker">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Docker で magpie を動かす">
|
||||
<meta property="og:description" content="サーバーや NAS で magpie のゲートウェイを動かし、ブラウザから管理します。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/import">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/import">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/import">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/import">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/import">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Add to magpie">
|
||||
<meta property="og:description" content="リンク 1 つで、あなたのモデルをユーザーのすべてのエージェントへ。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/intent">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/intent">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/intent">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/intent">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/intent">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="インテントルーティング">
|
||||
<meta property="og:description" content="求められていることに応じて、ターンごとに送るモデルを決めます。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/masking">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/masking">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/masking">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/masking">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/masking">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="プライバシーマスキング">
|
||||
<meta property="og:description" content="キー、パスワード、個人情報をコンピュータに留める:送る前にマスクし、応答で元に戻します。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/mcp-router">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/mcp-router">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/mcp-router">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/mcp-router">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/mcp-router">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="MCP ルーター">
|
||||
<meta property="og:description" content="MCP サーバーを magpie のライブラリで一度設定し、一つのアドレスですべてのエージェントとアプリに。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/plugins">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/plugins">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/plugins">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/plugins">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/plugins">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="プラグインの作り方">
|
||||
<meta property="og:description" content="OpenCode プラグインか pi パッケージひとつで、どんなサービスも magpie のプロバイダにできます。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/privacy">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/privacy">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/privacy">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/privacy">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/privacy">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="プライバシー">
|
||||
<meta property="og:description" content="magpie が自分から送るものすべてと、その止め方。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/remote">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/remote">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/remote">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/remote">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/remote">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="リモート magpie">
|
||||
<meta property="og:description" content="1 つの magpie のプロバイダ、アカウント、ルーティンググループを、使うすべてのコンピューターで。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/start">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/start">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/start">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/start">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/start">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="magpie をはじめる">
|
||||
<meta property="og:description" content="手持ちのプロバイダを追加し、エージェントごとにモデルを選ぶ。セットアップを順を追って解説します。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/masking">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/masking">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/masking">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/masking">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/masking">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Privacy masking">
|
||||
<meta property="og:description" content="Keep keys, passwords and personal data on your computer: masked before a request leaves it, restored in the reply.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/mcp-router">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/mcp-router">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/mcp-router">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/mcp-router">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/mcp-router">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="MCP router">
|
||||
<meta property="og:description" content="Set up each MCP server once in magpie's Library and serve it to every agent and app through one address.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/plugins">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/plugins">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/plugins">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/plugins">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/plugins">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Writing plugins">
|
||||
<meta property="og:description" content="Turn any service into a magpie provider with an OpenCode plugin or a pi package.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/privacy">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/privacy">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/privacy">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/privacy">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/privacy">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Privacy">
|
||||
<meta property="og:description" content="Everything magpie sends by itself, and how to turn it off.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/remote">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/remote">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/remote">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/remote">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/remote">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Remote magpie">
|
||||
<meta property="og:description" content="One magpie's providers, accounts and routing groups, on every computer you use.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/start">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/start">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/start">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/start">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/start">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Get started with magpie">
|
||||
<meta property="og:description" content="Add the providers you have, pick a model for each agent. The setup, step by step.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/contributors">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/contributors">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/contributors">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/contributors">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/contributors">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="贡献墙">
|
||||
<meta property="og:description" content="谁帮助了 magpie,按版本列出。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/docker">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/docker">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/docker">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/docker">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/docker">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="在 Docker 里运行 magpie">
|
||||
<meta property="og:description" content="在服务器或 NAS 上运行 magpie 的网关,在浏览器里管理它。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/import">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/import">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/import">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/import">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/import">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Add to magpie">
|
||||
<meta property="og:description" content="一个链接,把你的模型送进用户的每个 Agent。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -29,7 +29,10 @@
|
||||
<link rel="apple-touch-icon" href="/img/icon-256.png">
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/integrate">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/integrate">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/integrate">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/integrate">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="接入你的应用">
|
||||
<meta property="og:description" content="在你的应用里使用 magpie 的网关,或在 Agents 页面拥有自己的一行。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/intent">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/intent">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/intent">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/intent">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/intent">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="意图路由">
|
||||
<meta property="og:description" content="按用户想做什么,把每一轮交给合适的模型。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/masking">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/masking">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/masking">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/masking">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/masking">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="本地脱敏">
|
||||
<meta property="og:description" content="密钥、密码和个人信息留在你的电脑上:请求发出前脱敏,回复里还原。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/mcp-router">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/mcp-router">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/mcp-router">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/mcp-router">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/mcp-router">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="MCP 路由">
|
||||
<meta property="og:description" content="MCP 服务器在 magpie 资源库里配一次,通过一个地址给所有 Agent 和应用使用。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/plugins">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/plugins">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/plugins">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/plugins">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/plugins">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="插件开发">
|
||||
<meta property="og:description" content="用一个 OpenCode 插件或 pi 扩展包,把任何服务变成 magpie 的供应商。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/privacy">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/privacy">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/privacy">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/privacy">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/privacy">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="隐私">
|
||||
<meta property="og:description" content="magpie 自己发出的所有内容,以及怎么关掉。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/remote">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/remote">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/remote">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/remote">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/remote">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="远程 magpie">
|
||||
<meta property="og:description" content="一个 magpie 的供应商、账号和路由组,用在你的每台电脑上。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/start">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/start">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/start">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/start">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/start">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="magpie 快速上手">
|
||||
<meta property="og:description" content="添加你已有的供应商,给每个 Agent 选模型。一步步配置。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
|
||||
+12
-3
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>magpie</title>
|
||||
<title data-i18n="meta.title">magpie: one model switcher for Claude Code, Codex and Gemini CLI</title>
|
||||
<meta name="description" data-i18n-attr="content:meta.desc" content="One place to pick every agent's model. Codex on DeepSeek, Claude Code on Kimi, Gemini CLI on GLM, from the menu bar, through one local gateway.">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="theme-color" content="#fafafa">
|
||||
@@ -34,13 +34,16 @@ window.themeTitle = (m) => T("Theme: " + m, "主题:" + { system: "跟随系
|
||||
<script>try{if(/Linux/.test(navigator.userAgent)&&!/Android/.test(navigator.userAgent)||localStorage.getItem("omarchy")||/[?&]omarchy=/.test(location.search))document.write('<script src="/omarchy.js"><\/script>')}catch(e){}</script>
|
||||
<link rel="icon" href="/favicon.png" type="image/png">
|
||||
<link rel="apple-touch-icon" href="/img/icon-256.png">
|
||||
<meta property="og:title" content="magpie">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:locale" data-i18n-attr="content:meta.locale" content="en_US">
|
||||
<meta property="og:title" data-i18n-attr="content:meta.title" content="magpie: one model switcher for Claude Code, Codex and Gemini CLI">
|
||||
<meta property="og:description" data-i18n-attr="content:meta.tagline" content="Every agent’s model. One place.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:image:width" content="2400">
|
||||
<meta property="og:image:height" content="1260">
|
||||
<meta property="og:image:alt" data-i18n-attr="content:meta.ogalt" content="magpie: every agent’s model, one place">
|
||||
<meta name="twitter:title" content="magpie">
|
||||
<meta name="twitter:title" data-i18n-attr="content:meta.title" content="magpie: one model switcher for Claude Code, Codex and Gemini CLI">
|
||||
<meta name="twitter:description" data-i18n-attr="content:meta.tagline" content="Every agent’s model. One place.">
|
||||
<meta name="twitter:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" data-i18n-attr="content:meta.url" content="https://usemagpie.ai/">
|
||||
@@ -51,6 +54,12 @@ window.themeTitle = (m) => T("Theme: " + m, "主题:" + { system: "跟随系
|
||||
<link rel="alternate" hreflang="de" href="https://usemagpie.ai/de/">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{"@context":"https://schema.org","@graph":[
|
||||
{"@type":"SoftwareApplication","@id":"https://usemagpie.ai/#app","name":"magpie","url":"https://usemagpie.ai/","description":"One place to pick every coding agent's model: Codex, Claude Code, Gemini CLI and more, through one local gateway, from the menu bar.","applicationCategory":"DeveloperApplication","operatingSystem":"macOS 12+, Windows, Linux","downloadUrl":"https://github.com/yetone/magpie-releases/releases/latest","image":"https://usemagpie.ai/img/og.png","license":"https://opensource.org/licenses/MIT","isAccessibleForFree":true,"offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"sameAs":["https://github.com/yetone/magpie"]},
|
||||
{"@type":"WebSite","@id":"https://usemagpie.ai/#site","name":"magpie","url":"https://usemagpie.ai/","inLanguage":["en","zh-CN","ja","de"]}
|
||||
]}
|
||||
</script>
|
||||
<style>
|
||||
:root {
|
||||
--bg: #fafafa;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
User-agent: *
|
||||
Disallow: /api/
|
||||
Disallow: /go/
|
||||
Disallow: /r/
|
||||
Disallow: /download
|
||||
|
||||
Sitemap: https://usemagpie.ai/sitemap.xml
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url><loc>https://usemagpie.ai/</loc></url>
|
||||
<url><loc>https://usemagpie.ai/zh/</loc></url>
|
||||
<url><loc>https://usemagpie.ai/ja/</loc></url>
|
||||
<url><loc>https://usemagpie.ai/de/</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/contributors</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/docker</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/import</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/integrate</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/intent</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/masking</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/mcp-router</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/plugins</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/privacy</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/remote</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/start</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/contributors</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/docker</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/import</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/integrate</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/intent</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/masking</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/mcp-router</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/plugins</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/privacy</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/remote</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/start</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/contributors</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/docker</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/import</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/intent</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/masking</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/mcp-router</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/plugins</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/privacy</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/remote</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/start</loc></url>
|
||||
</urlset>
|
||||
@@ -665,3 +665,47 @@ test("contributors: the pages say how to be left off, and every docs footer link
|
||||
}
|
||||
assert.ok(readFileSync(new URL("./public/index.html", import.meta.url), "utf8").includes('<a href="/docs/contributors" data-i18n="foot.contrib">'));
|
||||
});
|
||||
|
||||
test("seo: the sitemap lists the home pages and every docs page, each its own canonical", async () => {
|
||||
const { readFile, readdir } = await import("node:fs/promises");
|
||||
const { LANGS } = await import("./i18n.js");
|
||||
const pub = new URL("./public/", import.meta.url);
|
||||
const xml = await readFile(new URL("sitemap.xml", pub), "utf8");
|
||||
const listed = [...xml.matchAll(/<loc>([^<]+)<\/loc>/g)].map((m) => m[1]);
|
||||
const want = ["https://usemagpie.ai/", ...Object.keys(LANGS).map((l) => `https://usemagpie.ai/${l}/`)];
|
||||
for (const dir of ["docs/", "docs/zh/", "docs/ja/"])
|
||||
for (const f of (await readdir(new URL(dir, pub))).filter((f) => f.endsWith(".html")).sort())
|
||||
want.push(`https://usemagpie.ai/${dir}${f.slice(0, -5)}`);
|
||||
assert.deepEqual([...listed].sort(), [...want].sort());
|
||||
const home = await readFile(new URL("index.html", pub), "utf8");
|
||||
assert.match(home, /<link rel="canonical" data-i18n-attr="href:meta.url" href="https:\/\/usemagpie.ai\/">/);
|
||||
for (const [l, { dict }] of Object.entries(LANGS)) assert.equal(dict["meta.url"], `https://usemagpie.ai/${l}/`);
|
||||
for (const u of listed.filter((u) => u.includes("/docs/"))) {
|
||||
const html = await readFile(new URL(u.slice("https://usemagpie.ai/".length) + ".html", pub), "utf8");
|
||||
const canon = [...html.matchAll(/<link rel="canonical" href="([^"]+)">/g)].map((m) => m[1]);
|
||||
assert.deepEqual(canon, [u], `${u} canonical`);
|
||||
assert.ok(html.includes(`<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/${u.split("/").pop()}">`), `${u} x-default`);
|
||||
assert.ok(!/name="robots" content="[^"]*noindex/.test(html), `${u} is noindex`);
|
||||
// every alternate is a page that exists, so none is listed as a 404
|
||||
for (const [, alt] of html.matchAll(/<link rel="alternate" hreflang="[a-z-]+" href="([^"]+)">/g))
|
||||
assert.ok(listed.includes(alt), `${u}: ${alt}`);
|
||||
}
|
||||
});
|
||||
|
||||
test("seo: robots.txt names the sitemap and keeps crawlers off the counted links", async () => {
|
||||
const { readFile } = await import("node:fs/promises");
|
||||
const txt = await readFile(new URL("./public/robots.txt", import.meta.url), "utf8");
|
||||
assert.match(txt, /^Sitemap: https:\/\/usemagpie.ai\/sitemap.xml$/m);
|
||||
for (const p of ["/api/", "/go/", "/r/", "/download"]) assert.match(txt, new RegExp(`^Disallow: ${p}$`, "m"));
|
||||
});
|
||||
|
||||
test("seo: the home page's structured data parses and its title is in every language", async () => {
|
||||
const { readFile } = await import("node:fs/promises");
|
||||
const { LANGS } = await import("./i18n.js");
|
||||
const html = await readFile(new URL("./public/index.html", import.meta.url), "utf8");
|
||||
const ld = html.match(/<script type="application\/ld\+json">([\s\S]*?)<\/script>/);
|
||||
const app = JSON.parse(ld[1])["@graph"].find((n) => n["@type"] === "SoftwareApplication");
|
||||
assert.equal(app.offers.price, "0");
|
||||
assert.match(html, /<title data-i18n="meta.title">[^<]{20,70}<\/title>/);
|
||||
for (const [l, { dict }] of Object.entries(LANGS)) assert.ok(dict["meta.title"].startsWith("magpie"), l);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user