|
1 | 1 | module Sidebar = SidebarLayout.Sidebar |
2 | 2 |
|
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 | +] |
25 | 23 |
|
26 | 24 | /* Used for API docs (structured data) */ |
27 | 25 | module Docs = { |
|
0 commit comments