You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sh...@apache.org on 2021/06/24 14:03:29 UTC

[apisix-website] branch master updated: chore: added uniform id's for documentations (#384)

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

shuyangw 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 bd72d67  chore: added uniform id's for documentations (#384)
bd72d67 is described below

commit bd72d675e1825199958f126385d3b45fe7a2e7e0
Author: Ayush das <ay...@gmail.com>
AuthorDate: Thu Jun 24 19:33:20 2021 +0530

    chore: added uniform id's for documentations (#384)
---
 website/src/theme/DocPage/index.js | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/website/src/theme/DocPage/index.js b/website/src/theme/DocPage/index.js
index 29e81ee..ad76124 100644
--- a/website/src/theme/DocPage/index.js
+++ b/website/src/theme/DocPage/index.js
@@ -29,11 +29,12 @@ function DocPageContent({ currentDocRoute, versionMetadata, children }) {
 
   const pageId = {
     general : "General",
-    apisix : "getting-started",
-    apisixDashboard : "dashboard",
-    apisixIngressController : "what-is-apisix-ingress-controller",
-    apisixHelmChart : "install",
-    apisixDocker : "build-an-image-from-source"
+    apisix : "apisix",
+    apisixDashboard : "apisix-dashboard",
+    apisixIngressController : "apisix-ingress-controller",
+    apisixHelmChart : "apisix-helm-chart",
+    apisixDocker : "apisix-docker",
+    apisixJavaPluginRunner : "apisix-java-plugin-runner"
   }
   useEffect(() => {
     if(docsSidebars[sidebarName][0].label === pageId.general){
@@ -48,6 +49,8 @@ function DocPageContent({ currentDocRoute, versionMetadata, children }) {
       document.querySelectorAll(".navbar__link--active")[0].text = "Apache APISIX™ Helm Chart";
     } else if (document.getElementById(pageId.apisixDocker)) {
       document.querySelectorAll(".navbar__link--active")[0].text = "Apache APISIX™ Docker";
+    } else if (document.getElementById(pageId.apisixJavaPluginRunner)) {
+      document.querySelectorAll(".navbar__link--active")[0].text = "Apache APISIX™ Java Plugin Runner";
     }
     return () => {
       console.log('\u{1F680} documentation changed')