Skip to content

Commit bb1d1e0

Browse files
hjlarryRiskey
andauthored
Fix the order number of the documents. (#594)
* Fix the order number of the documents. * fix the zh and jp docs as well --------- Co-authored-by: Riskey <riskey47@dify.ai>
1 parent 6669cce commit bb1d1e0

15 files changed

Lines changed: 24 additions & 30 deletions

File tree

en/develop-plugin/dev-guides-and-walkthroughs/cheatsheet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ python -m main
9595

9696
> Learn more: [Remote Debugging Plugins](/en/develop-plugin/features-and-specs/plugin-types/remote-debug-a-plugin)
9797
98-
#### 4. Packaging and Deployment
98+
#### 3. Packaging and Deployment
9999

100100
Package the plugin:
101101

en/develop-plugin/dev-guides-and-walkthroughs/develop-a-slack-bot-plugin.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ extra:
161161
source: "endpoints/slack.py"
162162
```
163163

164-
#### 2. Edit the function code
164+
### 2. Edit the function code
165165

166166
Modify the `endpoints/slack.py` file and add the following code:
167167

@@ -240,7 +240,7 @@ class SlackEndpoint(Endpoint):
240240
return Response(status=200, response="ok")
241241
```
242242

243-
### 2. Debug the Plugin
243+
### 3. Debug the Plugin
244244

245245
Go to the Dify platform and obtain the remote debugging address and key for your plugin.
246246

@@ -291,15 +291,15 @@ Next, complete the Slack App setup:
291291

292292
---
293293

294-
### 3. Verify the Plugin
294+
### 4. Verify the Plugin
295295

296296
In your code, `self.session.app.chat.invoke` is used to call the Dify application, passing in parameters such as `app_id` and `query`. The response is then returned to the Slack Bot. Run `python -m main` again to restart your plugin for debugging, and check whether Slack correctly displays the Dify App’s reply:
297297

298298
![](https://assets-docs.dify.ai/2025/01/6fc872d1343ce8503d63c5222f7f26f9.png)
299299

300300
---
301301

302-
### 4. Package the Plugin (Optional)
302+
### 5. Package the Plugin (Optional)
303303

304304
Once you confirm that the plugin works correctly, you can package and name it via the following command. After it runs, you’ll find a `slack_bot.difypkg` file in the current directory—your final plugin package. For detailed packaging steps, refer to [Package as a Local File and Share](/en/develop-plugin/publishing/marketplace-listing/release-by-file).
305305

@@ -313,7 +313,7 @@ Congratulations! You’ve successfully developed, tested, and packaged a plugin!
313313

314314
---
315315

316-
### 5. Publish the Plugin (Optional)
316+
### 6. Publish the Plugin (Optional)
317317

318318
You can now upload it to the [Dify Marketplace repository](https://github.com/langgenius/dify-plugins) for public release. Before publishing, ensure your plugin meets the [Publishing to Dify Marketplace Guidelines](/en/develop-plugin/publishing/marketplace-listing/release-to-dify-marketplace). Once approved, your code is merged into the main branch, and the plugin goes live on the [Dify Marketplace](https://marketplace.dify.ai/).
319319

en/develop-plugin/dev-guides-and-walkthroughs/develop-flomo-plugin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Always handle exceptions gracefully and return user-friendly error messages. Rem
285285
</Step>
286286
</Steps>
287287

288-
## Step 9: Package and distribute
288+
## Step 8: Package and distribute
289289

290290
When you're ready to share your plugin:
291291

en/develop-plugin/dev-guides-and-walkthroughs/tool-plugin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class GoogleSearchTool(Tool):
291291

292292
This example means requesting `serpapi` and using `self.create_json_message` to return a formatted `json` data string. If you want to learn more about return data types, you can refer to the [Remote Debugging Plugins](/en/develop-plugin/features-and-specs/plugin-types/remote-debug-a-plugin) and [Persistent Storage KV](/en/develop-plugin/features-and-specs/plugin-types/persistent-storage-kv) documents.
293293

294-
#### 4. Completing the Tool Provider Code
294+
#### 5. Completing the Tool Provider Code
295295

296296
Finally, you need to create an implementation code for the provider to implement the credential validation logic. If credential validation fails, a `ToolProviderCredentialValidationError` exception will be thrown. After validation succeeds, the `google_search` tool service will be correctly requested.
297297

en/develop-plugin/getting-started/cli.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,9 @@ Before you begin, ensure you have the following installed:
4343

4444
Now you have successfully installed the Dify CLI. You can verify the installation by running:
4545

46-
<CodeGroup>
4746
```bash
4847
dify version
4948
```
50-
</CodeGroup>
5149

5250
You can create a new Dify plugin project using the following command:
5351

ja/develop-plugin/dev-guides-and-walkthroughs/cheatsheet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ python -m main
9494

9595
> 詳細: [プラグインのリモートデバッグ](/ja/develop-plugin/features-and-specs/plugin-types/remote-debug-a-plugin)
9696
97-
#### 4. パッケージングとデプロイ
97+
#### 3. パッケージングとデプロイ
9898

9999
プラグインをパッケージ化:
100100

ja/develop-plugin/dev-guides-and-walkthroughs/develop-a-slack-bot-plugin.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ extra:
160160
source: "endpoints/slack.py"
161161
```
162162

163-
#### 2. 関数コードの編集
163+
### 2. 関数コードの編集
164164

165165
`endpoints/slack.py`ファイルを修正し、以下のコードを追加します:
166166

@@ -239,7 +239,7 @@ class SlackEndpoint(Endpoint):
239239
return Response(status=200, response="ok")
240240
```
241241

242-
### 2. プラグインのデバッグ
242+
### 3. プラグインのデバッグ
243243

244244
Difyプラットフォームに移動し、プラグインのリモートデバッグアドレスとキーを取得します。
245245

@@ -290,15 +290,15 @@ alt="Generated POST Request URL"
290290

291291
---
292292

293-
### 3. プラグインの検証
293+
### 4. プラグインの検証
294294

295295
コード内で、`self.session.app.chat.invoke`がDifyアプリケーションを呼び出すために使用され、`app_id`や`query`などのパラメータを渡します。応答はSlack Botに返されます。`python -m main`を再度実行してプラグインをデバッグ用に再起動し、SlackがDify Appの応答を正しく表示するかどうかを確認します:
296296

297297
![](https://assets-docs.dify.ai/2025/01/6fc872d1343ce8503d63c5222f7f26f9.png)
298298

299299
---
300300

301-
### 4. プラグインのパッケージ化(オプション)
301+
### 5. プラグインのパッケージ化(オプション)
302302

303303
プラグインが正しく動作することを確認したら、以下のコマンドでパッケージ化して名前を付けることができます。実行後、現在のディレクトリに`slack_bot.difypkg`ファイルが作成されます。これが最終的なプラグインパッケージです。詳細なパッケージ化手順については、[ローカルファイルとしてパッケージ化して共有](/ja/develop-plugin/publishing/marketplace-listing/release-by-file)を参照してください。
304304

@@ -312,7 +312,7 @@ dify plugin package ./slack_bot
312312

313313
---
314314

315-
### 5. プラグインの公開(オプション)
315+
### 6. プラグインの公開(オプション)
316316

317317
[Dify Marketplaceリポジトリ](https://github.com/langgenius/dify-plugins)にアップロードして公開できます。公開前に、プラグインが[Dify Marketplace公開ガイドライン](/ja/develop-plugin/publishing/marketplace-listing/release-to-dify-marketplace)に準拠していることを確認してください。承認されると、コードはメインブランチにマージされ、プラグインは[Dify Marketplace](https://marketplace.dify.ai/)で公開されます。
318318

ja/develop-plugin/dev-guides-and-walkthroughs/develop-flomo-plugin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ class FlomoTool(Tool):
287287
</Step>
288288
</Steps>
289289

290-
## ステップ9:パッケージ化と配布
290+
## ステップ8:パッケージ化と配布
291291

292292
プラグインを共有する準備ができたら:
293293

ja/develop-plugin/dev-guides-and-walkthroughs/tool-plugin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class GoogleSearchTool(Tool):
289289

290290
この例は、`serpapi`にリクエストを送信し、`self.create_json_message`を使用してフォーマットされた`json`データ文字列を返すことを意味します。返却データタイプの詳細については、[プラグインのリモートデバッグ](/ja/develop-plugin/features-and-specs/plugin-types/remote-debug-a-plugin)と[永続ストレージKV](/ja/develop-plugin/features-and-specs/plugin-types/persistent-storage-kv)ドキュメントを参照してください。
291291

292-
#### 4. ツールプロバイダーコードの完成
292+
#### 5. ツールプロバイダーコードの完成
293293

294294
最後に、認証情報の検証ロジックを実装するプロバイダーの実装コードを作成する必要があります。認証情報の検証が失敗した場合、`ToolProviderCredentialValidationError`例外がスローされます。検証が成功すると、`google_search`ツールサービスが正しくリクエストされます。
295295

ja/develop-plugin/getting-started/cli.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ description: Difyプラグイン開発用コマンドラインインターフェ
4545

4646
これでDify CLIのインストールが完了しました。以下のコマンドを実行してインストールを確認できます:
4747

48-
<CodeGroup>
4948
```bash
5049
dify version
5150
```
52-
</CodeGroup>
5351

5452
以下のコマンドを使用して新しいDifyプラグインプロジェクトを作成できます:
5553

0 commit comments

Comments
 (0)