@@ -24,7 +24,7 @@ is_get_started = window.location.href.endsWith(
24
24
"source/overview/getting-started.html"
25
25
) ;
26
26
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 /" ) ;
28
28
is_documentation = ! ( is_get_started || is_use_cases || is_developer_guide ) ;
29
29
30
30
lightEvaLogoSvg =
@@ -44,13 +44,13 @@ leftContents = [];
44
44
45
45
//-- The EvaDB link
46
46
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") )
48
48
lightLinkEvaDB . setAttribute ( "class" , "evadb-logo" ) ;
49
49
lightLinkEvaDB . classList . add ( "only-light" ) ;
50
50
lightLinkEvaDB . innerHTML += lightEvaLogoSvg ;
51
51
52
52
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") )
54
54
darkLinkEvaDB . setAttribute ( "class" , "evadb-logo" ) ;
55
55
darkLinkEvaDB . classList . add ( "only-dark" ) ;
56
56
darkLinkEvaDB . innerHTML += darkEvaLogoSvg ;
@@ -87,7 +87,7 @@ leftContents.push(useCasesLink);
87
87
//-- The Documentation link
88
88
documentationLink = document . createElement ( "a" ) ;
89
89
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" ) )
91
91
if ( is_documentation ) {
92
92
documentationLink . style . borderBottom = "2px solid var(--orange)" ;
93
93
}
@@ -98,7 +98,7 @@ developerGuideLink = document.createElement("a");
98
98
developerGuideLink . innerText = "Developer Guide" ;
99
99
developerGuideLink . setAttribute (
100
100
"href" ,
101
- getNavURL ( "source/contribute/index .html" )
101
+ getNavURL ( "source/dev-guide/contribute .html" )
102
102
) ;
103
103
if ( is_developer_guide ) {
104
104
developerGuideLink . style . borderBottom = "2px solid var(--orange)" ;
@@ -132,4 +132,4 @@ topNavContent.append(topNavContentRight)
132
132
133
133
134
134
135
- document . getElementsByClassName ( "topnav" ) [ 0 ] . append ( topNavContent ) ;
135
+ document . getElementsByClassName ( "topnav" ) [ 0 ] . append ( topNavContent ) ;
0 commit comments