Skip to content

Commit

Permalink
fix: navigation path naming for apisix-java-plugin-runner (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamayushdas authored Jun 28, 2021
1 parent 46f8b56 commit 38ef79e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions website/src/theme/DocPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ function DocPageContent({ currentDocRoute, versionMetadata, children }) {
apisix : "getting-started",
apisixDashboard : "dashboard",
apisixIngressController : "what-is-apisix-ingress-controller",
apisixHelmChart : "install",
apisixDocker : "build-an-image-from-source"
apisixHelmChart : "seeking-help",
apisixDocker : "build-an-image-from-source",
apisixJavaPluginRunner : "overview"
}
useEffect(() => {
if(docsSidebars[sidebarName][0].label === pageId.general){
Expand All @@ -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')
Expand Down

0 comments on commit 38ef79e

Please sign in to comment.