Skip to content

Commit b2ce083

Browse files
committed
Restructure docs
1 parent fea5395 commit b2ce083

File tree

2 files changed

+37
-53
lines changed

2 files changed

+37
-53
lines changed

data/sidebar_manual_v1200.json

+28-31
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,31 @@
22
"Overview": [
33
"introduction",
44
"installation",
5-
"migrate-to-v11",
65
"editor-plugins",
7-
"try"
6+
"faq",
7+
"llms"
8+
],
9+
"Guides": [
10+
"converting-from-js",
11+
"newcomer-examples",
12+
"project-structure"
13+
],
14+
"JavaScript Interop": [
15+
"interop-cheatsheet",
16+
"embed-raw-javascript",
17+
"shared-data-types",
18+
"external",
19+
"bind-to-js-object",
20+
"bind-to-js-function",
21+
"import-from-export-to-js",
22+
"bind-to-global-js-values",
23+
"json",
24+
"inlining-constants",
25+
"use-illegal-identifier-names",
26+
"generate-converters-accessors",
27+
"browser-support-polyfills",
28+
"libraries",
29+
"typescript-integration"
830
],
931
"Language Features": [
1032
"overview",
@@ -35,27 +57,7 @@
3557
"reserved-keywords",
3658
"equality-comparison"
3759
],
38-
"Advanced Features": [
39-
"extensible-variant",
40-
"scoped-polymorphic-types"
41-
],
42-
"JavaScript Interop": [
43-
"interop-cheatsheet",
44-
"embed-raw-javascript",
45-
"shared-data-types",
46-
"external",
47-
"bind-to-js-object",
48-
"bind-to-js-function",
49-
"import-from-export-to-js",
50-
"bind-to-global-js-values",
51-
"json",
52-
"inlining-constants",
53-
"use-illegal-identifier-names",
54-
"generate-converters-accessors",
55-
"browser-support-polyfills",
56-
"libraries",
57-
"typescript-integration"
58-
],
60+
5961
"Build System": [
6062
"build-overview",
6163
"build-configuration",
@@ -66,13 +68,8 @@
6668
"build-performance",
6769
"warning-numbers"
6870
],
69-
"Guides": [
70-
"converting-from-js"
71-
],
72-
"Extra": [
73-
"newcomer-examples",
74-
"project-structure",
75-
"faq",
76-
"llms"
71+
"Advanced Features": [
72+
"extensible-variant",
73+
"scoped-polymorphic-types"
7774
]
7875
}

src/components/Navigation.res

+9-22
Original file line numberDiff line numberDiff line change
@@ -177,27 +177,6 @@ module DocsSection = {
177177
}
178178
},
179179
},
180-
{
181-
imgSrc: "/static/ic_gentype@2x.png",
182-
title: "GenType",
183-
description: "Seamless TypeScript integration",
184-
href: `/docs/manual/${version}/typescript-integration`,
185-
isActive: url => {
186-
switch url.fullpath {
187-
| ["docs", "manual", _, "typescript-integration"] => true
188-
| _ => false
189-
}
190-
},
191-
},
192-
{
193-
imgSrc: "/static/ic_reanalyze@2x.png",
194-
title: "Reanalyze",
195-
description: "Dead Code & Termination analysis",
196-
href: "https://github.com/rescript-lang/reanalyze",
197-
isActive: _ => {
198-
false
199-
},
200-
},
201180
]
202181

203182
let languageManualColumn =
@@ -532,10 +511,18 @@ let make = (~fixed=true, ~isOverlayOpen: bool, ~setOverlayOpen: (bool => bool) =
532511
<div
533512
className="flex ml-10 space-x-5 w-full max-w-320"
534513
style={ReactDOMStyle.make(~maxWidth="26rem", ())}>
535-
{collapsibleElements->React.array}
514+
<Link
515+
href={`/docs/manual/${version}/introduction`}
516+
className={linkOrActiveApiSubroute(~route)}>
517+
{React.string("Docs")}
518+
</Link>
536519
<Link href={`/docs/manual/${version}/api`} className={linkOrActiveApiSubroute(~route)}>
537520
{React.string("API")}
538521
</Link>
522+
<Link
523+
href={`/docs/react/latest/introduction`} className={linkOrActiveApiSubroute(~route)}>
524+
{React.string("React")}
525+
</Link>
539526
<Link
540527
href="/try"
541528
className={"hidden xs:block " ++ linkOrActiveLink(~target="/try", ~route)}>

0 commit comments

Comments
 (0)