feat: add per-language landing pages with language switcher

Each language gets a chromeless landing at /{lang}/home, registered as a
hidden first page of that language's Cloud > Use tab so the navbar
language switcher recognizes them as translations of each other. Bare /
redirects to /en/home, and the old-introduction and removed-section
redirects now route by source language to /en/home, /zh/home, or
/ja/home. This replaces the single root index.mdx, whose switcher could
not localize.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
RiskeyL
2026-06-15 20:37:01 +08:00
parent 824285a749
commit bc89901416
4 changed files with 184 additions and 28 deletions
+47 -28
View File
@@ -31,6 +31,7 @@
"tab": "Use",
"icon": "book-open",
"pages": [
"en/home",
"en/cloud/use-dify/getting-started/introduction",
{
"group": "Build",
@@ -913,6 +914,7 @@
"tab": "使用",
"icon": "book-open",
"pages": [
"zh/home",
"zh/cloud/use-dify/getting-started/introduction",
{
"group": "构建",
@@ -1795,6 +1797,7 @@
"tab": "使い方",
"icon": "book-open",
"pages": [
"ja/home",
"ja/cloud/use-dify/getting-started/introduction",
{
"group": "ビルド",
@@ -2668,6 +2671,18 @@
]
},
"redirects": [
{
"source": "/en/use-dify/getting-started/introduction",
"destination": "/en/home"
},
{
"source": "/zh/use-dify/getting-started/introduction",
"destination": "/zh/home"
},
{
"source": "/ja/use-dify/getting-started/introduction",
"destination": "/ja/home"
},
{
"source": "/en/api-reference/datasets/get-knowledge-base-list",
"destination": "/api-reference/datasets/get-knowledge-base-list"
@@ -3010,31 +3025,31 @@
},
{
"source": "/zh-hans",
"destination": "/zh/cloud/use-dify/getting-started/introduction"
"destination": "/zh/home"
},
{
"source": "/introduction",
"destination": "/en/cloud/use-dify/getting-started/introduction"
"destination": "/en/home"
},
{
"source": "/en/introduction",
"destination": "/en/cloud/use-dify/getting-started/introduction"
"destination": "/en/home"
},
{
"source": "/zh-hans/introduction",
"destination": "/zh/cloud/use-dify/getting-started/introduction"
"destination": "/zh/home"
},
{
"source": "/ja-jp/introduction",
"destination": "/ja/cloud/use-dify/getting-started/introduction"
"destination": "/ja/home"
},
{
"source": "/getting-started/readme/features-and-specifications",
"destination": "/en/cloud/use-dify/getting-started/introduction"
"destination": "/en/home"
},
{
"source": "/getting-started/readme/model-providers",
"destination": "/en/cloud/use-dify/getting-started/introduction"
"destination": "/en/home"
},
{
"source": "/getting-started/install-self-hosted",
@@ -3066,7 +3081,7 @@
},
{
"source": "/getting-started/cloud",
"destination": "/en/cloud/use-dify/getting-started/introduction"
"destination": "/en/home"
},
{
"source": "/getting-started/dify-premium",
@@ -3218,11 +3233,11 @@
},
{
"source": "/en/learn-more/:slug*",
"destination": "/en/cloud/use-dify/getting-started/introduction"
"destination": "/en/home"
},
{
"source": "/en/guides/:slug*",
"destination": "/en/cloud/use-dify/getting-started/introduction"
"destination": "/en/home"
},
{
"source": "/en/getting-started/:slug*",
@@ -3230,15 +3245,15 @@
},
{
"source": "/en/community/:slug*",
"destination": "/en/cloud/use-dify/getting-started/introduction"
"destination": "/en/home"
},
{
"source": "/en/resources/:slug*",
"destination": "/en/cloud/use-dify/getting-started/introduction"
"destination": "/en/home"
},
{
"source": "/en/policies/:slug*",
"destination": "/en/cloud/use-dify/getting-started/introduction"
"destination": "/en/home"
},
{
"source": "/ja-jp/guides/workflow/node/:slug*",
@@ -3346,31 +3361,31 @@
},
{
"source": "/ja-jp/learn-more/faq/:slug*",
"destination": "/ja/cloud/use-dify/getting-started/introduction"
"destination": "/ja/home"
},
{
"source": "/ja-jp/learn-more/:slug*",
"destination": "/ja/cloud/use-dify/getting-started/introduction"
"destination": "/ja/home"
},
{
"source": "/ja-jp/guides/:slug*",
"destination": "/ja/cloud/use-dify/getting-started/introduction"
"destination": "/ja/home"
},
{
"source": "/ja-jp/getting-started/:slug*",
"destination": "/ja/cloud/use-dify/getting-started/introduction"
"destination": "/ja/home"
},
{
"source": "/ja-jp/community/:slug*",
"destination": "/ja/cloud/use-dify/getting-started/introduction"
"destination": "/ja/home"
},
{
"source": "/ja-jp/resources/:slug*",
"destination": "/ja/cloud/use-dify/getting-started/introduction"
"destination": "/ja/home"
},
{
"source": "/ja-jp/policies/:slug*",
"destination": "/ja/cloud/use-dify/getting-started/introduction"
"destination": "/ja/home"
},
{
"source": "/zh-hans/guides/workflow/node/:slug*",
@@ -3478,35 +3493,35 @@
},
{
"source": "/zh-hans/learn-more/faq/:slug*",
"destination": "/zh/cloud/use-dify/getting-started/introduction"
"destination": "/zh/home"
},
{
"source": "/zh-hans/learn-more/:slug*",
"destination": "/zh/cloud/use-dify/getting-started/introduction"
"destination": "/zh/home"
},
{
"source": "/zh-hans/guides/:slug*",
"destination": "/zh/cloud/use-dify/getting-started/introduction"
"destination": "/zh/home"
},
{
"source": "/zh-hans/getting-started/cloud",
"destination": "/zh/cloud/use-dify/getting-started/introduction"
"destination": "/zh/home"
},
{
"source": "/zh-hans/getting-started/dify-premium",
"destination": "/zh/cloud/use-dify/getting-started/introduction"
"destination": "/zh/home"
},
{
"source": "/zh-hans/community/:slug*",
"destination": "/zh/cloud/use-dify/getting-started/introduction"
"destination": "/zh/home"
},
{
"source": "/zh-hans/resources/:slug*",
"destination": "/zh/cloud/use-dify/getting-started/introduction"
"destination": "/zh/home"
},
{
"source": "/zh-hans/policies/:slug*",
"destination": "/zh/cloud/use-dify/getting-started/introduction"
"destination": "/zh/home"
},
{
"source": "/use-dify/:slug*",
@@ -3647,6 +3662,10 @@
{
"source": "/ja/self-host/troubleshooting/:slug*",
"destination": "/ja/self-host/deploy/troubleshooting/:slug*"
},
{
"source": "/",
"destination": "/en/home"
}
],
"integrations": {
+1
View File
@@ -2,6 +2,7 @@
title: Dify Documentation
description: Build AI applications on Dify Cloud or run Dify on your own infrastructure
mode: "custom"
hidden: true
---
<div className="max-w-5xl mx-auto px-6 py-16">
+68
View File
@@ -0,0 +1,68 @@
---
title: Dify ドキュメント
description: Dify Cloud で AI アプリを構築するか、自分のインフラで Dify を運用する
mode: "custom"
hidden: true
---
<div className="max-w-5xl mx-auto px-6 py-16">
<h1 className="text-4xl font-bold tracking-tight text-black dark:text-white">Dify ドキュメント</h1>
<p className="mt-3 text-lg text-gray-500">
Dify は、AI アプリケーションを構築するためのオープンソースプラットフォームです。自分のデータを活用する Agent、Agentic ワークフロー、チャットボットを作成し、Web アプリとして公開したり API で連携したりできます。
</p>
<div className="mt-10">
<Card title="最初のアプリを作る" icon="rocket" href="/ja/quick-start" horizontal>
Dify が初めてですか?まずはここから。動く AI アプリを作りながら、基本的な概念を身につけられます。
</Card>
</div>
<h2 className="mt-12 text-2xl font-semibold text-black dark:text-white">Dify の利用方法を選ぶ</h2>
<div className="mt-6">
<Columns cols={2}>
<Card title="Dify Cloud" icon="cloud" href="/ja/cloud/use-dify/getting-started/introduction">
マネージドプラットフォームですぐに構築を始められます。インストール不要で、無料の Sandbox プランも利用できます。
</Card>
<Card title="セルフホスト" icon="server" href="/ja/self-host/deploy/overview">
オープンソースの Community Edition を自社のインフラで運用できます。Docker Compose を使えば数分でデプロイできます。
</Card>
</Columns>
</div>
<h2 className="mt-12 text-2xl font-semibold text-black dark:text-white">さらに詳しく</h2>
<div className="mt-6">
<Columns cols={3}>
<Card title="API リファレンス" icon="code" href="/api-reference/chats/send-chat-message">
REST API を通じて、Dify アプリケーションを自分のプロダクトに組み込めます。
</Card>
<Card title="プラグイン開発" icon="code-pull-request" href="/ja/develop-plugin/getting-started/getting-started-dify-plugin">
独自のツール、モデル、連携機能で Dify を拡張できます。
</Card>
<Card title="チュートリアル" icon="graduation-cap" href="/ja/tutorials/workflow-101/lesson-01">
最初のワークフローから完全なサンプルアプリまで、手順に沿って学べます。
</Card>
</Columns>
</div>
<h2 className="mt-12 text-2xl font-semibold text-black dark:text-white">その他のリソース</h2>
<div className="mt-6">
<Columns cols={2}>
<Card title="Discord" icon="discord" href="https://discord.gg/FngNHpbcY7" horizontal>
作っているものを共有し、アイデアを交換し、コミュニティから助けを得られます。
</Card>
<Card title="GitHub" icon="github" href="https://github.com/langgenius/dify" horizontal>
Dify はオープンソースです。Issue で議論し、バグを報告し、コードを貢献できます。
</Card>
<Card title="マーケットプレイス" icon="store" href="https://marketplace.dify.ai/" horizontal>
コミュニティが作成したプラグインやアプリテンプレートを閲覧し、すぐにインストールできます。
</Card>
<Card title="ブログ" icon="newspaper" href="https://dify.ai/blog" horizontal>
製品の発表、機能の詳細解説、エンジニアリングノートなど。
</Card>
</Columns>
</div>
<p className="mt-14 text-sm text-gray-500">
Dify という名前は <strong>D</strong>o <strong>I</strong>t <strong>F</strong>or <strong>Y</strong>ou に由来しています。
</p>
</div>
+68
View File
@@ -0,0 +1,68 @@
---
title: Dify 文档
description: 在 Dify Cloud 上构建 AI 应用,或在自己的基础设施上运行 Dify
mode: "custom"
hidden: true
---
<div className="max-w-5xl mx-auto px-6 py-16">
<h1 className="text-4xl font-bold tracking-tight text-black dark:text-white">Dify 文档</h1>
<p className="mt-3 text-lg text-gray-500">
Dify 是一个用于构建 AI 应用的开源平台。你可以创建 Agent、Agentic 工作流和聊天机器人,让它们利用你自己的数据,并发布为 Web 应用或通过 API 集成。
</p>
<div className="mt-10">
<Card title="构建你的第一个应用" icon="rocket" href="/zh/quick-start" horizontal>
刚接触 Dify?从这里开始:构建一个可运行的 AI 应用,并在过程中掌握核心概念。
</Card>
</div>
<h2 className="mt-12 text-2xl font-semibold text-black dark:text-white">选择 Dify 的运行方式</h2>
<div className="mt-6">
<Columns cols={2}>
<Card title="Dify Cloud" icon="cloud" href="/zh/cloud/use-dify/getting-started/introduction">
在托管平台上立即开始构建。无需安装,并包含免费的 Sandbox 套餐。
</Card>
<Card title="自托管" icon="server" href="/zh/self-host/deploy/overview">
在你自己的基础设施上运行开源的社区版。使用 Docker Compose 几分钟即可完成部署。
</Card>
</Columns>
</div>
<h2 className="mt-12 text-2xl font-semibold text-black dark:text-white">了解更多</h2>
<div className="mt-6">
<Columns cols={3}>
<Card title="API 参考" icon="code" href="/api-reference/chats/send-chat-message">
通过 REST API 将 Dify 应用集成到你自己的产品中。
</Card>
<Card title="插件开发" icon="code-pull-request" href="/zh/develop-plugin/getting-started/getting-started-dify-plugin">
用你自己的工具、模型和集成扩展 Dify。
</Card>
<Card title="教程" icon="graduation-cap" href="/zh/tutorials/workflow-101/lesson-01">
循序渐进的课程,从第一个工作流到完整的示例应用。
</Card>
</Columns>
</div>
<h2 className="mt-12 text-2xl font-semibold text-black dark:text-white">更多资源</h2>
<div className="mt-6">
<Columns cols={2}>
<Card title="Discord" icon="discord" href="https://discord.gg/FngNHpbcY7" horizontal>
分享你正在构建的内容,交流想法,并从社区获得帮助。
</Card>
<Card title="GitHub" icon="github" href="https://github.com/langgenius/dify" horizontal>
Dify 是开源项目。你可以在 issues 中讨论、报告问题并贡献代码。
</Card>
<Card title="市场" icon="store" href="https://marketplace.dify.ai/" horizontal>
浏览社区构建的插件和应用模板,即装即用。
</Card>
<Card title="博客" icon="newspaper" href="https://dify.ai/blog" horizontal>
产品公告、功能详解和工程实践笔记。
</Card>
</Columns>
</div>
<p className="mt-14 text-sm text-gray-500">
Dify 这个名字来自 <strong>D</strong>o <strong>I</strong>t <strong>F</strong>or <strong>Y</strong>ou。
</p>
</div>