From e629382c6362aa7f4b69bbf2210e0753ab1c9e25 Mon Sep 17 00:00:00 2001 From: AllenWriter Date: Mon, 19 May 2025 14:58:56 +0800 Subject: [PATCH] Feat: update docs url --- api_access/agent.en.mdx | 4 +- api_access/agent.zh.mdx | 4 +- api_access/chat.en.mdx | 4 +- api_access/chat.zh.mdx | 4 +- api_access/chatflow.en.mdx | 4 +- api_access/chatflow.zh.mdx | 4 +- api_access/completion.en.mdx | 4 +- api_access/completion.zh.mdx | 4 +- api_access/workflow.en.mdx | 4 +- api_access/workflow.zh.mdx | 4 +- plugin-dev-en/0432-endpoint.mdx | 2 +- plugin-dev-en/sync/plugin_mappings.json | 80 +++++++++---------- .../sync/sync_all_mdx_files_to_json.py | 6 +- .../sync/sync_all_mdx_files_to_json.py | 6 +- plugin-dev-zh/9241-bundle.mdx | 2 +- plugin-dev-zh/sync/plugin_mappings.json | 80 +++++++++---------- .../sync/sync_all_mdx_files_to_json.py | 4 +- tools/2_apply_docs_json.py | 4 +- tools/apply_docs_json.py | 2 +- 19 files changed, 113 insertions(+), 113 deletions(-) diff --git a/api_access/agent.en.mdx b/api_access/agent.en.mdx index e4cf8d9a..d7e6f09d 100644 --- a/api_access/agent.en.mdx +++ b/api_access/agent.en.mdx @@ -1201,14 +1201,14 @@ It will be automatically generated by the script. Help improve our documentation by contributing directly Found an error or have suggestions? Let us know diff --git a/api_access/agent.zh.mdx b/api_access/agent.zh.mdx index 09ba8a8d..7a82f952 100644 --- a/api_access/agent.zh.mdx +++ b/api_access/agent.zh.mdx @@ -1034,14 +1034,14 @@ It will be automatically generated by the script. Help improve our documentation by contributing directly Found an error or have suggestions? Let us know diff --git a/api_access/chat.en.mdx b/api_access/chat.en.mdx index c672c752..9d4d49b5 100644 --- a/api_access/chat.en.mdx +++ b/api_access/chat.en.mdx @@ -1201,14 +1201,14 @@ It will be automatically generated by the script. Help improve our documentation by contributing directly Found an error or have suggestions? Let us know diff --git a/api_access/chat.zh.mdx b/api_access/chat.zh.mdx index bcc00594..9e0cd976 100644 --- a/api_access/chat.zh.mdx +++ b/api_access/chat.zh.mdx @@ -1034,14 +1034,14 @@ It will be automatically generated by the script. Help improve our documentation by contributing directly Found an error or have suggestions? Let us know diff --git a/api_access/chatflow.en.mdx b/api_access/chatflow.en.mdx index d5bec20d..7bbdb8b0 100644 --- a/api_access/chatflow.en.mdx +++ b/api_access/chatflow.en.mdx @@ -1156,14 +1156,14 @@ It will be automatically generated by the script. Help improve our documentation by contributing directly Found an error or have suggestions? Let us know diff --git a/api_access/chatflow.zh.mdx b/api_access/chatflow.zh.mdx index fbb775da..69a809ac 100755 --- a/api_access/chatflow.zh.mdx +++ b/api_access/chatflow.zh.mdx @@ -1163,14 +1163,14 @@ It will be automatically generated by the script. Help improve our documentation by contributing directly Found an error or have suggestions? Let us know diff --git a/api_access/completion.en.mdx b/api_access/completion.en.mdx index cadc3c5b..7569dba5 100755 --- a/api_access/completion.en.mdx +++ b/api_access/completion.en.mdx @@ -504,14 +504,14 @@ It will be automatically generated by the script. Help improve our documentation by contributing directly Found an error or have suggestions? Let us know diff --git a/api_access/completion.zh.mdx b/api_access/completion.zh.mdx index 492d5455..367db19d 100755 --- a/api_access/completion.zh.mdx +++ b/api_access/completion.zh.mdx @@ -667,14 +667,14 @@ It will be automatically generated by the script. Help improve our documentation by contributing directly Found an error or have suggestions? Let us know diff --git a/api_access/workflow.en.mdx b/api_access/workflow.en.mdx index 646e83ab..595a7563 100644 --- a/api_access/workflow.en.mdx +++ b/api_access/workflow.en.mdx @@ -677,14 +677,14 @@ It will be automatically generated by the script. Help improve our documentation by contributing directly Found an error or have suggestions? Let us know diff --git a/api_access/workflow.zh.mdx b/api_access/workflow.zh.mdx index 0c9fdd4d..8ced2011 100644 --- a/api_access/workflow.zh.mdx +++ b/api_access/workflow.zh.mdx @@ -660,14 +660,14 @@ It will be automatically generated by the script. Help improve our documentation by contributing directly Found an error or have suggestions? Let us know diff --git a/plugin-dev-en/0432-endpoint.mdx b/plugin-dev-en/0432-endpoint.mdx index 31c3c4b5..e6f43d3e 100644 --- a/plugin-dev-en/0432-endpoint.mdx +++ b/plugin-dev-en/0432-endpoint.mdx @@ -117,7 +117,7 @@ If you are learning plugin development, it is recommended to first read the [Get * [General Specifications Definition](/plugin-dev-en/0411-general-specifications.mdx) - Understand common structures like ProviderConfig. * [Develop a Slack Bot Plugin Example](/plugin-dev-en/0432-develop-a-slack-bot-plugin.mdx) - Another plugin development example. * [Getting Started with Plugin Development](/plugin-dev-en/0211-getting-started-dify-tool.mdx) - Develop a plugin from scratch. -* [Reverse Invocation of Dify Services](/plugin-dev-en/9241-reverse-invocation-app.en.mdx) - Learn how to use the reverse invocation feature. (Note: Link updated to closest available English document) +* [Reverse Invocation of Dify Services](/plugin-dev-en/9241-reverse-invocation-app.mdx) - Learn how to use the reverse invocation feature. (Note: Link updated to closest available English document) {/* Contributing Section diff --git a/plugin-dev-en/sync/plugin_mappings.json b/plugin-dev-en/sync/plugin_mappings.json index aa484540..ce9d70ee 100644 --- a/plugin-dev-en/sync/plugin_mappings.json +++ b/plugin-dev-en/sync/plugin_mappings.json @@ -12,163 +12,163 @@ }, { "plugin_path": "en/plugins/quick-start/develop-plugins/README.mdx", - "dev_path": "plugin-dev-en/0111-getting-started-dify-plugin.en.mdx", + "dev_path": "plugin-dev-en/0111-getting-started-dify-plugin.mdx", "verified": true }, { "plugin_path": null, - "dev_path": "plugin-dev-en/0211-getting-started-new-model.en.mdx", + "dev_path": "plugin-dev-en/0211-getting-started-new-model.mdx", "verified": true }, { "plugin_path": "en/plugins/faq.mdx", - "dev_path": "plugin-dev-en/0331-faq.en.mdx", + "dev_path": "plugin-dev-en/0331-faq.mdx", "verified": true }, { "plugin_path": "en/plugins/quick-start/develop-plugins/tool-plugin.mdx", - "dev_path": "plugin-dev-en/0222-tool-plugin.en.mdx", + "dev_path": "plugin-dev-en/0222-tool-plugin.mdx", "verified": true }, { "plugin_path": "en/plugins/quick-start/develop-plugins/model-plugin/README.mdx", - "dev_path": "plugin-dev-en/0411-model-plugin-introduction.en.mdx", + "dev_path": "plugin-dev-en/0411-model-plugin-introduction.mdx", "verified": true }, { "plugin_path": "en/plugins/quick-start/develop-plugins/initialize-development-tools.mdx", - "dev_path": "plugin-dev-en/0221-initialize-development-tools.en.mdx", + "dev_path": "plugin-dev-en/0221-initialize-development-tools.mdx", "verified": true }, { "plugin_path": "en/plugins/quick-start/develop-plugins/model-plugin/create-model-providers.mdx", - "dev_path": "plugin-dev-en/0222-creating-new-model-provider.en.mdx", + "dev_path": "plugin-dev-en/0222-creating-new-model-provider.mdx", "verified": true }, { "plugin_path": "en/plugins/publish-plugins/README.mdx", - "dev_path": "plugin-dev-en/0321-release-overview.en.mdx", + "dev_path": "plugin-dev-en/0321-release-overview.mdx", "verified": true }, { "plugin_path": "en/plugins/publish-plugins/package-plugin-file-and-publish.mdx", - "dev_path": "plugin-dev-en/0322-release-by-file.en.mdx", + "dev_path": "plugin-dev-en/0322-release-by-file.mdx", "verified": true }, { "plugin_path": "en/plugins/publish-plugins/publish-to-dify-marketplace/README.mdx", - "dev_path": "plugin-dev-en/0322-release-to-dify-marketplace.en.mdx", + "dev_path": "plugin-dev-en/0322-release-to-dify-marketplace.mdx", "verified": true }, { "plugin_path": "en/plugins/publish-plugins/publish-plugin-on-personal-github-repo.mdx", - "dev_path": "plugin-dev-en/0322-release-to-individual-github-repo.en.mdx", + "dev_path": "plugin-dev-en/0322-release-to-individual-github-repo.mdx", "verified": true }, { "plugin_path": "en/plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.mdx", - "dev_path": "plugin-dev-en/0312-contributor-covenant-code-of-conduct.en.mdx", + "dev_path": "plugin-dev-en/0312-contributor-covenant-code-of-conduct.mdx", "verified": true }, { "plugin_path": "en/plugins/publish-plugins/publish-to-dify-marketplace/plugin-privacy-protection-guidelines.mdx", - "dev_path": "plugin-dev-en/0312-privacy-protection-guidelines.en.mdx", + "dev_path": "plugin-dev-en/0312-privacy-protection-guidelines.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/general-specifications.mdx", - "dev_path": "plugin-dev-en/0411-general-specifications.en.mdx", + "dev_path": "plugin-dev-en/0411-general-specifications.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/model/model-designing-rules.mdx", - "dev_path": "plugin-dev-en/0411-model-designing-rules.en.mdx", + "dev_path": "plugin-dev-en/0411-model-designing-rules.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/persistent-storage.mdx", - "dev_path": "plugin-dev-en/0411-persistent-storage-kv.en.mdx", + "dev_path": "plugin-dev-en/0411-persistent-storage-kv.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/manifest.mdx", - "dev_path": "plugin-dev-en/0411-plugin-info-by-manifest.en.mdx", + "dev_path": "plugin-dev-en/0411-plugin-info-by-manifest.mdx", "verified": true }, { "plugin_path": "en/plugins/quick-start/debug-plugin.mdx", - "dev_path": "plugin-dev-en/0411-remote-debug-a-plugin.en.mdx", + "dev_path": "plugin-dev-en/0411-remote-debug-a-plugin.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/tool.mdx", - "dev_path": "plugin-dev-en/0411-tool.en.mdx", + "dev_path": "plugin-dev-en/0411-tool.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/model/model-schema.mdx", - "dev_path": "plugin-dev-en/0412-model-schema.en.mdx", + "dev_path": "plugin-dev-en/0412-model-schema.mdx", "verified": true }, { "plugin_path": "en/plugins/best-practice/develop-a-slack-bot-plugin.mdx", - "dev_path": "plugin-dev-en/0432-develop-a-slack-bot-plugin.en.mdx", + "dev_path": "plugin-dev-en/0432-develop-a-slack-bot-plugin.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/endpoint.mdx", - "dev_path": "plugin-dev-en/0432-endpoint.en.mdx", + "dev_path": "plugin-dev-en/0432-endpoint.mdx", "verified": true }, { "plugin_path": "en/plugins/quick-start/develop-plugins/extension-plugin.mdx", - "dev_path": "plugin-dev-en/9231-extension-plugin.en.mdx", + "dev_path": "plugin-dev-en/9231-extension-plugin.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/agent.mdx", - "dev_path": "plugin-dev-en/9232-agent.en.mdx", + "dev_path": "plugin-dev-en/9232-agent.mdx", "verified": true }, { "plugin_path": "en/plugins/quick-start/develop-plugins/bundle.mdx", - "dev_path": "plugin-dev-en/9241-bundle.en.mdx", + "dev_path": "plugin-dev-en/9241-bundle.mdx", "verified": true, "sync": "内容高度相同,已确认同步。" }, { "plugin_path": "en/plugins/schema-definition/reverse-invocation-of-the-dify-service/README.mdx", - "dev_path": "plugin-dev-en/9241-reverse-invocation.en.mdx", + "dev_path": "plugin-dev-en/9241-reverse-invocation.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/reverse-invocation-of-the-dify-service/app.mdx", - "dev_path": "plugin-dev-en/9242-reverse-invocation-app.en.mdx", + "dev_path": "plugin-dev-en/9242-reverse-invocation-app.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/reverse-invocation-of-the-dify-service/model.mdx", - "dev_path": "plugin-dev-en/9242-reverse-invocation-model.en.mdx", + "dev_path": "plugin-dev-en/9242-reverse-invocation-model.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/reverse-invocation-of-the-dify-service/tool.mdx", - "dev_path": "plugin-dev-en/9242-reverse-invocation-tool.en.mdx", + "dev_path": "plugin-dev-en/9242-reverse-invocation-tool.mdx", "verified": true }, { "plugin_path": "en/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx", - "dev_path": "plugin-dev-en/9243-customizable-model.en.mdx", + "dev_path": "plugin-dev-en/9243-customizable-model.mdx", "verified": true }, { "plugin_path": "en/plugins/schema-definition/reverse-invocation-of-the-dify-service/node.mdx", - "dev_path": "plugin-dev-en/9243-reverse-invocation-node.en.mdx", + "dev_path": "plugin-dev-en/9243-reverse-invocation-node.mdx", "verified": true }, { "plugin_path": "en/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx", - "dev_path": "plugin-dev-en/9433-agent-strategy-plugin.en.mdx", + "dev_path": "plugin-dev-en/9433-agent-strategy-plugin.mdx", "verified": true }, { @@ -178,7 +178,7 @@ }, { "plugin_path": "en/plugins/best-practice/how-to-print-strings-to-logs-for-debugging.mdx", - "dev_path": "plugin-dev-en/0222-debugging-logs.en.mdx", + "dev_path": "plugin-dev-en/0222-debugging-logs.mdx", "verified": true }, { @@ -188,17 +188,17 @@ }, { "plugin_path": "en/plugins/quick-start/develop-plugins/model-plugin/predefined-model.mdx", - "dev_path": "plugin-dev-en/0222-creating-new-model-provider-extra.en.mdx", + "dev_path": "plugin-dev-en/0222-creating-new-model-provider-extra.mdx", "verified": true }, { "plugin_path": "en/plugins/publish-plugins/plugin-auto-publish-pr.mdx", - "dev_path": "plugin-dev-en/0321-plugin-auto-publish-pr.en.mdx", + "dev_path": "plugin-dev-en/0321-plugin-auto-publish-pr.mdx", "verified": true }, { "plugin_path": "en/plugins/publish-plugins/signing-plugins-for-third-party-signature-verification.mdx", - "dev_path": "plugin-dev-en/0312-third-party-signature-verification.en.mdx", + "dev_path": "plugin-dev-en/0312-third-party-signature-verification.mdx", "verified": true }, { @@ -209,7 +209,7 @@ }, { "plugin_path": "en/plugins/best-practice/README.mdx", - "dev_path": "plugin-dev-en/0431-example-overview-and-index.en.mdx", + "dev_path": "plugin-dev-en/0431-example-overview-and-index.mdx", "verified": true }, { @@ -226,17 +226,17 @@ }, { "plugin_path": null, - "dev_path": "plugin-dev-en/0131-cheatsheet.en.mdx", + "dev_path": "plugin-dev-en/0131-cheatsheet.mdx", "verified": true }, { "plugin_path": null, - "dev_path": "plugin-dev-en/0211-getting-started-dify-tool.en.mdx", + "dev_path": "plugin-dev-en/0211-getting-started-dify-tool.mdx", "verified": true }, { "plugin_path": null, - "dev_path": "plugin-dev-en/0211-getting-started-by-prompt.en.mdx", + "dev_path": "plugin-dev-en/0211-getting-started-by-prompt.mdx", "verified": true } ] diff --git a/plugin-dev-en/sync/sync_all_mdx_files_to_json.py b/plugin-dev-en/sync/sync_all_mdx_files_to_json.py index 8f2093e0..8f43f91e 100644 --- a/plugin-dev-en/sync/sync_all_mdx_files_to_json.py +++ b/plugin-dev-en/sync/sync_all_mdx_files_to_json.py @@ -66,10 +66,10 @@ class MdxSyncManager: def get_base_filename(self, filepath: str) -> str: """从文件路径中提取基本名称,移除扩展名和常见的语言代码。""" name = os.path.basename(filepath) - # 顺序很重要:先匹配更具体的(如 .en.mdx),再匹配通用的(如 .mdx) - if name.endswith('.en.mdx'): + # 顺序很重要:先匹配更具体的(如 .mdx),再匹配通用的(如 .mdx) + if name.endswith('.mdx'): return name[:-7] - elif name.endswith('.zh.mdx'): # 保留以处理多语言情况 + elif name.endswith('.mdx'): # 保留以处理多语言情况 return name[:-7] elif name.endswith('.ja.mdx'): # 保留以处理多语言情况 return name[:-7] diff --git a/plugin-dev-ja/sync/sync_all_mdx_files_to_json.py b/plugin-dev-ja/sync/sync_all_mdx_files_to_json.py index 027261b8..58766cd3 100644 --- a/plugin-dev-ja/sync/sync_all_mdx_files_to_json.py +++ b/plugin-dev-ja/sync/sync_all_mdx_files_to_json.py @@ -66,10 +66,10 @@ class MdxSyncManager: def get_base_filename(self, filepath: str) -> str: """从文件路径中提取基本名称,移除扩展名和常见的语言代码。""" name = os.path.basename(filepath) - # 顺序很重要:先匹配更具体的(如 .en.mdx),再匹配通用的(如 .mdx) - if name.endswith('.en.mdx'): + # 顺序很重要:先匹配更具体的(如 .mdx),再匹配通用的(如 .mdx) + if name.endswith('.mdx'): return name[:-7] - elif name.endswith('.zh.mdx'): # 保留以处理多语言情况 + elif name.endswith('.mdx'): # 保留以处理多语言情况 return name[:-7] elif name.endswith('.ja.mdx'): # 保留以处理多语言情况 return name[:-7] diff --git a/plugin-dev-zh/9241-bundle.mdx b/plugin-dev-zh/9241-bundle.mdx index 1c6a2d6e..3248d077 100644 --- a/plugin-dev-zh/9241-bundle.mdx +++ b/plugin-dev-zh/9241-bundle.mdx @@ -23,7 +23,7 @@ Bundle 插件包是多个插件的集合。它可以将多个插件打包在一 * Dify 插件脚手架工具 * Python 环境,版本号 ≥ 3.10 -关于如何准备插件开发的脚手架工具,详细说明请参考[初始化开发工具](initialize-development-tools.zh.mdx)。 +关于如何准备插件开发的脚手架工具,详细说明请参考[初始化开发工具](initialize-development-tools.mdx)。 ### 创建 Bundle 项目 diff --git a/plugin-dev-zh/sync/plugin_mappings.json b/plugin-dev-zh/sync/plugin_mappings.json index c2d7a240..d8ef022d 100644 --- a/plugin-dev-zh/sync/plugin_mappings.json +++ b/plugin-dev-zh/sync/plugin_mappings.json @@ -13,163 +13,163 @@ }, { "plugin_path": "zh-hans/plugins/quick-start/develop-plugins/README.mdx", - "dev_path": "plugin-dev-zh/0111-getting-started-dify-plugin.zh.mdx", + "dev_path": "plugin-dev-zh/0111-getting-started-dify-plugin.mdx", "verified": true }, { "plugin_path": null, - "dev_path": "plugin-dev-zh/0211-getting-started-new-model.zh.mdx", + "dev_path": "plugin-dev-zh/0211-getting-started-new-model.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/faq.mdx", - "dev_path": "plugin-dev-zh/0331-faq.zh.mdx", + "dev_path": "plugin-dev-zh/0331-faq.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/quick-start/develop-plugins/tool-plugin.mdx", - "dev_path": "plugin-dev-zh/0222-tool-plugin.zh.mdx", + "dev_path": "plugin-dev-zh/0222-tool-plugin.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/quick-start/develop-plugins/model-plugin/README.mdx", - "dev_path": "plugin-dev-zh/0411-model-plugin-introduction.zh.mdx", + "dev_path": "plugin-dev-zh/0411-model-plugin-introduction.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/quick-start/develop-plugins/initialize-development-tools.mdx", - "dev_path": "plugin-dev-zh/0221-initialize-development-tools.zh.mdx", + "dev_path": "plugin-dev-zh/0221-initialize-development-tools.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/quick-start/develop-plugins/model-plugin/create-model-providers.mdx", - "dev_path": "plugin-dev-zh/0222-creating-new-model-provider.zh.mdx", + "dev_path": "plugin-dev-zh/0222-creating-new-model-provider.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/publish-plugins/README.mdx", - "dev_path": "plugin-dev-zh/0321-release-overview.zh.mdx", + "dev_path": "plugin-dev-zh/0321-release-overview.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/publish-plugins/package-plugin-file-and-publish.mdx", - "dev_path": "plugin-dev-zh/0322-release-by-file.zh.mdx", + "dev_path": "plugin-dev-zh/0322-release-by-file.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/publish-plugins/publish-to-dify-marketplace/README.mdx", - "dev_path": "plugin-dev-zh/0322-release-to-dify-marketplace.zh.mdx", + "dev_path": "plugin-dev-zh/0322-release-to-dify-marketplace.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/publish-plugins/publish-plugin-on-personal-github-repo.mdx", - "dev_path": "plugin-dev-zh/0322-release-to-individual-github-repo.zh.mdx", + "dev_path": "plugin-dev-zh/0322-release-to-individual-github-repo.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.mdx", - "dev_path": "plugin-dev-zh/0312-contributor-covenant-code-of-conduct.zh.mdx", + "dev_path": "plugin-dev-zh/0312-contributor-covenant-code-of-conduct.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/publish-plugins/publish-to-dify-marketplace/plugin-privacy-protection-guidelines.mdx", - "dev_path": "plugin-dev-zh/0312-privacy-protection-guidelines.zh.mdx", + "dev_path": "plugin-dev-zh/0312-privacy-protection-guidelines.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/general-specifications.mdx", - "dev_path": "plugin-dev-zh/0411-general-specifications.zh.mdx", + "dev_path": "plugin-dev-zh/0411-general-specifications.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/model/model-designing-rules.mdx", - "dev_path": "plugin-dev-zh/0411-model-designing-rules.zh.mdx", + "dev_path": "plugin-dev-zh/0411-model-designing-rules.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/persistent-storage.mdx", - "dev_path": "plugin-dev-zh/0411-persistent-storage-kv.zh.mdx", + "dev_path": "plugin-dev-zh/0411-persistent-storage-kv.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/manifest.mdx", - "dev_path": "plugin-dev-zh/0411-plugin-info-by-manifest.zh.mdx", + "dev_path": "plugin-dev-zh/0411-plugin-info-by-manifest.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/quick-start/debug-plugin.mdx", - "dev_path": "plugin-dev-zh/0411-remote-debug-a-plugin.zh.mdx", + "dev_path": "plugin-dev-zh/0411-remote-debug-a-plugin.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/tool.mdx", - "dev_path": "plugin-dev-zh/0411-tool.zh.mdx", + "dev_path": "plugin-dev-zh/0411-tool.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/model/model-schema.mdx", - "dev_path": "plugin-dev-zh/0412-model-schema.zh.mdx", + "dev_path": "plugin-dev-zh/0412-model-schema.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/best-practice/develop-a-slack-bot-plugin.mdx", - "dev_path": "plugin-dev-zh/0432-develop-a-slack-bot-plugin.zh.mdx", + "dev_path": "plugin-dev-zh/0432-develop-a-slack-bot-plugin.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/endpoint.mdx", - "dev_path": "plugin-dev-zh/0432-endpoint.zh.mdx", + "dev_path": "plugin-dev-zh/0432-endpoint.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/quick-start/develop-plugins/extension-plugin.mdx", - "dev_path": "plugin-dev-zh/9231-extension-plugin.zh.mdx", + "dev_path": "plugin-dev-zh/9231-extension-plugin.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/agent.mdx", - "dev_path": "plugin-dev-zh/9232-agent.zh.mdx", + "dev_path": "plugin-dev-zh/9232-agent.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/quick-start/develop-plugins/bundle.mdx", - "dev_path": "plugin-dev-zh/9241-bundle.zh.mdx", + "dev_path": "plugin-dev-zh/9241-bundle.mdx", "verified": true, "sync": "内容高度相同,已确认同步。" }, { "plugin_path": "zh-hans/plugins/schema-definition/reverse-invocation-of-the-dify-service/README.mdx", - "dev_path": "plugin-dev-zh/9241-reverse-invocation.zh.mdx", + "dev_path": "plugin-dev-zh/9241-reverse-invocation.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/reverse-invocation-of-the-dify-service/app.mdx", - "dev_path": "plugin-dev-zh/9242-reverse-invocation-app.zh.mdx", + "dev_path": "plugin-dev-zh/9242-reverse-invocation-app.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/reverse-invocation-of-the-dify-service/model.mdx", - "dev_path": "plugin-dev-zh/9242-reverse-invocation-model.zh.mdx", + "dev_path": "plugin-dev-zh/9242-reverse-invocation-model.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/reverse-invocation-of-the-dify-service/tool.mdx", - "dev_path": "plugin-dev-zh/9242-reverse-invocation-tool.zh.mdx", + "dev_path": "plugin-dev-zh/9242-reverse-invocation-tool.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx", - "dev_path": "plugin-dev-zh/9243-customizable-model.zh.mdx", + "dev_path": "plugin-dev-zh/9243-customizable-model.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/schema-definition/reverse-invocation-of-the-dify-service/node.mdx", - "dev_path": "plugin-dev-zh/9243-reverse-invocation-node.zh.mdx", + "dev_path": "plugin-dev-zh/9243-reverse-invocation-node.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx", - "dev_path": "plugin-dev-zh/9433-agent-strategy-plugin.zh.mdx", + "dev_path": "plugin-dev-zh/9433-agent-strategy-plugin.mdx", "verified": true }, { @@ -179,7 +179,7 @@ }, { "plugin_path": "zh-hans/plugins/best-practice/how-to-print-strings-to-logs-for-debugging.mdx", - "dev_path": "plugin-dev-zh/0222-debugging-logs.zh.mdx", + "dev_path": "plugin-dev-zh/0222-debugging-logs.mdx", "verified": true }, { @@ -189,17 +189,17 @@ }, { "plugin_path": "zh-hans/plugins/quick-start/develop-plugins/model-plugin/integrate-the-predefined-model.mdx", - "dev_path": "plugin-dev-zh/0222-creating-new-model-provider-extra.zh.mdx", + "dev_path": "plugin-dev-zh/0222-creating-new-model-provider-extra.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/publish-plugins/plugin-auto-publish-pr.mdx", - "dev_path": "plugin-dev-zh/0321-plugin-auto-publish-pr.zh.mdx", + "dev_path": "plugin-dev-zh/0321-plugin-auto-publish-pr.mdx", "verified": true }, { "plugin_path": "zh-hans/plugins/publish-plugins/signing-plugins-for-third-party-signature-verification.mdx", - "dev_path": "plugin-dev-zh/0312-third-party-signature-verification.zh.mdx", + "dev_path": "plugin-dev-zh/0312-third-party-signature-verification.mdx", "verified": true }, { @@ -210,7 +210,7 @@ }, { "plugin_path": "zh-hans/plugins/best-practice/README.mdx", - "dev_path": "plugin-dev-zh/0431-example-overview-and-index.zh.mdx", + "dev_path": "plugin-dev-zh/0431-example-overview-and-index.mdx", "verified": true }, { @@ -227,17 +227,17 @@ }, { "plugin_path": null, - "dev_path": "plugin-dev-zh/0131-cheatsheet.zh.mdx", + "dev_path": "plugin-dev-zh/0131-cheatsheet.mdx", "verified": true }, { "plugin_path": null, - "dev_path": "plugin-dev-zh/0211-getting-started-dify-tool.zh.mdx", + "dev_path": "plugin-dev-zh/0211-getting-started-dify-tool.mdx", "verified": true }, { "plugin_path": null, - "dev_path": "plugin-dev-zh/0211-getting-started-by-prompt.zh.mdx", + "dev_path": "plugin-dev-zh/0211-getting-started-by-prompt.mdx", "verified": true }, { diff --git a/plugin-dev-zh/sync/sync_all_mdx_files_to_json.py b/plugin-dev-zh/sync/sync_all_mdx_files_to_json.py index d7713217..b3035399 100644 --- a/plugin-dev-zh/sync/sync_all_mdx_files_to_json.py +++ b/plugin-dev-zh/sync/sync_all_mdx_files_to_json.py @@ -135,8 +135,8 @@ class MdxSyncManager: """尝试找到可能匹配的 plugin 文件""" # 提取文件名(去除路径和语言后缀) dev_filename = os.path.basename(dev_file) - if dev_filename.endswith('.zh.mdx'): - base_name = dev_filename[:-7] # 去除 .zh.mdx + if dev_filename.endswith('.mdx'): + base_name = dev_filename[:-7] # 去除 .mdx else: base_name = dev_filename[:-4] # 去除 .mdx diff --git a/tools/2_apply_docs_json.py b/tools/2_apply_docs_json.py index 62b23362..48b0c00e 100644 --- a/tools/2_apply_docs_json.py +++ b/tools/2_apply_docs_json.py @@ -11,7 +11,7 @@ DOCS_JSON_PATH = "docs.json" plugin-dev-zh = { "DOCS_DIR": "plugin-dev-zh", # 插件开发文档目录 "LANGUAGE_CODE": "简体中文", # 注意:虽然变量名是 LANGUAGE_CODE,但会部署为 docs.json 中的 'version' 值。 - "FILE_EXTENSION": ".zh.mdx", + "FILE_EXTENSION": ".mdx", "TARGET_TAB_NAME": "插件开发", # 新增:目标 Tab 名称 "FILENAME_PATTERN": re.compile(r"^(\d{4})-(.*?)\.zh\.mdx$"), # 新增:文件名匹配模式 "PWX_TO_GROUP_MAP": { @@ -53,7 +53,7 @@ plugin-dev-en = { "DOCS_DIR": "plugin-dev-en", # Plugin development documentation directory # Note: Although the variable name is LANGUAGE_CODE, it will be deployed as the 'version' value in docs.json. "LANGUAGE_CODE": "English", - "FILE_EXTENSION": ".en.mdx", + "FILE_EXTENSION": ".mdx", "TARGET_TAB_NAME": "Plugin Development", "FILENAME_PATTERN": re.compile(r"^(\d{4})-(.*?)\.en\.mdx$"), "PWX_TO_GROUP_MAP": { diff --git a/tools/apply_docs_json.py b/tools/apply_docs_json.py index b8a54ddc..a811e6e4 100644 --- a/tools/apply_docs_json.py +++ b/tools/apply_docs_json.py @@ -113,7 +113,7 @@ def get_page_path_from_filename(filename: str, docs_dir_name: str) -> str: """ Constructs the documentation page path from its filename and directory name. Example: - Old: "0001-intro.en.mdx", "plugin-dev-en" -> "plugin-dev-en/0001-intro.en" + Old: "0001-intro.mdx", "plugin-dev-en" -> "plugin-dev-en/0001-intro.en" New: "0001-intro.mdx", "plugin-dev-en" -> "plugin-dev-en/0001-intro" Args: