You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/05/29 12:01:11 UTC

[apisix] branch master updated: docs:update "plugin-develop"(#6743) (#7127)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 1c33ab28f docs:update "plugin-develop"(#6743) (#7127)
1c33ab28f is described below

commit 1c33ab28f6d0aa5b0b7265185a1725bd3794dbc7
Author: LancCJ <La...@163.com>
AuthorDate: Sun May 29 20:01:05 2022 +0800

    docs:update "plugin-develop"(#6743) (#7127)
    
    Co-authored-by: chenjian_yq <ch...@kedacom.com>
    Co-authored-by: feihan <97...@users.noreply.github.com>
    Co-authored-by: Sylvia <39...@users.noreply.github.com>
---
 docs/en/latest/plugin-develop.md | 6 ++++++
 docs/zh/latest/plugin-develop.md | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/docs/en/latest/plugin-develop.md b/docs/en/latest/plugin-develop.md
index 6dcd207bc..631130ad7 100644
--- a/docs/en/latest/plugin-develop.md
+++ b/docs/en/latest/plugin-develop.md
@@ -43,6 +43,12 @@ For example, you can create a directory structure like this:
 │               └── 3rd-party.lua
 ```
 
+:::note
+
+If you need to customize the directory of plugin, please create a subdirectory of `/apisix/plugins` under this directory.
+
+:::
+
 Then add this configuration into your `conf/config.yaml`:
 
 ```yaml
diff --git a/docs/zh/latest/plugin-develop.md b/docs/zh/latest/plugin-develop.md
index a590f2fdf..ea05f90b4 100644
--- a/docs/zh/latest/plugin-develop.md
+++ b/docs/zh/latest/plugin-develop.md
@@ -42,6 +42,12 @@ Apache APISIX 提供了两种方式来添加新的功能。
 │               └── 3rd-party.lua
 ```
 
+:::note
+
+如果你需要自定义插件的目录,请在该目录下创建 `/apisix/plugins` 的子目录。
+
+:::
+
 接着,在 `conf/config.yaml` 文件中添加如下的配置:
 
 ```yaml