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 7e051b2  feat: added apisix-python-plugin-runner (#558)
7e051b2 is described below

commit 7e051b2955bccd371c85efe63fbe70f9b9af7687
Author: 帅进超 <[email protected]>
AuthorDate: Tue Sep 7 08:49:52 2021 +0800

    feat: added apisix-python-plugin-runner (#558)
---
 scripts/common.js                                  |  8 ++++
 .../docs/apisix-python-plugin-runner/IGNORE_DOC.md |  0
 .../docs/apisix-python-plugin-runner/sidebars.json |  3 ++
 website/docusaurus.config.js                       | 51 +++++++++++++++++++++-
 website/src/assets/icons/shield.svg                |  1 +
 website/src/pages/docs.js                          |  3 ++
 website/src/pages/downloads/ProjectCard.js         |  3 ++
 7 files changed, 68 insertions(+), 1 deletion(-)

diff --git a/scripts/common.js b/scripts/common.js
index 45cffe6..0d31e10 100644
--- a/scripts/common.js
+++ b/scripts/common.js
@@ -48,6 +48,14 @@ const projects = [
     changelogExtractor: function (changelogs, targetRelease) {
       return changelogExtractor(changelogs, targetRelease, "##", true);
     }
+  },
+  {
+    name: "apisix-python-plugin-runner",
+    branch: "master",
+    hasChangelog: true,
+    changelogExtractor: function (changelogs, targetRelease) {
+      return changelogExtractor(changelogs, targetRelease, "##", true);
+    }
   }
 ];
 
diff --git a/website/docs/apisix-python-plugin-runner/IGNORE_DOC.md 
b/website/docs/apisix-python-plugin-runner/IGNORE_DOC.md
new file mode 100644
index 0000000..e69de29
diff --git a/website/docs/apisix-python-plugin-runner/sidebars.json 
b/website/docs/apisix-python-plugin-runner/sidebars.json
new file mode 100644
index 0000000..b0cd5aa
--- /dev/null
+++ b/website/docs/apisix-python-plugin-runner/sidebars.json
@@ -0,0 +1,3 @@
+{
+  "docs": {}
+}
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index 7ae1910..f73a15d 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -92,6 +92,17 @@ module.exports = {
         version: "0.2.0",
         releaseDate: "2021-09-03",
         firstDocPath: "/getting-started",
+      },
+      {
+        name: "APISIX® Python Plugin Runner",
+        nameInParamCase: "python-plugin-runner",
+        description: "Runs Apache APISIX plugins written in Python. 
Implemented as a sidecar that accompanies Apache APISIX.",
+        shape: "shield",
+        color: "#1296DB",
+        githubRepo: "apache/apisix-python-plugin-runner",
+        version: "0.1.0",
+        releaseDate: "2021-09-03",
+        firstDocPath: "/getting-started",
       }
     ],
     downloads: [
@@ -160,6 +171,19 @@ module.exports = {
         version: "0.2.0",
         releaseDate: "2021-09-03",
         firstDocPath: "/getting-started",
+      },
+      {
+        name: "APISIX® Python Plugin Runner",
+        nameInParamCase: "python-plugin-runner",
+        description: "Runs Apache APISIX plugins written in Python. 
Implemented as a sidecar that accompanies Apache APISIX.",
+        shape: "shield",
+        color: "#1296DB",
+        githubRepo: "apache/apisix-python-plugin-runner",
+        githubBranch: "master",
+        downloadPath: 
"apisix/python-plugin-runner/0.1.0/apisix-python-plugin-runner-0.1.0-src",
+        version: "0.1.0",
+        releaseDate: "2021-09-06",
+        firstDocPath: "/getting-started",
       }
     ],
 
@@ -175,7 +199,8 @@ module.exports = {
       "apache/apisix-helm-chart",
       "apache/apisix-control-plane",
       "apache/apisix-java-plugin-runner",
-      "apache/apisix-go-plugin-runner"
+      "apache/apisix-go-plugin-runner",
+      "apache/apisix-python-plugin-runner"
     ],
   },
   i18n: {
@@ -398,6 +423,26 @@ module.exports = {
         },
       },
     ],
+    [
+      "@docusaurus/plugin-content-docs",
+      {
+        id: "docs-apisix-python-plugin-runner",
+        path: "docs/apisix-python-plugin-runner",
+        showLastUpdateAuthor: true,
+        showLastUpdateTime: true,
+        routeBasePath: "/docs/python-plugin-runner",
+        sidebarPath: 
require.resolve("./docs/apisix-python-plugin-runner/sidebars.json"),
+        editUrl: function ({
+                             locale,
+                             version,
+                             versionDocsDirPath,
+                             docPath,
+                             permalink,
+                           }) {
+          return 
`https://github.com/apache/apisix-python-plugin-runner/edit/master/docs/en/latest/${docPath}`;
+        },
+      },
+    ],
   ],
   themeConfig: {
     navbar: {
@@ -441,6 +486,10 @@ module.exports = {
               to: "/docs/go-plugin-runner/getting-started/"
             },
             {
+              label: "Apache APISIX®️ Python Plugin Runner",
+              to: "/docs/python-plugin-runner/getting-started/"
+            },
+            {
               label: "General",
               to: "/docs/general/security",
             },
diff --git a/website/src/assets/icons/shield.svg 
b/website/src/assets/icons/shield.svg
new file mode 100644
index 0000000..41f712c
--- /dev/null
+++ b/website/src/assets/icons/shield.svg
@@ -0,0 +1 @@
+<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"; 
width="32" height="32" fill="currentColor"><path d="M905.7 
216.3c0-30.2-1.2-60-3.7-89.3-0.7-8.5-6.8-15.7-15.1-17.8C770.4 80 644 64 512 
64s-258.4 16-375 45.3c-8.3 2.1-14.4 9.2-15.1 17.8-2.4 29.3-3.7 59.1-3.7 89.3 0 
344.9 161.3 637.6 385.3 741.8 5.3 2.5 11.5 2.5 16.9 0 224-104.2 385.3-397 
385.3-741.9z"/></svg>
diff --git a/website/src/pages/docs.js b/website/src/pages/docs.js
index 14463d2..12a57fd 100644
--- a/website/src/pages/docs.js
+++ b/website/src/pages/docs.js
@@ -11,6 +11,7 @@ import IconPentagon from "../assets/icons/pentagon.svg";
 import IconDiamond from "../assets/icons/diamond.svg";
 import IconStar from "../assets/icons/star-solid.svg";
 import IconOctagon from "../assets/icons/octagon.svg";
+import IconShield from "../assets/icons/shield.svg";
 
 const Page = styled.div`
   max-width: var(--ifm-container-width);
@@ -127,6 +128,8 @@ const ProjectCard = (props) => {
       <IconHexagon />
     ) : shape === "star" ? (
       <IconStar />
+    ) : shape === "shield" ? (
+      <IconShield />
     ) : (
       <IconOctagon />
     );
diff --git a/website/src/pages/downloads/ProjectCard.js 
b/website/src/pages/downloads/ProjectCard.js
index 3f7c192..31459e5 100644
--- a/website/src/pages/downloads/ProjectCard.js
+++ b/website/src/pages/downloads/ProjectCard.js
@@ -11,6 +11,7 @@ import IconSquare from "../../assets/icons/square.svg";
 import IconHexagon from "../../assets/icons/hexagon.svg";
 import IconStarSolid from "../../assets/icons/star-solid.svg";
 import IconOctagon from "../../assets/icons/octagon.svg";
+import IconShield from "../../assets/icons/shield.svg";
 
 const Dropdown = (props) => {
   const ref = useRef();
@@ -54,6 +55,8 @@ const ProjectCard = (props) => {
       <IconHexagon />
     ) : shape === "star" ? (
       <IconStarSolid />
+    ) : shape === "shield" ? (
+        <IconShield />
     ) : (
       <IconOctagon />
     );

Reply via email to