Skip to content

Commit e8fe3a7

Browse files
authored
Merge pull request rescript-lang#33 from reason-association/remove-old-reason-react
Remove reason-react docs and point to the external resources (for now)
2 parents e2df73e + 7b21527 commit e8fe3a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+10
-2450
lines changed

common/App.re

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ let default = (props: props): React.element => {
7272
}
7373
| {base: [|"docs", "reason-compiler"|], version: Latest} =>
7474
<ReasonCompilerDocsLayout> content </ReasonCompilerDocsLayout>
75-
| {base: [|"docs", "reason-react"|], version: Latest} =>
76-
<ReasonReactDocsLayout> content </ReasonReactDocsLayout>
7775
| {base: [|"docs", "gentype"|], version: Latest} =>
7876
<GenTypeDocsLayout> content </GenTypeDocsLayout>
7977
// apis routes

layouts/ReasonReactDocsLayout.re

Lines changed: 0 additions & 156 deletions
This file was deleted.

pages/docs/gentype/latest/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ idiomatically. Converter functions between the two representations are
66
generated based on the type of the value. The converters can be generated in
77
vanilla JavaScript, or in [TypeScript](https://www.typescriptlang.org/) /
88
[Flow](https://flow.org/en/) for a type-safe idiomatic interface. In
9-
particular, conversion of [ReasonReact](/docs/reason-react/latest/introduction)
9+
particular, conversion of [ReasonReact](https://reasonml.github.io/reason-react/)
1010
components both ways is supported, with automatic generation of the wrappers.
1111

1212
Here's an article describing how to use `genType` as part of a migration

pages/docs/manual/latest/build-configuration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Note that only sources marked with `"type":"dev"` will be able to resolve module
7373

7474
## reason, refmt (old)
7575

76-
`reason` config is enabled by default. To turn on JSX for [ReasonReact](/docs/reason-react/latest/introduction), specify:
76+
`reason` config is enabled by default. To turn on JSX for [ReasonReact](https://reasonml.github.io/reason-react/), specify:
7777

7878
```json
7979
{

pages/docs/manual/latest/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ That compiles your ReScript into JavaScript, then uses NodeJS to run said JavaSc
3030

3131
During development, instead of running `npm run build` each time to compile, use `npm run start` to start a watcher that recompiles automatically after file changes.
3232

33-
Alternatively, **to start a [ReasonReact](/docs/reason-react/latest/introduction) app**, follow the instructions [here](/docs/reason-react/latest/installation).
33+
Alternatively, **to start a [ReasonReact](https://reasonml.github.io/reason-react/en/) app**, follow the instructions [here](https://reasonml.github.io/reason-react/docs/en/installation).
3434

3535
## Integrate Into Existing JS Project
3636

pages/docs/manual/latest/jsx.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Would you like some HTML syntax in your ReScript? If not, quickly skip over this
1010

1111
ReScript supports the JSX syntax, with some slight differences compared to the one in [ReactJS](https://facebook.github.io/react/docs/introducing-jsx.html). ReScript JSX isn't tied to ReactJS; they translate to normal function calls:
1212

13-
**Note** for [ReasonReact](/docs/reason-react/latest/introduction) readers: this isn't what ReasonReact turns JSX into, in the end. See Usage section for more info.
13+
**Note** for [ReasonReact](https://reasonml.github.io/reason-react/en/) readers: this isn't what ReasonReact turns JSX into, in the end. See Usage section for more info.
1414

1515
## Capitalized Tag
1616

@@ -184,7 +184,7 @@ React.createElement(MyForm.make, MyForm.makeProps(["Hello", "Submit"], undefined
184184

185185
## Usage
186186

187-
See [ReasonReact JSX](/docs/reason-react/latest/jsx) for an example application of JSX, which transforms the above calls into a ReasonReact-specific call.
187+
See [ReasonReact JSX](https://reasonml.github.io/reason-react/docs/en/jsx) for an example application of JSX, which transforms the above calls into a ReasonReact-specific call.
188188

189189
Here's a JSX tag that shows most of the features.
190190

pages/docs/manual/v8.0.0/build-configuration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Note that only sources marked with `"type":"dev"` will be able to resolve module
7373

7474
## reason, refmt (old)
7575

76-
`reason` config is enabled by default. To turn on JSX for [ReasonReact](/docs/reason-react/latest/introduction), specify:
76+
`reason` config is enabled by default. To turn on JSX for [ReasonReact](https://reasonml.github.io/reason-react/en/), specify:
7777

7878
```json
7979
{

pages/docs/manual/v8.0.0/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ That compiles your ReScript into JavaScript, then uses NodeJS to run said JavaSc
3232

3333
During development, instead of running `npm run build` each time to compile, use `npm run start` to start a watcher that recompiles automatically after file changes.
3434

35-
Alternatively, **to start a [ReasonReact](/docs/reason-react/latest/introduction) app**, follow the instructions [here](/docs/reason-react/latest/installation).
35+
Alternatively, **to start a [ReasonReact](https://reasonml.github.io/reason-react/en/) app**, follow the instructions [here](https://reasonml.github.io/reason-react/docs/en/installation).
3636

3737
## Integrate Into Existing JS Project
3838

pages/docs/manual/v8.0.0/jsx.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Would you like some HTML syntax in your ReScript? If not, quickly skip over this
1010

1111
ReScript supports the JSX syntax, with some slight differences compared to the one in [ReactJS](https://facebook.github.io/react/docs/introducing-jsx.html). ReScript JSX isn't tied to ReactJS; they translate to normal function calls:
1212

13-
**Note** for [ReasonReact](/docs/reason-react/latest/introduction) readers: this isn't what ReasonReact turns JSX into, in the end. See Usage section for more info.
13+
**Note** for [ReasonReact](https://reasonml.github.io/reason-react/en/) readers: this isn't what ReasonReact turns JSX into, in the end. See Usage section for more info.
1414

1515
## Capitalized Tag
1616

@@ -184,7 +184,7 @@ React.createElement(MyForm.make, MyForm.makeProps(["Hello", "Submit"], undefined
184184

185185
## Usage
186186

187-
See [ReasonReact JSX](/docs/reason-react/latest/jsx) for an example application of JSX, which transforms the above calls into a ReasonReact-specific call.
187+
See [ReasonReact JSX](https://reasonml.github.io/reason-react/docs/en/jsx) for an example application of JSX, which transforms the above calls into a ReasonReact-specific call.
188188

189189
Here's a JSX tag that shows most of the features.
190190

pages/docs/reason-react/latest/callback-handlers.mdx

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)