This is an automated email from the ASF dual-hosted git repository.
robin0716 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git
The following commit(s) were added to refs/heads/main by this push:
new 7b901b3e3 refactor: update plugin import path in plugin.md
7b901b3e3 is described below
commit 7b901b3e348eef712173c02a9c89f59b3e46b6af
Author: robin <[email protected]>
AuthorDate: Wed Jul 31 15:06:46 2024 +0800
refactor: update plugin import path in plugin.md
---
docs/development/plugins/plugin.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/development/plugins/plugin.md
b/docs/development/plugins/plugin.md
index b31eff1ef..fb6ee8e70 100644
--- a/docs/development/plugins/plugin.md
+++ b/docs/development/plugins/plugin.md
@@ -76,13 +76,13 @@ npx create-answer-plugin <pluginName>
answercmd "github.com/apache/incubator-answer/cmd"
// Import the plugins
- _ "github.com/apache/incubator-answer/ui/src/plugins/my-plugin"
+ _ "github.com/apache/incubator-answer-plugins/my-plugin"
)
```
3. Use `go mod edit` to add the plugin to the `go.mod` file.
```shell
- go mod edit
-replace=github.com/apache/incubator-answer/ui/src/plugins/my-plugin=../ui/src/plugins/my-plugin
+ go mod edit
-replace=github.com/apache/incubator-answer-plugins/my-plugin=./ui/src/plugins/my-plugin
```
4. Update the dependencies.