juzhiyuan commented on a change in pull request #361:
URL: https://github.com/apache/apisix-website/pull/361#discussion_r647917033



##########
File path: website/src/theme/DocPage/index.js
##########
@@ -26,6 +26,26 @@ function DocPageContent({ currentDocRoute, versionMetadata, 
children }) {
     docsSidebars,
     version,
   } = versionMetadata;
+
+  useEffect(() => {
+    if(docsSidebars[sidebarName][0].label === "General"){
+      document.querySelectorAll(".navbar__link--active")[0].text = "General";
+    } else if (document.getElementById("getting-started")) {
+      document.querySelectorAll(".navbar__link--active")[0].text = "Apache 
APISIX";
+    } else if (document.getElementById("dashboard")) {
+      document.querySelectorAll(".navbar__link--active")[0].text = "Apache 
APISIX Dashboard";
+    } else if (document.getElementById("what-is-apisix-ingress-controller")) {

Review comment:
       yes, make it more clearly




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to