From 7686cb4955292a8b47eb3443114b45a75234b8c8 Mon Sep 17 00:00:00 2001 From: Yuelin Zheng <2226815922@qq.com> Date: Mon, 1 Mar 2021 15:58:59 +0800 Subject: [PATCH] docs: update the plugin-develop.md doc (#3705) --- docs/en/latest/plugin-develop.md | 4 ++-- docs/zh/latest/plugin-develop.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/en/latest/plugin-develop.md b/docs/en/latest/plugin-develop.md index 294a725a..1c8992df 100644 --- a/docs/en/latest/plugin-develop.md +++ b/docs/en/latest/plugin-develop.md @@ -85,8 +85,8 @@ The plugin itself provides the init method. It is convenient for plugins to perf the plugin is loaded. Note : if the dependency of some plugin needs to be initialized when Nginx start, you may need to add logic to the initialization - method "http_init" in the file __apisix.lua__, And you may need to add some processing on generated part of Nginx - configuration file in __bin/apisix__ file. but it is easy to have an impact on the overall situation according to the + method "http_init" in the file __apisix/init.lua__, and you may need to add some processing on generated part of Nginx + configuration file in __apisix/cli/ngx_tpl.lua__ file. But it is easy to have an impact on the overall situation according to the existing plugin mechanism, we do not recommend this unless you have a complete grasp of the code. ## name and config diff --git a/docs/zh/latest/plugin-develop.md b/docs/zh/latest/plugin-develop.md index 58f33ee6..8f282703 100644 --- a/docs/zh/latest/plugin-develop.md +++ b/docs/zh/latest/plugin-develop.md @@ -34,7 +34,7 @@ title: 插件开发 ## 检查外部依赖 -如果你的插件,涉及到一些外部的依赖和三方库,请首先检查一下依赖项的内容。 如果插件需要用到共享内存,需要在 __bin/apisix__ 文 +如果你的插件,涉及到一些外部的依赖和三方库,请首先检查一下依赖项的内容。 如果插件需要用到共享内存,需要在 __apisix/cli/ngx_tpl.lua__ 文 件里面进行申明,例如: ```nginx @@ -53,8 +53,8 @@ title: 插件开发 插件本身提供了 init 方法。方便插件加载后做初始化动作。 -注:如果部分插件的功能实现,需要在 Nginx 初始化启动,则可能需要在 __apisix.lua__ 文件的初始化方法 http_init 中添加逻辑,并且 - 可能需要在 __bin/apisix__ 文件中,对 Nginx 配置文件生成的部分,添加一些你需要的处理。但是这样容易对全局产生影响,根据现有的 +注:如果部分插件的功能实现,需要在 Nginx 初始化启动,则可能需要在 __apisix/init.lua__ 文件的初始化方法 http_init 中添加逻辑,并且 + 可能需要在 __apisix/cli/ngx_tpl.lua__ 文件中,对 Nginx 配置文件生成的部分,添加一些你需要的处理。但是这样容易对全局产生影响,根据现有的 插件机制,我们不建议这样做,除非你已经对代码完全掌握。 ## 插件命名与配置