Skip to content

Commit 1a464d4

Browse files
committed
Fix links in v8.0.0 api resources
1 parent 50c3705 commit 1a464d4

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

pages/apis/v8.0.0/belt.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ The preferred standard library for Reason when targeting JavaScript
44
(browser, node, React Native).
55

66
It is recommended to use the modules from Belt rather than from the
7-
OCaml standard library or from the [Js](/apis/javascript/latest/js) namespace, e.g. use
8-
[Belt.List](/apis/javascript/latest/belt/list) instead of `List` or [Js.List](/apis/javascript/latest/js/list)
9-
and [Belt.Array](/apis/javascript/latest/belt/array) instead of `Array` or [Js.Array](/apis/javascript/latest/js/array).
7+
OCaml standard library or from the [Js](./js) namespace, e.g. use
8+
[Belt.List](./belt/list) instead of `List` or [Js.List](./js/list)
9+
and [Belt.Array](./belt/array) instead of `Array` or [Js.Array](./js/array).
1010

1111
Belt is currently mostly covering collection types. It has no string or
1212
date functions yet, although Belt.String is in the works. (In the meantime,
13-
use [Js.String](/apis/javascript/latest/js/string) for string functions and [Js.Date](/apis/javascript/latest/js/date)
13+
use [Js.String](./js/string) for string functions and [Js.Date](./js/date)
1414
for date functions.)
1515

1616
## Motivation
@@ -114,9 +114,9 @@ as well as specialized, more efficient implementations for string and int keys.
114114

115115
For example, Belt has the following set modules:
116116

117-
- [Belt.Set](/apis/javascript/latest/belt/set)
118-
- [Belt.Set.Int](/apis/javascript/latest/belt/set-int)
119-
- [Belt.Set.String](/apis/javascript/latest/belt/set-string)
117+
- [Belt.Set](./belt/set)
118+
- [Belt.Set.Int](./belt/set-int)
119+
- [Belt.Set.String](./belt/set-string)
120120

121121
## Implementation Details
122122

pages/apis/v8.0.0/belt/mutable-set-int.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<Intro>
44

5-
This module is [Belt.MutableSet](/apis/javascript/latest/belt/mutable-set) specialized with key type to be a `int` type.
6-
It is more efficient in general, the API is the same with [Belt.MutableSet](/apis/javascript/latest/belt/mutable-set) except its key type is fixed, and identity is not needed (using the built-in one).
5+
This module is [Belt.MutableSet](./mutable-set) specialized with key type to be a `int` type.
6+
It is more efficient in general, the API is the same with [Belt.MutableSet](./mutable-set) except its key type is fixed, and identity is not needed (using the built-in one).
77

88
</Intro>
99

pages/apis/v8.0.0/belt/mutable-set-string.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<Intro>
44

5-
This module is [Belt.MutableSet](/apis/javascript/latest/belt/mutable-set) specialized with key type to be a `string` type.
6-
It is more efficient in general, the API is the same with [Belt.MutableSet](/apis/javascript/latest/belt/mutable-set) except its key type is fixed, and identity is not needed (using the built-in one)
5+
This module is [Belt.MutableSet](./mutable-set) specialized with key type to be a `string` type.
6+
It is more efficient in general, the API is the same with [Belt.MutableSet](./mutable-set) except its key type is fixed, and identity is not needed (using the built-in one)
77

88
</Intro>
99

pages/apis/v8.0.0/belt/mutable-set.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
A **mutable** sorted set module which allows customize compare behavior.
66
The implementation uses balanced binary trees, and therefore searching and insertion take time logarithmic in the size of the map.
77

8-
It also has three specialized inner modules [Belt.MutableSet.Int](/apis/javascript/latest/belt/mutable-set-int) and [Belt.MutableSet.String](/apis/javascript/latest/belt/mutable-set-string) - This module separates data from function which is more verbose but slightly more efficient
8+
It also has three specialized inner modules [Belt.MutableSet.Int](./mutable-set-int) and [Belt.MutableSet.String](./mutable-set-string) - This module separates data from function which is more verbose but slightly more efficient
99

1010
</Intro>
1111

pages/apis/v8.0.0/belt/set.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
A **immutable** sorted set module which allows customize compare behavior.
66
The implementation uses balanced binary trees, and therefore searching and insertion take time logarithmic in the size of the map.
77

8-
It also has three specialized inner modules [Belt.Set.Int](/apis/javascript/latest/belt/set-int), [Belt.Set.String](/apis/javascript/latest/belt/set-string) and [Belt.Set.Dict](/apis/javascript/latest/belt/set-dict) - This module separates data from function which is more verbose but slightly more efficient
8+
It also has three specialized inner modules [Belt.Set.Int](./set-int), [Belt.Set.String](./set-string) and [Belt.Set.Dict](./set-dict) - This module separates data from function which is more verbose but slightly more efficient
99

1010
</Intro>
1111

pages/apis/v8.0.0/js.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ classes.
1010

1111
It is meant as a zero-abstraction interop layer and directly exposes
1212
JavaScript functions as they are, even when their behavior should be considered unsafe
13-
(e.g. modifying an array in place using [Js.Array.push](/apis/javascript/latest/js/array#push)).
13+
(e.g. modifying an array in place using [Js.Array.push](./js/array#push)).
1414

15-
Therefore, when a correpsonding module is available in the [Belt](/apis/javascript/latest/belt) standard library,
15+
Therefore, when a correpsonding module is available in the [Belt](./belt) standard library,
1616
it is recommended to use the Belt version rather than the Js version.
17-
For example, you should prefer [Belt.Array](/apis/javascript/latest/belt/array)
18-
to [Js.Array](/apis/javascript/latest/js/array)
19-
and [Belt.Map.String](/apis/javascript/latest/belt/map-string)
20-
to [Js.Dict](/apis/javascript/latest/js/dict).
17+
For example, you should prefer [Belt.Array](./belt/array)
18+
to [Js.Array](./js/array)
19+
and [Belt.Map.String](./belt/map-string)
20+
to [Js.Dict](./js/dict).
2121

2222
## Argument Order
2323

24-
For historical reasons, some APIs in the Js namespace (e.g. [Js.String](/apis/javascript/latest/js/string)) are
25-
using the data-last argument order whereas others (e.g. [Js.Date](/apis/javascript/latest/js/date)) are using data-first.
24+
For historical reasons, some APIs in the Js namespace (e.g. [Js.String](./js/string)) are
25+
using the data-last argument order whereas others (e.g. [Js.Date](./js/date)) are using data-first.
2626

2727
For more information about these argument orders and the trade-offs between them, see
2828
[this blog post](https://www.javierchavarri.com/data-first-and-data-last-a-comparison/).
@@ -47,8 +47,8 @@ Js.log(Js.String.startsWith("Re", "Reason"));
4747

4848
## Js.Xxx2 Modules
4949

50-
For some modules with data-last argument order (e.g. [Js.String](/apis/javascript/latest/js/string)),
51-
there currently exists a matching module suffixed with "2" (e.g. [Js.String2](/apis/javascript/latest/js/string-2))
50+
For some modules with data-last argument order (e.g. [Js.String](./js/string)),
51+
there currently exists a matching module suffixed with "2" (e.g. [Js.String2](./js/string-2))
5252
that uses data-first argument order.
5353
These `Js.Xxx2` modules are non-public API, so their use is discouraged.
5454

0 commit comments

Comments
 (0)