Skip to content

Commit 5f9563f

Browse files
committed
working on local links
1 parent b76a12f commit 5f9563f

File tree

72 files changed

+147
-120
lines changed

Some content is hidden

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

72 files changed

+147
-120
lines changed

markdown-pages/blogposts/2022-08-25-release-10-0-0.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ReScript version 10 is available! Version 10 is a culmination of over a year's w
1414
npm install rescript@10
1515
```
1616

17-
All changes are listed [here](https://github.com/rescript-lang/rescript/blob/10.0_release/CHANGELOG.md). Let's take a tour of a few of the features we're extra excited about.
17+
All changes are listed [here](https://github.com/rescript-lang/rescript/blob/10.0_release/CHANGELOG. Let's take a tour of a few of the features we're extra excited about.
1818

1919
## Faster builds with native M1 support
2020

@@ -86,7 +86,7 @@ Version 10 brings the building blocks needed for a number of exciting new featur
8686

8787
## Upgrade guide
8888

89-
Please see the detailed [changelog](https://github.com/rescript-lang/rescript/blob/10.0_release/CHANGELOG.md) for a list of breaking changes.
89+
Please see the detailed [changelog](https://github.com/rescript-lang/rescript/blob/10.0_release/CHANGELOG for a list of breaking changes.
9090
Each breaking change lists suggestions on how to upgrade your project.
9191
This can be out of your control in case of dependencies. In that case, please raise issues with the maintainers of those libraries.
9292

markdown-pages/blogposts/2023-02-02-release-10-1.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ReScript 10.1 now ships with JSX v4. Here's what's new:
8282
- **Two new transformation modes**. JSX v4 comes with a `classic` mode (= `React.createElement`) and `automatic` mode (= `jsx-runtime` calls). The latter is the new default, moving forward with `rescript/react@0.11` and `React@18`.
8383
- **Allow mixing JSX configurations on the project and module level.** Gradually mix and match JSX transformations and modes without migrating any old code!
8484
- **Pass `prop` types** to `@react.component`. You can now fine tune `@react.component` with your specific prop type needs. Very useful for libraries and frameworks to define component interfaces.
85-
- **Less boilerplate when using `React.Context`**. Check out our [example](/docs/react/latest/migrate-react#reactcontext) for comparison.
85+
- **Less boilerplate when using `React.Context`**. Check out our [example](/docs/react/migrate-react#reactcontext) for comparison.
8686
- **Revisited props spread operator.** This will allow users to spread records in JSX without sacrificing their sanity. Note that this implementation has harder constraints than its JS counterpart. (requires `rescript/react@0.11` or higher)
8787
- **Better type inference of props.** Type inference when passing e.g. variants that are defined in the same module as the component is much improved. With the earlier JSX version, you'd often need to write code like this in order for the compiler to understand which variant you're passing: `<Button variant=Button.Primary text="Click" />`. With JSX v4, you won't need to tell the compiler where the variant you're passing is located: `<Button variant=Primary text="Click" />`.
8888

@@ -281,9 +281,9 @@ export {
281281

282282
### How to migrate to JSX v4?
283283

284-
We provide a full [migration guide](/docs/react/latest/migrate-react) with all the details of an migration.
284+
We provide a full [migration guide](/docs/react/migrate-react) with all the details of an migration.
285285

286-
Make sure to also check out the [rescript-react changelog](https://github.com/rescript-lang/rescript-react/blob/master/CHANGELOG.md) as well.
286+
Make sure to also check out the [rescript-react changelog](https://github.com/rescript-lang/rescript-react/blob/master/CHANGELOG as well.
287287

288288
## What's next?
289289

markdown-pages/blogposts/2024-01-11-release-11-0-0.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ npm install rescript@11
1818

1919
To upgrade your project or to find out if there are any breaking changes that affect you, please follow the [migration guide](/docs/manual/migrate-to-v11).
2020

21-
The complete list of changes can be found [here](https://github.com/rescript-lang/rescript/blob/v11.0.0/CHANGELOG.md). Let's have a look at the most notable improvements.
21+
The complete list of changes can be found [here](https://github.com/rescript-lang/rescript/blob/v11.0.0/CHANGELOG. Let's have a look at the most notable improvements.
2222

2323
## Highlights
2424

@@ -94,7 +94,7 @@ Going forward, `create-rescript-app` is the new recommended way to setup a new p
9494

9595
### ReScript-React v0.12
9696

97-
In tandem with the new ReScript release, a new version of ReScript-React is released as well. It brings support for dynamically loading React components via `React.lazy`, and more. Check out the [corresponding docs](/docs/react/latest/installation).
97+
In tandem with the new ReScript release, a new version of ReScript-React is released as well. It brings support for dynamically loading React components via `React.lazy`, and more. Check out the [corresponding docs](/docs/react/installation).
9898

9999
### ReScript Tools / Documentation Extraction
100100

markdown-pages/blogposts/2025-03-05-what-can-i-do-with-rescript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ If you can use `.js` or `.mjs` files, you can use ReScript. This does mean that
2828
Real world projects are more than JavaScript files that you write; they use libraries and frameworks. This is where [bindings](/docs/manual/external) come into play.
2929
A binding is a way to tell ReScript the types and imports from external JavaScript. You can think of bindings in the same way that you need to create a `*.d.ts` file to add types to a JavaScript library that doesn't use TypeScript.
3030

31-
ReScript has great integration with [React](/docs/react/latest/introduction) and those bindings are kept up to date by the core team, but that doesn't mean you don't have other options!
31+
ReScript has great integration with [React](/docs/react/introduction) and those bindings are kept up to date by the core team, but that doesn't mean you don't have other options!
3232

3333
## Using existing bindings
3434

markdown-pages/blogposts/archived/2019-11-18-whats-new-in-7-pt1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ since this release we are moving forward and focusing on release 7.\* (for OCaml
1717
4.06).
1818

1919
This is a major release comes with lots of nice features listed
20-
[here](https://github.com/BuckleScript/bucklescript/blob/master/Changes.md).
20+
[here](https://github.com/BuckleScript/bucklescript/blob/master/Changes.
2121

2222
We talk about some highlights here
2323

markdown-pages/blogposts/archived/2020-08-03-bucklescript-release-8-2.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ Besides the exciting string literal types, this release continues to deliver bet
1616

1717
Thanks to the integration of Flow parser, we are able to make the JS interop [more safe and expressive](https://github.com/BuckleScript/bucklescript/issues/4463)
1818

19-
The full changes are listed [here](https://github.com/BuckleScript/bucklescript/blob/master/Changes.md)
19+
The full changes are listed [here](https://github.com/BuckleScript/bucklescript/blob/master/Changes
2020

2121
Enjoy!

markdown-pages/docs/manual/array-and-list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ var anotherList = {
192192

193193
#### Access
194194

195-
`switch` (described in the [pattern matching section](pattern-matching-destructuring.md)) is usually used to access list items:
195+
`switch` (described in the [pattern matching section](pattern-matching-destructuring) is usually used to access list items:
196196

197197
<CodeTab labels={["ReScript", "JS Output"]}>
198198

markdown-pages/docs/manual/bind-to-js-function.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ In a `send`, the object is always the first argument. Actual arguments of the me
109109

110110
### Chaining
111111

112-
Ever used `foo().bar().baz()` chaining ("fluent api") in JS OOP? We can model that in ReScript too, through the [pipe operator](pipe.md).
112+
Ever used `foo().bar().baz()` chaining ("fluent api") in JS OOP? We can model that in ReScript too, through the [pipe operator](pipe.
113113

114114
### Nested function call
115115

@@ -164,7 +164,7 @@ var v = Path.join("a", "b");
164164

165165
</CodeTab>
166166

167-
`module` will be explained in [Import from/Export to JS](import-from-export-to-js.md).
167+
`module` will be explained in [Import from/Export to JS](import-from-export-to-js.
168168

169169
## Modeling Polymorphic Function
170170

markdown-pages/docs/manual/bind-to-js-object.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ JavaScript objects are a combination of several use-cases:
1515
- As a class.
1616
- As a module to import/export.
1717

18-
ReScript cleanly separates the binding methods for JS object based on these 4 use-cases. This page documents the first three. Binding to JS module objects is described in the [Import from/Export to JS](import-from-export-to-js.md) section.
18+
ReScript cleanly separates the binding methods for JS object based on these 4 use-cases. This page documents the first three. Binding to JS module objects is described in the [Import from/Export to JS](import-from-export-to-js section.
1919

2020
{/* TODO: mention scope here too? */}
2121

@@ -47,7 +47,7 @@ var johnName = MySchool.john.name;
4747

4848
</CodeTab>
4949

50-
External is documented [here](external.md). `@module` is documented [here](import-from-export-to-js.md).
50+
External is documented [here](external. `@module` is documented [here](import-from-export-to-js.
5151

5252
If you want or need to use different field names on the ReScript and the JavaScript side, you can use the `@as` decorator:
5353

@@ -92,7 +92,7 @@ var value = [7, "baz"];
9292

9393
### Bind Using ReScript Object
9494

95-
Alternatively, you can use [ReScript object](object.md) to model a JS object too:
95+
Alternatively, you can use [ReScript object](object to model a JS object too:
9696

9797
<CodeTab labels={["ReScript", "JS Output"]}>
9898

markdown-pages/docs/manual/control-flow.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ order: 14
1010

1111
ReScript supports `if`, `else`, ternary expression (`a ? b : c`), `for` and `while`.
1212

13-
ReScript also supports our famous pattern matching, which will be covered in [its own section](pattern-matching-destructuring.md)
13+
ReScript also supports our famous pattern matching, which will be covered in [its own section](pattern-matching-destructuring
1414

1515
## If-Else & Ternary
1616

@@ -94,7 +94,7 @@ var message = isMorning ? "Good morning!" : "Hello!";
9494

9595
</CodeTab>
9696

97-
**`if-else` and ternary are much less used** in ReScript than in other languages; [Pattern-matching](pattern-matching-destructuring.md) kills a whole category of code that previously required conditionals.
97+
**`if-else` and ternary are much less used** in ReScript than in other languages; [Pattern-matching](pattern-matching-destructuring kills a whole category of code that previously required conditionals.
9898

9999
## For Loops
100100

@@ -190,7 +190,7 @@ while (testCondition) {
190190

191191
### Tips & Tricks
192192

193-
There's no loop-breaking `break` keyword (nor early `return` from functions, for that matter) in ReScript. However, we can break out of a while loop easily through using a [mutable binding](mutation.md).
193+
There's no loop-breaking `break` keyword (nor early `return` from functions, for that matter) in ReScript. However, we can break out of a while loop easily through using a [mutable binding](mutation.
194194

195195
<CodeTab labels={["ReScript", "JS Output"]}>
196196

0 commit comments

Comments
 (0)