You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2025/08/22 08:42:11 UTC
(answer-website) 01/01: update: add quick-links plugin
This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch plugins/quick-links
in repository https://gitbox.apache.org/repos/asf/answer-website.git
commit 4374c86283f28d80ce53057d5da77aa7d9ceb79b
Author: shuai <li...@sifou.com>
AuthorDate: Fri Aug 22 16:41:51 2025 +0800
update: add quick-links plugin
---
docs/development/plugins/plugin.md | 1 +
.../current/development/plugins/plugin.md | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/docs/development/plugins/plugin.md b/docs/development/plugins/plugin.md
index 81ae4e8e6..224dd78a9 100644
--- a/docs/development/plugins/plugin.md
+++ b/docs/development/plugins/plugin.md
@@ -34,6 +34,7 @@ Cache | Backend Plugin | Support for using different caching middleware.
Search | Backend Plugin | Support for using search engines to speed up the search for question answers.
User Center | Backend Plugin | Using the third-party user system to manage users.
Notification | Backend Plugin | The Notification plugin helps us to send messages to third-party notification systems.
+Sidebar | Backend Plugin | Add custom content on the sidebar navigation
Route | Standard UI Plugin | Provides support for custom routing.
Editor | Standard UI Plugin | Supports extending the markdown editor's toolbar.
Captcha | Standard UI Plugin | Provides support for captcha.
diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/plugins/plugin.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/plugins/plugin.md
index 24eb10d41..85136580e 100644
--- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/plugins/plugin.md
+++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/plugins/plugin.md
@@ -76,13 +76,13 @@ npx create-answer-plugin <pluginName>
answercmd "github.com/apache/answer/cmd"
// Import the plugins
- _ "github.com/apache/answer/ui/src/plugins/my-plugin"
+ _ "github.com/apache/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/answer/ui/src/plugins/my-plugin=../ui/src/plugins/my-plugin
+ go mod edit -replace=github.com/apache/answer-plugins/my-plugin=../ui/src/plugins/my-plugin
```
4. Update the dependencies.