@@ -24,7 +24,7 @@ is_get_started = window.location.href.endsWith(
2424 "source/overview/getting-started.html"
2525) ;
2626is_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 /" ) ;
2828is_documentation = ! ( is_get_started || is_use_cases || is_developer_guide ) ;
2929
3030lightEvaLogoSvg =
@@ -44,13 +44,13 @@ leftContents = [];
4444
4545//-- The EvaDB link
4646lightLinkEvaDB = 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") )
4848lightLinkEvaDB . setAttribute ( "class" , "evadb-logo" ) ;
4949lightLinkEvaDB . classList . add ( "only-light" ) ;
5050lightLinkEvaDB . innerHTML += lightEvaLogoSvg ;
5151
5252darkLinkEvaDB = 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") )
5454darkLinkEvaDB . setAttribute ( "class" , "evadb-logo" ) ;
5555darkLinkEvaDB . classList . add ( "only-dark" ) ;
5656darkLinkEvaDB . innerHTML += darkEvaLogoSvg ;
@@ -87,7 +87,7 @@ leftContents.push(useCasesLink);
8787//-- The Documentation link
8888documentationLink = document . createElement ( "a" ) ;
8989documentationLink . 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" ) )
9191if ( is_documentation ) {
9292 documentationLink . style . borderBottom = "2px solid var(--orange)" ;
9393}
@@ -98,7 +98,7 @@ developerGuideLink = document.createElement("a");
9898developerGuideLink . innerText = "Developer Guide" ;
9999developerGuideLink . setAttribute (
100100 "href" ,
101- getNavURL ( "source/contribute/index .html" )
101+ getNavURL ( "source/dev-guide/contribute .html" )
102102) ;
103103if ( 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