Skip to content

Commit d3fec47

Browse files
authored
doc: fix nav bar (#983)
1. Fix broken navigation bar
1 parent 3336cc5 commit d3fec47

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/_static/js/top-navigation.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ is_get_started = window.location.href.endsWith(
2424
"source/overview/getting-started.html"
2525
);
2626
is_use_cases = window.location.href.includes("source/usecases/");
27-
is_developer_guide = window.location.href.includes("source/contribute/");
27+
is_developer_guide = window.location.href.includes("source/dev-guide/");
2828
is_documentation = !(is_get_started || is_use_cases || is_developer_guide);
2929

3030
lightEvaLogoSvg =
@@ -44,13 +44,13 @@ leftContents = [];
4444

4545
//-- The EvaDB link
4646
lightLinkEvaDB = document.createElement("a");
47-
lightLinkEvaDB.setAttribute("href", "index.html");
47+
lightLinkEvaDB.setAttribute("href", getNavURL("source/overview/getting-started.html").replace("source/overview/getting-started.html", "index.html"))
4848
lightLinkEvaDB.setAttribute("class", "evadb-logo");
4949
lightLinkEvaDB.classList.add("only-light");
5050
lightLinkEvaDB.innerHTML += lightEvaLogoSvg;
5151

5252
darkLinkEvaDB = document.createElement("a");
53-
darkLinkEvaDB.setAttribute("href", "index.html");
53+
darkLinkEvaDB.setAttribute("href", getNavURL("source/overview/getting-started.html").replace("source/overview/getting-started.html", "index.html"))
5454
darkLinkEvaDB.setAttribute("class", "evadb-logo");
5555
darkLinkEvaDB.classList.add("only-dark");
5656
darkLinkEvaDB.innerHTML += darkEvaLogoSvg;
@@ -87,7 +87,7 @@ leftContents.push(useCasesLink);
8787
//-- The Documentation link
8888
documentationLink = document.createElement("a");
8989
documentationLink.innerText = "Docs";
90-
documentationLink.setAttribute("href", getNavURL("source/contribute/index.html").replace("source/contribute/index.html", "index.html"))
90+
documentationLink.setAttribute("href", getNavURL("source/overview/getting-started.html").replace("source/overview/getting-started.html", "index.html"))
9191
if (is_documentation) {
9292
documentationLink.style.borderBottom = "2px solid var(--orange)";
9393
}
@@ -98,7 +98,7 @@ developerGuideLink = document.createElement("a");
9898
developerGuideLink.innerText = "Developer Guide";
9999
developerGuideLink.setAttribute(
100100
"href",
101-
getNavURL("source/contribute/index.html")
101+
getNavURL("source/dev-guide/contribute.html")
102102
);
103103
if (is_developer_guide) {
104104
developerGuideLink.style.borderBottom = "2px solid var(--orange)";
@@ -132,4 +132,4 @@ topNavContent.append(topNavContentRight)
132132

133133

134134

135-
document.getElementsByClassName("topnav")[0].append(topNavContent);
135+
document.getElementsByClassName("topnav")[0].append(topNavContent);

0 commit comments

Comments
 (0)