From bc8990141663d164687783c504fa88cc824fc0b3 Mon Sep 17 00:00:00 2001 From: RiskeyL <7a8y@163.com> Date: Mon, 15 Jun 2026 20:37:01 +0800 Subject: [PATCH] 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 --- docs.json | 75 +++++++++++++++++++++++++--------------- index.mdx => en/home.mdx | 1 + ja/home.mdx | 68 ++++++++++++++++++++++++++++++++++++ zh/home.mdx | 68 ++++++++++++++++++++++++++++++++++++ 4 files changed, 184 insertions(+), 28 deletions(-) rename index.mdx => en/home.mdx (99%) create mode 100644 ja/home.mdx create mode 100644 zh/home.mdx diff --git a/docs.json b/docs.json index cc1ff65d..1f9e5c5b 100644 --- a/docs.json +++ b/docs.json @@ -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": { diff --git a/index.mdx b/en/home.mdx similarity index 99% rename from index.mdx rename to en/home.mdx index 14f1d5c7..92ab9b80 100644 --- a/index.mdx +++ b/en/home.mdx @@ -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 ---
diff --git a/ja/home.mdx b/ja/home.mdx new file mode 100644 index 00000000..f1872b9c --- /dev/null +++ b/ja/home.mdx @@ -0,0 +1,68 @@ +--- +title: Dify ドキュメント +description: Dify Cloud で AI アプリを構築するか、自分のインフラで Dify を運用する +mode: "custom" +hidden: true +--- + +
+

Dify ドキュメント

+

+ Dify は、AI アプリケーションを構築するためのオープンソースプラットフォームです。自分のデータを活用する Agent、Agentic ワークフロー、チャットボットを作成し、Web アプリとして公開したり API で連携したりできます。 +

+ +
+ + Dify が初めてですか?まずはここから。動く AI アプリを作りながら、基本的な概念を身につけられます。 + +
+ +

Dify の利用方法を選ぶ

+
+ + + マネージドプラットフォームですぐに構築を始められます。インストール不要で、無料の Sandbox プランも利用できます。 + + + オープンソースの Community Edition を自社のインフラで運用できます。Docker Compose を使えば数分でデプロイできます。 + + +
+ +

さらに詳しく

+
+ + + REST API を通じて、Dify アプリケーションを自分のプロダクトに組み込めます。 + + + 独自のツール、モデル、連携機能で Dify を拡張できます。 + + + 最初のワークフローから完全なサンプルアプリまで、手順に沿って学べます。 + + +
+ +

その他のリソース

+
+ + + 作っているものを共有し、アイデアを交換し、コミュニティから助けを得られます。 + + + Dify はオープンソースです。Issue で議論し、バグを報告し、コードを貢献できます。 + + + コミュニティが作成したプラグインやアプリテンプレートを閲覧し、すぐにインストールできます。 + + + 製品の発表、機能の詳細解説、エンジニアリングノートなど。 + + +
+ +

+ Dify という名前は Do It For You に由来しています。 +

+
diff --git a/zh/home.mdx b/zh/home.mdx new file mode 100644 index 00000000..836c81c6 --- /dev/null +++ b/zh/home.mdx @@ -0,0 +1,68 @@ +--- +title: Dify 文档 +description: 在 Dify Cloud 上构建 AI 应用,或在自己的基础设施上运行 Dify +mode: "custom" +hidden: true +--- + +
+

Dify 文档

+

+ Dify 是一个用于构建 AI 应用的开源平台。你可以创建 Agent、Agentic 工作流和聊天机器人,让它们利用你自己的数据,并发布为 Web 应用或通过 API 集成。 +

+ +
+ + 刚接触 Dify?从这里开始:构建一个可运行的 AI 应用,并在过程中掌握核心概念。 + +
+ +

选择 Dify 的运行方式

+
+ + + 在托管平台上立即开始构建。无需安装,并包含免费的 Sandbox 套餐。 + + + 在你自己的基础设施上运行开源的社区版。使用 Docker Compose 几分钟即可完成部署。 + + +
+ +

了解更多

+
+ + + 通过 REST API 将 Dify 应用集成到你自己的产品中。 + + + 用你自己的工具、模型和集成扩展 Dify。 + + + 循序渐进的课程,从第一个工作流到完整的示例应用。 + + +
+ +

更多资源

+
+ + + 分享你正在构建的内容,交流想法,并从社区获得帮助。 + + + Dify 是开源项目。你可以在 issues 中讨论、报告问题并贡献代码。 + + + 浏览社区构建的插件和应用模板,即装即用。 + + + 产品公告、功能详解和工程实践笔记。 + + +
+ +

+ Dify 这个名字来自 Do It For You。 +

+