Skip to content

Commit 05e940a

Browse files
committed
Add frontmatters to v8.0.0 manual pages
1 parent 6b9d88c commit 05e940a

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

+270
-0
lines changed

pages/docs/manual/v8.0.0/array-and-list.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "Array & List"
3+
description: "Arrays and List data structures"
4+
canonical: "https://rescript-lang.org/docs/manual/latest/array-and-list"
5+
---
6+
17
# Array and List
28

39
## Array

pages/docs/manual/v8.0.0/bind-to-global-js-values.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "Bind to Global JS Values"
3+
description: "JS interop with global JS values in ReScript"
4+
canonical: "https://rescript-lang.org/docs/manual/latest/bind-to-global-js-values"
5+
---
6+
17
# Bind to Global JS Values
28

39
**First**, make sure the value you'd like to model doesn't already exist in our [provided API](/apis/latest/js).

pages/docs/manual/v8.0.0/bind-to-js-function.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "Bind to JS Function"
3+
description: "JS interop with functions in ReScript"
4+
canonical: "https://rescript-lang.org/docs/manual/latest/bind-to-js-function"
5+
---
6+
17
# Function
28

39
Binding a JS function is like binding any other value:

pages/docs/manual/v8.0.0/bind-to-js-object.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "Bind to JS Object"
3+
description: "Interop with JS objects in ReScript"
4+
canonical: "https://rescript-lang.org/docs/manual/latest/bind-to-js-object"
5+
---
6+
17
# Bind to JS Object
28

39
JavaScript objects are a combination of several use-cases:

pages/docs/manual/v8.0.0/browser-support-polyfills.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "Browser Support & Polyfills"
3+
description: "Note on browser support in ReScript"
4+
canonical: "https://rescript-lang.org/docs/manual/latest/browser-support-polyfills"
5+
---
6+
17
# Browser Support & Polyfills
28

39
ReScript compiles to JavaScript **ES5**, with the exception of optionally allowing to compile to ES6's module import & export.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "Build System Configuration"
3+
description: "Details about the configuration of the ReScript build system (bsconfig.json)"
4+
canonical: "https://rescript-lang.org/docs/manual/latest/build-configuration"
5+
---
6+
17
# Configuration
28

39
`bsconfig.json` is the single, mandatory build meta file needed for bsb.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "Build System Overview"
3+
description: "Documentation about the ReScript build system and its toolchain"
4+
canonical: "https://rescript-lang.org/docs/manual/latest/build-overview"
5+
---
6+
17
# Build System Overview
28

39
ReScript comes with a build system, bsb, that's meant to be fast, lean and used as the authoritative build system of the community.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "Build Performance"
3+
description: "ReScript build performance and measuring tools"
4+
canonical: "https://rescript-lang.org/docs/manual/latest/build-performance"
5+
---
6+
17
# Build Performance
28

39
ReScript considers performance at install time, build time and run time as a serious feature. Here are some more info, and tips on keeping the build fast. **Feel free to skip this section** if you're just starting out.

pages/docs/manual/v8.0.0/control-flow.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "Control Flow"
3+
description: "If, else, ternary, for while and similar constructs"
4+
canonical: "https://rescript-lang.org/docs/manual/latest/control-flow"
5+
---
6+
17
# Control Flow
28

39
ReScript supports `if`, `else`, ternary expression, `for` and `while`.

pages/docs/manual/v8.0.0/converting-from-js.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "Converting from JS"
3+
description: "How to convert to ReScript with an existing JS codebase"
4+
canonical: "https://rescript-lang.org/docs/manual/latest/converting-from-js"
5+
---
6+
17
# Converting from JS
28

39
## Preparation

0 commit comments

Comments
 (0)