Skip to content

Commit 44c3300

Browse files
committed
reduce diff
1 parent 1a70252 commit 44c3300

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

src/layouts/ApiOverviewLayout.res

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
module Sidebar = SidebarLayout.Sidebar
22

3-
let makeCategories: string => array<Sidebar.Category.t> = version => {
4-
[
5-
{
6-
name: "Overview",
7-
items: [
8-
{name: "Introduction", href: `/docs/manual/${version}/api`},
9-
if version >= "v12.0.0" {
10-
{name: "Stdlib", href: `/docs/manual/${version}/api/stdlib`}
11-
} else {
12-
{name: "Core", href: `/docs/manual/${version}/api/core`}
13-
},
14-
],
15-
},
16-
{
17-
name: "Additional Libraries",
18-
items: [
19-
{name: "Belt", href: `/docs/manual/${version}/api/belt`},
20-
{name: "Dom", href: `/docs/manual/${version}/api/dom`},
21-
],
22-
},
23-
]
24-
}
3+
let makeCategories: string => array<Sidebar.Category.t> = version => [
4+
{
5+
name: "Overview",
6+
items: [
7+
{name: "Introduction", href: `/docs/manual/${version}/api`},
8+
if version >= "v12.0.0" {
9+
{name: "Stdlib", href: `/docs/manual/${version}/api/stdlib`}
10+
} else {
11+
{name: "Core", href: `/docs/manual/${version}/api/core`}
12+
},
13+
],
14+
},
15+
{
16+
name: "Additional Libraries",
17+
items: [
18+
{name: "Belt", href: `/docs/manual/${version}/api/belt`},
19+
{name: "Dom", href: `/docs/manual/${version}/api/dom`},
20+
],
21+
},
22+
]
2523

2624
/* Used for API docs (structured data) */
2725
module Docs = {

0 commit comments

Comments
 (0)