Skip to content

Commit a29c19c

Browse files
committed
fix llm
1 parent d99fbab commit a29c19c

Some content is hidden

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

45 files changed

+102
-86
lines changed

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

Lines changed: 2 additions & 2 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,7 +281,7 @@ 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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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/docs/manual/import-from-export-to-js.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ order: 7
1010

1111
You've seen how ReScript's idiomatic [Import & Export](import-export) works. This section describes how we work with importing stuff from JavaScript and exporting stuff for JavaScript consumption.
1212

13-
If you're looking for react-specific interop guidance, check out the [React JS Interop guide](../../react/latest/import-export-reactjs).
13+
If you're looking for react-specific interop guidance, check out the [React JS Interop guide](../../react/import-export-reactjs).
1414

1515
**Note**: due to JS ecosystem's module compatibility issues, our advice of keeping your ReScript file's compiled JS output open in a tab applies here **more than ever**, as you don't want to subtly output the wrong JS module import/export code, on top of having to deal with Babel/Webpack/Jest/Node's CommonJS \<-> JavaScript module compatibility shims.
1616

markdown-pages/docs/manual/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ Helpful guides:
166166

167167
### Integrate with a ReactJS Project
168168

169-
To start a [rescript-react](/docs/react/latest/introduction) app, or to integrate ReScript into an existing ReactJS app, follow the instructions [here](/docs/react/latest/installation).
169+
To start a [rescript-react](/docs/react/introduction) app, or to integrate ReScript into an existing ReactJS app, follow the instructions [here](/docs/react/installation).

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

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

markdown-pages/docs/manual/jsx.mdx

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

1313
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:
1414

15-
**Note** for [ReScriptReact](https://rescript-lang.org/docs/react/latest/introduction) readers: this isn't what ReScriptReact turns JSX into, in the end. See Usage section for more info.
15+
**Note** for [ReScriptReact](https://rescript-lang.org/docs/react/introduction) readers: this isn't what ReScriptReact turns JSX into, in the end. See Usage section for more info.
1616

1717
## Capitalized
1818

@@ -166,7 +166,7 @@ So naturally, `<MyComponent> myChild </MyComponent>` is transformed to `React.js
166166

167167
## Usage
168168

169-
See [ReScriptReact Elements & JSX](https://rescript-lang.org/docs/react/latest/elements-and-jsx) for an example application of JSX, which transforms the above calls into a ReScriptReact-specific call.
169+
See [ReScriptReact Elements & JSX](https://rescript-lang.org/docs/react/elements-and-jsx) for an example application of JSX, which transforms the above calls into a ReScriptReact-specific call.
170170

171171
Here's a JSX tag that shows most of the features.
172172

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "LLMs"
3+
description: "Documentation for LLMs"
4+
canonical: "/docs/manual/v12/llms"
5+
section: "Overview"
6+
order: 4
7+
---
8+
9+
# Documentation for LLMs
10+
11+
We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentation accessible to large language models and their applications.
12+
13+
Currently, we have the following files...
14+
15+
- [/docs/manual/llms.txt](/llms/manual/v12/llms.txt) — a list of the available files for ReScript language.
16+
- [/docs/manual/llm-full.txt](/llms/manual/v12/llm-full.txt) — complete documentation for ReScript language.
17+
- [/docs/manual/llm-small.txt](/llms/manual/v12/llm-small.txt) — compressed version of the former, without examples.
18+
19+
...and package-level documentation:
20+
21+
- [/docs/react/llms](/docs/react/llms) — the LLms documentation for ReScript React.
22+
23+
## Notes
24+
25+
- The content is automatically generated from the same source as the official documentation for the specific version

markdown-pages/docs/manual/try.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ canonical: "/docs/manual/try"
66

77
## Try Online
88

9-
Our [Playground](/try) lets you try ReScript online, and comes with the [ReScript React bindings](/docs/react/latest/introduction) and the new [ReScript Core](https://github.com/rescript-association/rescript-core) standard library preinstalled.
9+
Our [Playground](/try) lets you try ReScript online, and comes with the [ReScript React bindings](/docs/react/introduction) and the new [ReScript Core](https://github.com/rescript-association/rescript-core) standard library preinstalled.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Arrays and Keys
33
description: "Rendering arrays and handling keys in ReScript and React"
4-
canonical: "/docs/react/latest/arrays-and-keys"
4+
canonical: "/docs/react/arrays-and-keys"
55
section: "Main Concepts"
66
order: 4
77
---

0 commit comments

Comments
 (0)