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

juzhiyuan 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 9f4dcec  docs: added dashboard (#221)
9f4dcec is described below

commit 9f4dcecbe14d30439cd1eae5f2913f187dedd038
Author: 琚致远 <[email protected]>
AuthorDate: Tue Mar 2 12:01:20 2021 +0800

    docs: added dashboard (#221)
---
 website/docusaurus.config.js | 10 ++++++++--
 website/src/pages/docs.js    |  3 ++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index 66ae907..e3862b3 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -24,6 +24,7 @@ module.exports = {
         githubRepo: "apache/apisix",
         version: "2.3",
         releaseDate: "2021-02-09",
+        firstDocPath: "/architecture-design",
       },
       {
         name: "APISIX™ Dashboard",
@@ -35,6 +36,7 @@ module.exports = {
         githubRepo: "apache/apisix-dashboard",
         version: "2.4",
         releaseDate: "2021-02-12",
+        firstDocPath: "/USER_GUIDE",
       },
       {
         name: "APISIX™ Ingress Controller",
@@ -45,6 +47,7 @@ module.exports = {
         githubRepo: "apache/apisix-ingress-controller",
         version: "0.3.0",
         releaseDate: "2021-02-11",
+        firstDocPath: "/design",
       },
     ],
     team: require("./static/data/team.json"),
@@ -142,7 +145,7 @@ module.exports = {
         {
           label: "Docs",
           position: "right",
-          // to: "/docs",
+          to: "/docs",
           items: [
             {
               label: "General",
@@ -154,7 +157,7 @@ module.exports = {
             },
             {
               label: "APISIX™️ Dashboard",
-              to: "/docs/dashboard",
+              to: "/docs/dashboard/USER_GUIDE",
             },
             {
               label: "APISIX™️ Ingress Controller",
@@ -274,6 +277,9 @@ module.exports = {
           "Apache APISIX is a dynamic, real-time, high-performance 
Cloud-Native API gateway, based on the Nginx library and etcd.",
       },
     ],
+    gtag: {
+      trackingID: "G-WQLBQL6GY3",
+    },
   },
   stylesheets: [
     
"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap";,
diff --git a/website/src/pages/docs.js b/website/src/pages/docs.js
index 18e4ea5..e41b969 100644
--- a/website/src/pages/docs.js
+++ b/website/src/pages/docs.js
@@ -109,6 +109,7 @@ const ProjectCard = (props) => {
     color,
     version,
     releaseDate,
+    firstDocPath = "",
   } = props;
   const shapeComponent =
     shape === "triangle" ? (
@@ -120,7 +121,7 @@ const ProjectCard = (props) => {
     );
 
   return (
-    <Card href={`/docs/${nameInParamCase}`}>
+    <Card href={`/docs/${nameInParamCase}${firstDocPath}`}>
       <Title>
         <ShapeBeforeTitle color={color}>{shapeComponent}</ShapeBeforeTitle>
         {name}

Reply via email to