You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by li...@apache.org on 2021/08/17 04:25:10 UTC

[apisix-website] branch master updated: fix: update broken Image links in PluginHub page, and update page url to /plugins (#463)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6802693  fix: update broken Image links in PluginHub page, and update page url to /plugins (#463)
6802693 is described below

commit 680269340ffd2303ac65689337125fd9138d7ed0
Author: Baoyuan <ba...@gmail.com>
AuthorDate: Mon Aug 16 23:25:06 2021 -0500

    fix: update broken Image links in PluginHub page, and update page url to /plugins (#463)
---
 website/docusaurus.config.js                   |  2 +-
 website/src/pages/{pluginhub.js => plugins.js} |  1 -
 website/static/data/plugin.json                | 82 +++++++++++++-------------
 3 files changed, 42 insertions(+), 43 deletions(-)

diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index d1e7423..23cc4ce 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -463,7 +463,7 @@ module.exports = {
           position: "right",
           items: [
             {
-              to: "/hub",
+              to: "/plugins",
               label: "Plugin Hub",
             },
             {
diff --git a/website/src/pages/pluginhub.js b/website/src/pages/plugins.js
similarity index 99%
rename from website/src/pages/pluginhub.js
rename to website/src/pages/plugins.js
index 73e1f03..96cfb72 100644
--- a/website/src/pages/pluginhub.js
+++ b/website/src/pages/plugins.js
@@ -76,7 +76,6 @@ const SidebarContainer = styled.div`
   padding-right: 10px;
   border-style: solid;
   border-color: #ffffff #efeff5 #ffffff #ffffff ;
-}
 `;
 
 const PluginCard = styled.a`
diff --git a/website/static/data/plugin.json b/website/static/data/plugin.json
index 853e750..1d52fda 100644
--- a/website/static/data/plugin.json
+++ b/website/static/data/plugin.json
@@ -5,32 +5,32 @@
             {
                 "name": "authz-keycloak",
                 "description": "An authorization plugin to be used with the Keycloak Identity Server",
-                "src": "static/img/plugin/authz-keycloak.jpg"
+                "src": "/img/plugin/authz-keycloak.jpg"
             },
             {
                 "name": "basic-auth",
                 "description": "An authentication plugin that need to work with consumer to add Basic Authentication to a Service or a Route",
-                "src": "static/img/plugin/basic-auth.jpg"
+                "src": "/img/plugin/basic-auth.jpg"
             },
             {
                 "name": "hmac-auth",
                 "description": "An authentication plugin that need to work with consumer to establish the integrity of incoming requests",
-                "src": "static/img/plugin/hmac-auth.jpg"
+                "src": "/img/plugin/hmac-auth.jpg"
             },
             {
                 "name": "jwt-auth",
                 "description": "An authentication plugin that need to work with consumer to securely authenticate a valid user requesting access",
-                "src": "static/img/plugin/jwt-auth.jpg"
+                "src": "/img/plugin/jwt-auth.jpg"
             },
             {
                 "name": "key-auth",
                 "description": "An authentication plugin that need to work with consumer to add key authentication to your Services",
-                "src": "static/img/plugin/key-auth.jpg"
+                "src": "/img/plugin/key-auth.jpg"
             },
             {
                 "name": "openid-connect",
                 "description": "An authentication plugin that provides authentication and introspection capability to APISIX",
-                "src": "static/img/plugin/openid-connect.jpg"
+                "src": "/img/plugin/openid-connect.jpg"
             }
         ]
     },
@@ -40,42 +40,42 @@
             {
                 "name": "api-breaker",
                 "description": "The plugin implements API fuse functionality to help us protect our upstream business services",
-                "src": "static/img/plugin/api-breaker.jpg"
+                "src": "/img/plugin/api-breaker.jpg"
             },
             {
                 "name": "consumer-restriction",
                 "description": "The plugin makes corresponding access restrictions based on different objects selected",
-                "src": "static/img/plugin/consumer-restriction.jpg"
+                "src": "/img/plugin/consumer-restriction.jpg"
             },
             {
                 "name": "cors",
                 "description": "The plugin can help you enable CORS easily",
-                "src": "static/img/plugin/cors.jpg"
+                "src": "/img/plugin/cors.jpg"
             },
             {
                 "name": "fault-injection",
                 "description": "The plugin provides the ability to deliberately cause a service to fail, in order to test failure in a complex distributed solution",
-                "src": "static/img/plugin/fault-injection.jpg"
+                "src": "/img/plugin/fault-injection.jpg"
             },
             {
                 "name": "ip-restriction",
                 "description": "The ip-restriction can restrict access to a Service or a Route by either whitelisting or blacklisting IP addresses",
-                "src": "static/img/plugin/ip-restriction.jpg"
+                "src": "/img/plugin/ip-restriction.jpg"
             },
             {
                 "name": "referer-restriction",
                 "description": "The referer-restriction can restrict access to a Service or a Route by whitelisting request header Referrers",
-                "src": "static/img/plugin/referer-restriction.jpg"
+                "src": "/img/plugin/referer-restriction.jpg"
             },
             {
                 "name": "request-validation",
                 "description": "The request-validation plugin validates the requests before forwarding to an upstream service",
-                "src": "static/img/plugin/request-validation.jpg"
+                "src": "/img/plugin/request-validation.jpg"
             },
             {
                 "name": "uri-blocker",
                 "description": "The plugin helps to intercept user requests",
-                "src": "static/img/plugin/uri-blocker.jpg"
+                "src": "/img/plugin/uri-blocker.jpg"
             }
         ]
     },
@@ -85,22 +85,22 @@
             {
                 "name": "limit-conn",
                 "description": "The plugin  Limits request concurrency",
-                "src": "static/img/plugin/limit-conn.jpg"
+                "src": "/img/plugin/limit-conn.jpg"
             },
             {
                 "name": "limit-count",
                 "description": "The plugin Limits request rate by a fixed number of requests in a given time window",
-                "src": "static/img/plugin/limit-count.jpg"
+                "src": "/img/plugin/limit-count.jpg"
             },
             {
                 "name": "limit-req",
                 "description": "The plugin limits request rate using the eaky bucket method",
-                "src": "static/img/plugin/limit-req.jpg"
+                "src": "/img/plugin/limit-req.jpg"
             },
             {
                 "name": "traffic-split",
                 "description": "The traffic split plugin allows users to incrementally direct percentages of traffic between various upstreams",
-                "src": "static/img/plugin/traffic-split.jpg"
+                "src": "/img/plugin/traffic-split.jpg"
             }
         ]
     },
@@ -110,12 +110,12 @@
             {
                 "name": "serverless-pre-function",
                 "description": "The serverless-pre-function runs at the beginning of the specified phase",
-                "src": "static/img/plugin/serverless-pre-function.jpg"
+                "src": "/img/plugin/serverless-pre-function.jpg"
             },
             {
                 "name": "serverless-post-function",
                 "description": "The serverless-post-function runs at the end of the specified phase",
-                "src": "static/img/plugin/serverless-post-function.jpg"
+                "src": "/img/plugin/serverless-post-function.jpg"
             }
         ]
     },
@@ -125,57 +125,57 @@
             {
                 "name": "error-log-logger",
                 "description": "Error-log-logger is a plugin which pushes the log data of APISIX's error.log to TCP servers",
-                "src": "static/img/plugin/error-log-logger.jpg"
+                "src": "/img/plugin/error-log-logger.jpg"
             },
             {
                 "name": "http-logger",
                 "description": "Http-logger is a plugin which push Log data requests to HTTP/HTTPS servers",
-                "src": "static/img/plugin/http-logger.jpg"
+                "src": "/img/plugin/http-logger.jpg"
             },
             {
                 "name": "kafka-logger",
                 "description": "Kafka-logger is a plugin which works as a Kafka client driver for the ngx_lua nginx module",
-                "src": "static/img/plugin/kafka-logger.jpg"
+                "src": "/img/plugin/kafka-logger.jpg"
             },
             {
                 "name": "prometheus",
                 "description": "The plugin exposes metrics in Prometheus Exposition format",
-                "src": "static/img/plugin/prometheus.jpg"
+                "src": "/img/plugin/prometheus.jpg"
             },
             {
                 "name": "request-id",
                 "description": "The plugin adds a unique ID (UUID) to each request proxied through APISIX",
-                "src": "static/img/plugin/request-id.jpg"
+                "src": "/img/plugin/request-id.jpg"
             },
             {
                 "name": "skywalking",
                 "description": "Skywalking uses its native Nginx LUA tracer to provide tracing, topology analysis, and metrics from service and URI perspective",
-                "src": "static/img/plugin/skywalking.jpg"
+                "src": "/img/plugin/skywalking.jpg"
             },
             {
                 "name": "sls-logger",
                 "description": "Sls-logger pushes Log data requests to ali cloud Log Server with RF5424",
-                "src": "static/img/plugin/sls-logger.jpg"
+                "src": "/img/plugin/sls-logger.jpg"
             },
             {
                 "name": "syslog",
                 "description": "Sys pushes Log data requests to Syslog",
-                "src": "static/img/plugin/syslog.jpg"
+                "src": "/img/plugin/syslog.jpg"
             },
             {
                 "name": "tcp-logger",
                 "description": "Tcp-logger pushes Log data requests to TCP servers",
-                "src": "static/img/plugin/tcp-logger.jpg"
+                "src": "/img/plugin/tcp-logger.jpg"
             },
             {
                 "name": "udp-logger",
                 "description": "Udp-logger pushes Log data requests to UDP servers",
-                "src": "static/img/plugin/udp-logger.jpg"
+                "src": "/img/plugin/udp-logger.jpg"
             },
             {
                 "name": "zipkin",
                 "description": "Zipkin is a OpenTracing plugin",
-                "src": "static/img/plugin/zipkin.jpg"
+                "src": "/img/plugin/zipkin.jpg"
             }
         ]
     },
@@ -185,52 +185,52 @@
             {
                 "name": "batch-requests",
                 "description": "Batch-requests accepts multiple request and send them from apisix via http pipeline",
-                "src": "static/img/plugin/batch-requests.jpg"
+                "src": "/img/plugin/batch-requests.jpg"
             },
             {
                 "name": "grpc-transcode",
                 "description": "Grpc-transcoding involves mapping HTTP/JSON requests and their parameters to gRPC methods and their parameters and return types",
-                "src": "static/img/plugin/grpc-transcode.jpg"
+                "src": "/img/plugin/grpc-transcode.jpg"
             },
             {
                 "name": "proxy-cache",
                 "description": "The proxy-cache plugin provides the ability to cache upstream response data and can be used with other plugins",
-                "src": "static/img/plugin/proxy-cache.jpg"
+                "src": "/img/plugin/proxy-cache.jpg"
             },
             {
                 "name": "proxy-mirror",
                 "description": "TThe proxy-mirror plugin provides the ability to mirror client requests",
-                "src": "static/img/plugin/proxy-mirror.jpg"
+                "src": "/img/plugin/proxy-mirror.jpg"
             },
             {
                 "name": "proxy-rewrite",
                 "description": "The proxy-rewrite is an upstream proxy information rewriting plugin",
-                "src": "static/img/plugin/proxy-rewrite.jpg"
+                "src": "/img/plugin/proxy-rewrite.jpg"
             },
             {
                 "name": "response-rewrite",
                 "description": "Response-rewrite rewrites the content returned by the upstream as well as Apache APISIX itself",
-                "src": "static/img/plugin/response-rewrite.jpg"
+                "src": "/img/plugin/response-rewrite.jpg"
             },
             {
                 "name": "wolf-rbac",
                 "description": "Wolf-rbac is an authentication and authorization (rbac) plugin where the rbac feature is provided by wolf",
-                "src": "static/img/plugin/wolf-rbac.jpg"
+                "src": "/img/plugin/wolf-rbac.jpg"
             },
             {
                 "name": "client-control",
                 "description": "The client-control plugin dynamically controls the behavior of Nginx to handle the client request",
-                "src": "static/img/plugin/defaultPluginImg.jpg"
+                "src": "/img/plugin/defaultPluginImg.jpg"
             },
             {
                 "name": "ext-plugin-pre-req",
                 "description": "The ext-plugin-pre-req runs specific external plugins in the plugin runner, before executing most of the builtin Lua plugins",
-                "src": "static/img/plugin/defaultPluginImg.jpg"
+                "src": "/img/plugin/defaultPluginImg.jpg"
             },
             {
                 "name": "ext-plugin-post-req",
                 "description": "The ext-plugin-post-req runs after executing builtin Lua plugins and before proxying to the upstream",
-                "src": "static/img/plugin/defaultPluginImg.jpg"
+                "src": "/img/plugin/defaultPluginImg.jpg"
             }
         ]
     }