Skip to content

Commit e66b5d6

Browse files
Move syntax lookup link to navbar (#1027)
1 parent 37c8c16 commit e66b5d6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/DocsOverview.res

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ let default = (~showVersionSelect=true) => {
3131
("Reanalyze", "https://github.com/rescript-lang/reanalyze"),
3232
]
3333

34-
let tools = [("Syntax Lookup", "/syntax-lookup")]
35-
3634
let versionSelect = if showVersionSelect {
3735
let onChange = evt => {
3836
open Url
@@ -68,7 +66,7 @@ let default = (~showVersionSelect=true) => {
6866
<div className="grid grid-cols-1 xs:grid-cols-2 gap-8">
6967
<Card title="Language Manual" hrefs=languageManual />
7068
<Card title="Ecosystem" hrefs=ecosystem />
71-
<Card title="Tools" hrefs=tools />
69+
<Card title="Tools" hrefs=Constants.tools />
7270
</div>
7371
</>
7472
}

src/components/Navigation.res

+3
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,9 @@ let make = (~fixed=true, ~isOverlayOpen: bool, ~setOverlayOpen: (bool => bool) =
525525
className={isActiveLink(~route, ~href=`/docs/manual/${version}/api`)}>
526526
{React.string("API")}
527527
</Link>
528+
<Link href={`/syntax-lookup`} className={isActiveLink(~route, ~href=`/syntax-lookup`)}>
529+
{React.string("Syntax")}
530+
</Link>
528531
<Link
529532
href={`/docs/react/latest/introduction`}
530533
className={isActiveLink(~route, ~href=`/docs/react/latest/introduction`)}>

src/layouts/ApiOverviewLayout.res

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ let makeCategories: string => array<Sidebar.Category.t> = version => [
66
items: [
77
{name: "Overview", href: `/docs/manual/${version}/api`},
88
{name: "Core", href: `/docs/manual/${version}/api/core`},
9-
{name: "Syntax Lookup", href: "/syntax-lookup"},
109
],
1110
},
1211
{

0 commit comments

Comments
 (0)