Skip to content

Commit d17a863

Browse files
committed
chore: clean up legacy Reason references
Rename the docs color theme to ReScript, remove the unused local Reason Highlight.js grammar, and refresh current docs references that still pointed at Reason-era React/editor resources. Keep archived blog content and intentional legacy Reason syntax support untouched.
1 parent a11341c commit d17a863

15 files changed

Lines changed: 15 additions & 406 deletions

File tree

apps/docs/__tests__/ApiOverviewLayout_.test.res

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test("desktop API overview shows sidebar categories and content", async () => {
2424
let screen = await render(
2525
<MemoryRouter initialEntries=["/docs/manual/api"]>
2626
<div dataTestId="api-overview-wrapper">
27-
<DocsLayout categories theme=#Js>
27+
<DocsLayout categories>
2828
<div> {React.string("API documentation content.")} </div>
2929
</DocsLayout>
3030
</div>
@@ -64,7 +64,7 @@ test("mobile API overview hides sidebar", async () => {
6464
let screen = await render(
6565
<MemoryRouter initialEntries=["/docs/manual/api"]>
6666
<div dataTestId="api-overview-wrapper">
67-
<DocsLayout categories theme=#Js>
67+
<DocsLayout categories>
6868
<div> {React.string("API documentation content.")} </div>
6969
</DocsLayout>
7070
</div>
@@ -92,7 +92,7 @@ test("desktop API overview shows all category items", async () => {
9292
let screen = await render(
9393
<MemoryRouter initialEntries=["/docs/manual/api"]>
9494
<div dataTestId="api-overview-wrapper">
95-
<DocsLayout categories theme=#Js>
95+
<DocsLayout categories>
9696
<div>
9797
<Markdown.H1> {React.string("API Reference")} </Markdown.H1>
9898
<Markdown.P> {React.string("Welcome to the ReScript API documentation.")} </Markdown.P>
@@ -118,7 +118,7 @@ test("tablet API overview", async () => {
118118
let screen = await render(
119119
<MemoryRouter initialEntries=["/docs/manual/api"]>
120120
<div dataTestId="api-overview-wrapper">
121-
<DocsLayout categories theme=#Js>
121+
<DocsLayout categories>
122122
<div> {React.string("API documentation content.")} </div>
123123
</DocsLayout>
124124
</div>

apps/docs/app/routes/ApiDocs.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ let make = (props: props) => {
333333
}
334334
}
335335

336-
<SidebarLayout theme=#Reason sidebar rightSidebar> children </SidebarLayout>
336+
<SidebarLayout sidebar rightSidebar> children </SidebarLayout>
337337
}
338338

339339
module Data = {

apps/docs/app/routes/ApiOverviewRoute.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ let default = () => {
5656
<NavbarTertiary sidebar={<DocsSidebar categories />}>
5757
<SidebarLayout.BreadCrumbs crumbs=breadcrumbs />
5858
</NavbarTertiary>
59-
<DocsLayout categories theme=#Js>
59+
<DocsLayout categories>
6060
<div className="markdown-body">
6161
<MdxContent compiledMdx />
6262
</div>

apps/docs/markdown-pages/docs/manual/editor-plugins.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This section is about the editor plugin for ReScript. It adds syntax highlightin
2121

2222
We don't officially support these; use them at your own risk!
2323

24-
- [IDEA](https://github.com/reasonml-editor/reasonml-idea-plugin)
24+
- [IntelliJ IDEA](https://github.com/Nagatatz/rescript-intellij-plugin)
2525
- [Emacs](https://github.com/jjlee/rescript-mode)
2626

2727
## Code analysis

apps/docs/markdown-pages/docs/manual/interop-cheatsheet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This is a glossary with examples. All the features are described by later pages.
4242
- [`@deprecated`](./attribute.mdx#usage)
4343
- [`genType`](https://github.com/reason-association/genType)
4444
- [`@JSX`](./jsx.mdx)
45-
- `@react.component`: [here](../react/introduction.mdx) and [here](https://github.com/reasonml/reason-react)
45+
- `@react.component`: [here](../react/introduction.mdx) and [here](https://github.com/rescript-lang/rescript-react)
4646
- [`@warning`](./attribute.mdx#usage)
4747
- [`@unboxed`](./variant.mdx#untagged-variants)
4848

apps/docs/markdown-pages/docs/react/arrays-and-keys.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ let posts = [
295295
{
296296
id: "2",
297297
title: "Installation",
298-
content: "You can install reason-react from npm.",
298+
content: "You can install @rescript/react from npm.",
299299
},
300300
]
301301
@@ -373,7 +373,7 @@ let posts = [
373373
{
374374
id: "2",
375375
title: "Installation",
376-
content: "You can install reason-react from npm.",
376+
content: "You can install @rescript/react from npm.",
377377
},
378378
];
379379

@@ -437,7 +437,7 @@ let posts = [
437437
{
438438
id: "2",
439439
title: "Installation",
440-
content: "You can install reason-react from npm.",
440+
content: "You can install @rescript/react from npm.",
441441
},
442442
];
443443

0 commit comments

Comments
 (0)