From 3d46e64e8eadfe10d9630ac4d23ff6e7a36a1ff8 Mon Sep 17 00:00:00 2001 From: Josh Derocher-Vlk Date: Sun, 28 Sep 2025 15:50:38 -0400 Subject: [PATCH 1/2] refactor: add order and section to language manual frontmatter --- pages/docs/manual/v12.0.0/array-and-list.mdx | 2 ++ pages/docs/manual/v12.0.0/async-await.mdx | 2 ++ pages/docs/manual/v12.0.0/attribute.mdx | 2 ++ pages/docs/manual/v12.0.0/bind-to-global-js-values.mdx | 2 ++ pages/docs/manual/v12.0.0/bind-to-js-function.mdx | 2 ++ pages/docs/manual/v12.0.0/bind-to-js-object.mdx | 2 ++ pages/docs/manual/v12.0.0/browser-support-polyfills.mdx | 2 ++ pages/docs/manual/v12.0.0/build-configuration-schema.mdx | 2 ++ pages/docs/manual/v12.0.0/build-configuration.mdx | 2 ++ pages/docs/manual/v12.0.0/build-external-stdlib.mdx | 2 ++ pages/docs/manual/v12.0.0/build-overview.mdx | 2 ++ pages/docs/manual/v12.0.0/build-performance.mdx | 2 ++ pages/docs/manual/v12.0.0/build-pinned-dependencies.mdx | 2 ++ pages/docs/manual/v12.0.0/control-flow.mdx | 2 ++ pages/docs/manual/v12.0.0/converting-from-js.mdx | 2 ++ pages/docs/manual/v12.0.0/dict.mdx | 2 ++ pages/docs/manual/v12.0.0/editor-code-analysis.mdx | 2 ++ pages/docs/manual/v12.0.0/editor-plugins.mdx | 2 ++ pages/docs/manual/v12.0.0/embed-raw-javascript.mdx | 2 ++ pages/docs/manual/v12.0.0/equality-comparison.mdx | 2 ++ pages/docs/manual/v12.0.0/exception.mdx | 2 ++ pages/docs/manual/v12.0.0/extensible-variant.mdx | 2 ++ pages/docs/manual/v12.0.0/external.mdx | 2 ++ pages/docs/manual/v12.0.0/function.mdx | 2 ++ pages/docs/manual/v12.0.0/generalized-algebraic-data-types.mdx | 2 ++ pages/docs/manual/v12.0.0/generate-converters-accessors.mdx | 2 ++ pages/docs/manual/v12.0.0/import-export.mdx | 2 ++ pages/docs/manual/v12.0.0/import-from-export-to-js.mdx | 2 ++ pages/docs/manual/v12.0.0/inlining-constants.mdx | 2 ++ pages/docs/manual/v12.0.0/installation.mdx | 2 ++ pages/docs/manual/v12.0.0/interop-cheatsheet.mdx | 2 ++ pages/docs/manual/v12.0.0/interop-with-js-build-systems.mdx | 2 ++ pages/docs/manual/v12.0.0/introduction.mdx | 2 ++ pages/docs/manual/v12.0.0/json.mdx | 2 ++ pages/docs/manual/v12.0.0/jsx.mdx | 2 ++ pages/docs/manual/v12.0.0/lazy-values.mdx | 2 ++ pages/docs/manual/v12.0.0/let-binding.mdx | 2 ++ pages/docs/manual/v12.0.0/libraries.mdx | 2 ++ pages/docs/manual/v12.0.0/module-functions.mdx | 2 ++ pages/docs/manual/v12.0.0/module.mdx | 2 ++ pages/docs/manual/v12.0.0/mutation.mdx | 2 ++ pages/docs/manual/v12.0.0/null-undefined-option.mdx | 2 ++ pages/docs/manual/v12.0.0/object.mdx | 2 ++ pages/docs/manual/v12.0.0/overview.mdx | 2 ++ pages/docs/manual/v12.0.0/pattern-matching-destructuring.mdx | 2 ++ pages/docs/manual/v12.0.0/pipe.mdx | 2 ++ pages/docs/manual/v12.0.0/polymorphic-variant.mdx | 2 ++ pages/docs/manual/v12.0.0/primitive-types.mdx | 2 ++ pages/docs/manual/v12.0.0/project-structure.mdx | 2 ++ pages/docs/manual/v12.0.0/promise.mdx | 2 ++ pages/docs/manual/v12.0.0/record.mdx | 2 ++ pages/docs/manual/v12.0.0/reserved-keywords.mdx | 2 ++ pages/docs/manual/v12.0.0/scoped-polymorphic-types.mdx | 2 ++ pages/docs/manual/v12.0.0/shared-data-types.mdx | 2 ++ pages/docs/manual/v12.0.0/tagged-templates.mdx | 2 ++ pages/docs/manual/v12.0.0/tuple.mdx | 2 ++ pages/docs/manual/v12.0.0/type.mdx | 2 ++ pages/docs/manual/v12.0.0/typescript-integration.mdx | 2 ++ pages/docs/manual/v12.0.0/use-illegal-identifier-names.mdx | 2 ++ pages/docs/manual/v12.0.0/variant.mdx | 2 ++ pages/docs/manual/v12.0.0/warning-numbers.mdx | 2 ++ public/llms/manual/template.mdx | 2 ++ 62 files changed, 124 insertions(+) diff --git a/pages/docs/manual/v12.0.0/array-and-list.mdx b/pages/docs/manual/v12.0.0/array-and-list.mdx index bfcc07a2b..f14e8ad25 100644 --- a/pages/docs/manual/v12.0.0/array-and-list.mdx +++ b/pages/docs/manual/v12.0.0/array-and-list.mdx @@ -2,6 +2,8 @@ title: "Array & List" description: "Arrays and List data structures" canonical: "/docs/manual/v12.0.0/array-and-list" +section: "Language Features" +order: 12 --- # Array and List diff --git a/pages/docs/manual/v12.0.0/async-await.mdx b/pages/docs/manual/v12.0.0/async-await.mdx index b0a3b1eb4..f1510e4c7 100644 --- a/pages/docs/manual/v12.0.0/async-await.mdx +++ b/pages/docs/manual/v12.0.0/async-await.mdx @@ -2,6 +2,8 @@ title: "Async / Await" description: "Async / await for asynchronous operations" canonical: "/docs/manual/v12.0.0/async-await" +section: "Language Features" +order: 22 --- diff --git a/pages/docs/manual/v12.0.0/attribute.mdx b/pages/docs/manual/v12.0.0/attribute.mdx index 3a11f007d..e3056a689 100644 --- a/pages/docs/manual/v12.0.0/attribute.mdx +++ b/pages/docs/manual/v12.0.0/attribute.mdx @@ -2,6 +2,8 @@ title: "Attribute (Decorator)" description: "Annotations in ReScript" canonical: "/docs/manual/v12.0.0/attribute" +section: "Language Features" +order: 26 --- # Attribute (Decorator) diff --git a/pages/docs/manual/v12.0.0/bind-to-global-js-values.mdx b/pages/docs/manual/v12.0.0/bind-to-global-js-values.mdx index a13e2bd44..9154d8e59 100644 --- a/pages/docs/manual/v12.0.0/bind-to-global-js-values.mdx +++ b/pages/docs/manual/v12.0.0/bind-to-global-js-values.mdx @@ -2,6 +2,8 @@ title: "Bind to Global JS Values" description: "JS interop with global JS values in ReScript" canonical: "/docs/manual/v12.0.0/bind-to-global-js-values" +section: "JavaScript Interop" +order: 8 --- # Bind to Global JS Values diff --git a/pages/docs/manual/v12.0.0/bind-to-js-function.mdx b/pages/docs/manual/v12.0.0/bind-to-js-function.mdx index 2d83189f1..c5b6152cc 100644 --- a/pages/docs/manual/v12.0.0/bind-to-js-function.mdx +++ b/pages/docs/manual/v12.0.0/bind-to-js-function.mdx @@ -2,6 +2,8 @@ title: "Bind to JS Function" description: "JS interop with functions in ReScript" canonical: "/docs/manual/v12.0.0/bind-to-js-function" +section: "JavaScript Interop" +order: 6 --- # Function diff --git a/pages/docs/manual/v12.0.0/bind-to-js-object.mdx b/pages/docs/manual/v12.0.0/bind-to-js-object.mdx index f6d5df135..eafa38f74 100644 --- a/pages/docs/manual/v12.0.0/bind-to-js-object.mdx +++ b/pages/docs/manual/v12.0.0/bind-to-js-object.mdx @@ -2,6 +2,8 @@ title: "Bind to JS Object" description: "Interop with JS objects in ReScript" canonical: "/docs/manual/v12.0.0/bind-to-js-object" +section: "JavaScript Interop" +order: 5 --- # Bind to JS Object diff --git a/pages/docs/manual/v12.0.0/browser-support-polyfills.mdx b/pages/docs/manual/v12.0.0/browser-support-polyfills.mdx index dbdeeeed7..ce21cd28c 100644 --- a/pages/docs/manual/v12.0.0/browser-support-polyfills.mdx +++ b/pages/docs/manual/v12.0.0/browser-support-polyfills.mdx @@ -2,6 +2,8 @@ title: "Browser Support & Polyfills" description: "Note on browser support in ReScript" canonical: "/docs/manual/v12.0.0/browser-support-polyfills" +section: "JavaScript Interop" +order: 13 --- # Browser Support & Polyfills diff --git a/pages/docs/manual/v12.0.0/build-configuration-schema.mdx b/pages/docs/manual/v12.0.0/build-configuration-schema.mdx index c4484b9a7..76cb32eb1 100644 --- a/pages/docs/manual/v12.0.0/build-configuration-schema.mdx +++ b/pages/docs/manual/v12.0.0/build-configuration-schema.mdx @@ -3,6 +3,8 @@ title: "Configuration Schema" metaTitle: "Build System Configuration Schema" description: "Schema exploration widget for the ReScript configuration file" canonical: "/docs/manual/v12.0.0/build-configuration-schema" +section: "Build System" +order: 3 --- import dynamic from "next/dynamic"; diff --git a/pages/docs/manual/v12.0.0/build-configuration.mdx b/pages/docs/manual/v12.0.0/build-configuration.mdx index d7c7dfaa6..912b7bc9e 100644 --- a/pages/docs/manual/v12.0.0/build-configuration.mdx +++ b/pages/docs/manual/v12.0.0/build-configuration.mdx @@ -3,6 +3,8 @@ title: "Configuration" metaTitle: "Build System Configuration" description: "Details about the configuration of the ReScript build system (rescript.json)" canonical: "/docs/manual/v12.0.0/build-configuration" +section: "Build System" +order: 2 --- # Configuration diff --git a/pages/docs/manual/v12.0.0/build-external-stdlib.mdx b/pages/docs/manual/v12.0.0/build-external-stdlib.mdx index 50e98c884..afcb466c8 100644 --- a/pages/docs/manual/v12.0.0/build-external-stdlib.mdx +++ b/pages/docs/manual/v12.0.0/build-external-stdlib.mdx @@ -3,6 +3,8 @@ title: "External Stdlib" metaTitle: "External Stdlib" description: "Configuring an external ReScript stdlib package" canonical: "/docs/manual/v12.0.0/build-external-stdlib" +section: "Build System" +order: 4 --- # External Stdlib diff --git a/pages/docs/manual/v12.0.0/build-overview.mdx b/pages/docs/manual/v12.0.0/build-overview.mdx index e2a739220..cabc5256a 100644 --- a/pages/docs/manual/v12.0.0/build-overview.mdx +++ b/pages/docs/manual/v12.0.0/build-overview.mdx @@ -3,6 +3,8 @@ title: "Overview" metaTitle: "Build System Overview" description: "Documentation about the ReScript build system and its toolchain" canonical: "/docs/manual/v12.0.0/build-overview" +section: "Build System" +order: 1 --- # Build System Overview diff --git a/pages/docs/manual/v12.0.0/build-performance.mdx b/pages/docs/manual/v12.0.0/build-performance.mdx index 7f358f548..d1674b736 100644 --- a/pages/docs/manual/v12.0.0/build-performance.mdx +++ b/pages/docs/manual/v12.0.0/build-performance.mdx @@ -3,6 +3,8 @@ title: "Performance" metaTitle: "Build Performance" description: "ReScript build performance and measuring tools" canonical: "/docs/manual/v12.0.0/build-performance" +section: "Build System" +order: 7 --- # Build Performance diff --git a/pages/docs/manual/v12.0.0/build-pinned-dependencies.mdx b/pages/docs/manual/v12.0.0/build-pinned-dependencies.mdx index 405ac7f7c..c34130e09 100644 --- a/pages/docs/manual/v12.0.0/build-pinned-dependencies.mdx +++ b/pages/docs/manual/v12.0.0/build-pinned-dependencies.mdx @@ -3,6 +3,8 @@ title: "Pinned Dependencies" metaTitle: "Pinned Dependencies" description: "Handling multiple packages within one ReScript project with pinned dependencies" canonical: "/docs/manual/v12.0.0/build-pinned-dependencies" +section: "Build System" +order: 5 --- # Pinned Dependencies diff --git a/pages/docs/manual/v12.0.0/control-flow.mdx b/pages/docs/manual/v12.0.0/control-flow.mdx index ac7248ab8..b25cd4f04 100644 --- a/pages/docs/manual/v12.0.0/control-flow.mdx +++ b/pages/docs/manual/v12.0.0/control-flow.mdx @@ -2,6 +2,8 @@ title: "If-Else & Loops" description: "If, else, ternary, for, and while" canonical: "/docs/manual/v12.0.0/control-flow" +section: "Language Features" +order: 14 --- # If-Else & Loops diff --git a/pages/docs/manual/v12.0.0/converting-from-js.mdx b/pages/docs/manual/v12.0.0/converting-from-js.mdx index 56bf51e6f..190da5ae0 100644 --- a/pages/docs/manual/v12.0.0/converting-from-js.mdx +++ b/pages/docs/manual/v12.0.0/converting-from-js.mdx @@ -2,6 +2,8 @@ title: "Converting from JS" description: "How to convert to ReScript with an existing JS codebase" canonical: "/docs/manual/v12.0.0/converting-from-js" +section: "Guides" +order: 1 --- # Converting from JS diff --git a/pages/docs/manual/v12.0.0/dict.mdx b/pages/docs/manual/v12.0.0/dict.mdx index 110461383..30df94528 100644 --- a/pages/docs/manual/v12.0.0/dict.mdx +++ b/pages/docs/manual/v12.0.0/dict.mdx @@ -2,6 +2,8 @@ title: "Dictionary" description: "Dictionary data structure in ReScript" canonical: "/docs/manual/v12.0.0/dict" +section: "Language Features" +order: 8 --- # Dictionary diff --git a/pages/docs/manual/v12.0.0/editor-code-analysis.mdx b/pages/docs/manual/v12.0.0/editor-code-analysis.mdx index b2aa4f457..acbcac463 100644 --- a/pages/docs/manual/v12.0.0/editor-code-analysis.mdx +++ b/pages/docs/manual/v12.0.0/editor-code-analysis.mdx @@ -3,6 +3,8 @@ title: "Dead Code Analysis in ReScript" metaTitle: "Dead Code Analysis in ReScript" description: "Documentation about ReScript editor plugins and code analysis" canonical: "/docs/manual/v12.0.0/editor-plugins" +section: "Guides" +order: 2 --- # Dead Code Analysis in ReScript diff --git a/pages/docs/manual/v12.0.0/editor-plugins.mdx b/pages/docs/manual/v12.0.0/editor-plugins.mdx index 67ac92697..f475259bb 100644 --- a/pages/docs/manual/v12.0.0/editor-plugins.mdx +++ b/pages/docs/manual/v12.0.0/editor-plugins.mdx @@ -3,6 +3,8 @@ title: "Editor" metaTitle: "Editor" description: "Documentation about ReScript editor plugins and code analysis" canonical: "/docs/manual/v12.0.0/editor-plugins" +section: "Overview" +order: 3 --- # Editor diff --git a/pages/docs/manual/v12.0.0/embed-raw-javascript.mdx b/pages/docs/manual/v12.0.0/embed-raw-javascript.mdx index fb81f44e0..68ebe09ef 100644 --- a/pages/docs/manual/v12.0.0/embed-raw-javascript.mdx +++ b/pages/docs/manual/v12.0.0/embed-raw-javascript.mdx @@ -2,6 +2,8 @@ title: "Embed Raw JavaScript" description: "Utility syntax to for raw JS usage in ReScript" canonical: "/docs/manual/v12.0.0/embed-raw-javascript" +section: "JavaScript Interop" +order: 2 --- # Embed Raw JavaScript diff --git a/pages/docs/manual/v12.0.0/equality-comparison.mdx b/pages/docs/manual/v12.0.0/equality-comparison.mdx index f932f9fda..51af2d86c 100644 --- a/pages/docs/manual/v12.0.0/equality-comparison.mdx +++ b/pages/docs/manual/v12.0.0/equality-comparison.mdx @@ -2,6 +2,8 @@ title: "Equality and Comparison" description: "Handling equality and comparison checks" canonical: "/docs/manual/v12.0.0/equality-comparison" +section: "Language Features" +order: 28 --- # Equality and Comparison diff --git a/pages/docs/manual/v12.0.0/exception.mdx b/pages/docs/manual/v12.0.0/exception.mdx index 38f277677..7fe02cdd5 100644 --- a/pages/docs/manual/v12.0.0/exception.mdx +++ b/pages/docs/manual/v12.0.0/exception.mdx @@ -2,6 +2,8 @@ title: "Exception" description: "Exceptions and exception handling in ReScript" canonical: "/docs/manual/v12.0.0/exception" +section: "Language Features" +order: 19 --- # Exception diff --git a/pages/docs/manual/v12.0.0/extensible-variant.mdx b/pages/docs/manual/v12.0.0/extensible-variant.mdx index 7e7b0f2fb..e9613d8ef 100644 --- a/pages/docs/manual/v12.0.0/extensible-variant.mdx +++ b/pages/docs/manual/v12.0.0/extensible-variant.mdx @@ -2,6 +2,8 @@ title: "Extensible Variant" description: "Extensible Variants in ReScript" canonical: "/docs/manual/v12.0.0/extensible-variant" +section: "Advanced Features" +order: 1 --- # Extensible Variant diff --git a/pages/docs/manual/v12.0.0/external.mdx b/pages/docs/manual/v12.0.0/external.mdx index 7ce926d65..bf8b78de0 100644 --- a/pages/docs/manual/v12.0.0/external.mdx +++ b/pages/docs/manual/v12.0.0/external.mdx @@ -2,6 +2,8 @@ title: "External (Bind to Any JS Library)" description: "The external keyword" canonical: "/docs/manual/v12.0.0/external" +section: "JavaScript Interop" +order: 3 --- # External (Bind to Any JS Library) diff --git a/pages/docs/manual/v12.0.0/function.mdx b/pages/docs/manual/v12.0.0/function.mdx index 4adf3a2d7..d1bdeb09b 100644 --- a/pages/docs/manual/v12.0.0/function.mdx +++ b/pages/docs/manual/v12.0.0/function.mdx @@ -2,6 +2,8 @@ title: "Function" description: "Function syntax in ReScript" canonical: "/docs/manual/v12.0.0/function" +section: "Language Features" +order: 13 --- # Function diff --git a/pages/docs/manual/v12.0.0/generalized-algebraic-data-types.mdx b/pages/docs/manual/v12.0.0/generalized-algebraic-data-types.mdx index efa58a3d1..ed91abf8d 100644 --- a/pages/docs/manual/v12.0.0/generalized-algebraic-data-types.mdx +++ b/pages/docs/manual/v12.0.0/generalized-algebraic-data-types.mdx @@ -2,6 +2,8 @@ title: "Generalized Algebraic Data Types" description: "Generalized Algebraic Data Types in ReScript" canonical: "/docs/manual/v12.0.0/generalized-algebraic-data-types" +section: "Advanced Features" +order: 4 --- # Generalized Algebraic Data Types diff --git a/pages/docs/manual/v12.0.0/generate-converters-accessors.mdx b/pages/docs/manual/v12.0.0/generate-converters-accessors.mdx index 18f4f865d..6ceb2bb5a 100644 --- a/pages/docs/manual/v12.0.0/generate-converters-accessors.mdx +++ b/pages/docs/manual/v12.0.0/generate-converters-accessors.mdx @@ -2,6 +2,8 @@ title: "Generate Converters & Helpers" description: "All about the @deriving decorator, and how to generate code from types" canonical: "/docs/manual/v12.0.0/generate-converters-accessors" +section: "JavaScript Interop" +order: 12 --- # Generate Converters & Helpers diff --git a/pages/docs/manual/v12.0.0/import-export.mdx b/pages/docs/manual/v12.0.0/import-export.mdx index b913fec82..9d4f80251 100644 --- a/pages/docs/manual/v12.0.0/import-export.mdx +++ b/pages/docs/manual/v12.0.0/import-export.mdx @@ -2,6 +2,8 @@ title: "Import & Export" description: "Importing / exporting in ReScript modules" canonical: "/docs/manual/v12.0.0/import-export" +section: "Language Features" +order: 25 --- # Import & Export diff --git a/pages/docs/manual/v12.0.0/import-from-export-to-js.mdx b/pages/docs/manual/v12.0.0/import-from-export-to-js.mdx index 0f547f797..c78d8f48c 100644 --- a/pages/docs/manual/v12.0.0/import-from-export-to-js.mdx +++ b/pages/docs/manual/v12.0.0/import-from-export-to-js.mdx @@ -2,6 +2,8 @@ title: "Import from / Export to JS" description: "Importing / exporting JS module content in ReScript" canonical: "/docs/manual/v12.0.0/import-from-export-to-js" +section: "JavaScript Interop" +order: 7 --- # Import from/Export to JS diff --git a/pages/docs/manual/v12.0.0/inlining-constants.mdx b/pages/docs/manual/v12.0.0/inlining-constants.mdx index 1c321c02b..e557413b8 100644 --- a/pages/docs/manual/v12.0.0/inlining-constants.mdx +++ b/pages/docs/manual/v12.0.0/inlining-constants.mdx @@ -2,6 +2,8 @@ title: "Inlining Constants" description: "Inlining constants" canonical: "/docs/manual/v12.0.0/inlining-constants" +section: "JavaScript Interop" +order: 10 --- # Inlining Constants diff --git a/pages/docs/manual/v12.0.0/installation.mdx b/pages/docs/manual/v12.0.0/installation.mdx index bad0c1aef..b9cac0c5e 100644 --- a/pages/docs/manual/v12.0.0/installation.mdx +++ b/pages/docs/manual/v12.0.0/installation.mdx @@ -2,6 +2,8 @@ title: "Installation" description: "ReScript installation and setup instructions" canonical: "/docs/manual/v12.0.0/installation" +section: "Overview" +order: 2 --- # Installation diff --git a/pages/docs/manual/v12.0.0/interop-cheatsheet.mdx b/pages/docs/manual/v12.0.0/interop-cheatsheet.mdx index f8e57ae6a..efb655bbf 100644 --- a/pages/docs/manual/v12.0.0/interop-cheatsheet.mdx +++ b/pages/docs/manual/v12.0.0/interop-cheatsheet.mdx @@ -2,6 +2,8 @@ title: "Interop Cheatsheet" description: "Cheatsheet for various interop scenarios in ReScript" canonical: "/docs/manual/v12.0.0/interop-cheatsheet" +section: "JavaScript Interop" +order: 1 --- # Interop Cheatsheet diff --git a/pages/docs/manual/v12.0.0/interop-with-js-build-systems.mdx b/pages/docs/manual/v12.0.0/interop-with-js-build-systems.mdx index 9021275a4..adfa439f9 100644 --- a/pages/docs/manual/v12.0.0/interop-with-js-build-systems.mdx +++ b/pages/docs/manual/v12.0.0/interop-with-js-build-systems.mdx @@ -2,6 +2,8 @@ title: "Interop with JS Build Systems" description: "Documentation on how to interact with existing JS build systems" canonical: "/docs/manual/v12.0.0/interop-with-js-build-systems" +section: "Build System" +order: 6 --- # Interop with JS Build Systems diff --git a/pages/docs/manual/v12.0.0/introduction.mdx b/pages/docs/manual/v12.0.0/introduction.mdx index 62e314cc9..202e35e67 100644 --- a/pages/docs/manual/v12.0.0/introduction.mdx +++ b/pages/docs/manual/v12.0.0/introduction.mdx @@ -2,6 +2,8 @@ title: "Introduction" description: "Introduction to the ReScript programming language" canonical: "/docs/manual/v12.0.0/introduction" +section: "Overview" +order: 1 --- # ReScript diff --git a/pages/docs/manual/v12.0.0/json.mdx b/pages/docs/manual/v12.0.0/json.mdx index c24f3eb5c..5a7e59ba2 100644 --- a/pages/docs/manual/v12.0.0/json.mdx +++ b/pages/docs/manual/v12.0.0/json.mdx @@ -2,6 +2,8 @@ title: "JSON" description: "Interacting with JSON in ReScript" canonical: "/docs/manual/v12.0.0/json" +section: "JavaScript Interop" +order: 9 --- # JSON diff --git a/pages/docs/manual/v12.0.0/jsx.mdx b/pages/docs/manual/v12.0.0/jsx.mdx index d01d60e19..8773c9ce1 100644 --- a/pages/docs/manual/v12.0.0/jsx.mdx +++ b/pages/docs/manual/v12.0.0/jsx.mdx @@ -2,6 +2,8 @@ title: "JSX" description: "JSX syntax in ReScript and React" canonical: "/docs/manual/v12.0.0/jsx" +section: "Language Features" +order: 18 --- # JSX diff --git a/pages/docs/manual/v12.0.0/lazy-values.mdx b/pages/docs/manual/v12.0.0/lazy-values.mdx index 86e4e698c..25bdd8d08 100644 --- a/pages/docs/manual/v12.0.0/lazy-values.mdx +++ b/pages/docs/manual/v12.0.0/lazy-values.mdx @@ -2,6 +2,8 @@ title: "Lazy Value" description: "Data type for deferred computation in ReScript" canonical: "/docs/manual/v12.0.0/lazy-values" +section: "Language Features" +order: 20 --- # Lazy Value diff --git a/pages/docs/manual/v12.0.0/let-binding.mdx b/pages/docs/manual/v12.0.0/let-binding.mdx index ae6329cf8..bf2b05e5e 100644 --- a/pages/docs/manual/v12.0.0/let-binding.mdx +++ b/pages/docs/manual/v12.0.0/let-binding.mdx @@ -2,6 +2,8 @@ title: "Let Binding" description: "Let binding syntax for binding to values in ReScript" canonical: "/docs/manual/v12.0.0/let-binding" +section: "Language Features" +order: 2 --- # Let Binding diff --git a/pages/docs/manual/v12.0.0/libraries.mdx b/pages/docs/manual/v12.0.0/libraries.mdx index 54f3ce735..1d70a3cf5 100644 --- a/pages/docs/manual/v12.0.0/libraries.mdx +++ b/pages/docs/manual/v12.0.0/libraries.mdx @@ -2,6 +2,8 @@ title: "Libraries & Publishing" description: "Install & publish ReScript packages" canonical: "/docs/manual/v12.0.0/libraries" +section: "JavaScript Interop" +order: 14 --- # Libraries & Publishing diff --git a/pages/docs/manual/v12.0.0/module-functions.mdx b/pages/docs/manual/v12.0.0/module-functions.mdx index 8f84161cd..e1e1029df 100644 --- a/pages/docs/manual/v12.0.0/module-functions.mdx +++ b/pages/docs/manual/v12.0.0/module-functions.mdx @@ -2,6 +2,8 @@ title: "Module Functions" description: "Module Functions in ReScript" canonical: "/docs/manual/v12.0.0/module-functions" +section: "Advanced Features" +order: 3 --- # Module Functions diff --git a/pages/docs/manual/v12.0.0/module.mdx b/pages/docs/manual/v12.0.0/module.mdx index e1e84c4f1..e2f597dbd 100644 --- a/pages/docs/manual/v12.0.0/module.mdx +++ b/pages/docs/manual/v12.0.0/module.mdx @@ -2,6 +2,8 @@ title: "Module" description: "ReScript modules, module signatures and interface files" canonical: "/docs/manual/v12.0.0/module" +section: "Language Features" +order: 24 --- # Module diff --git a/pages/docs/manual/v12.0.0/mutation.mdx b/pages/docs/manual/v12.0.0/mutation.mdx index ba31f7a82..c0358104c 100644 --- a/pages/docs/manual/v12.0.0/mutation.mdx +++ b/pages/docs/manual/v12.0.0/mutation.mdx @@ -2,6 +2,8 @@ title: "Mutation" description: "Imperative and mutative programming capabilities in ReScript" canonical: "/docs/manual/v12.0.0/mutation" +section: "Language Features" +order: 17 --- # Mutation diff --git a/pages/docs/manual/v12.0.0/null-undefined-option.mdx b/pages/docs/manual/v12.0.0/null-undefined-option.mdx index b14e586ad..b381ecc0a 100644 --- a/pages/docs/manual/v12.0.0/null-undefined-option.mdx +++ b/pages/docs/manual/v12.0.0/null-undefined-option.mdx @@ -2,6 +2,8 @@ title: "Null, Undefined and Option" description: "JS interop with nullable and optional values in ReScript" canonical: "/docs/manual/v12.0.0/null-undefined-option" +section: "Language Features" +order: 11 --- # Null, Undefined and Option diff --git a/pages/docs/manual/v12.0.0/object.mdx b/pages/docs/manual/v12.0.0/object.mdx index e353859e7..90ff0b422 100644 --- a/pages/docs/manual/v12.0.0/object.mdx +++ b/pages/docs/manual/v12.0.0/object.mdx @@ -2,6 +2,8 @@ title: "Object" description: "Interoping with JS objects in ReScript" canonical: "/docs/manual/v12.0.0/object" +section: "Language Features" +order: 7 --- # Object diff --git a/pages/docs/manual/v12.0.0/overview.mdx b/pages/docs/manual/v12.0.0/overview.mdx index 19ea5548d..a9459aa02 100644 --- a/pages/docs/manual/v12.0.0/overview.mdx +++ b/pages/docs/manual/v12.0.0/overview.mdx @@ -3,6 +3,8 @@ title: "Overview" metaTitle: "Language Features Overview" description: "A quick overview on ReScript's syntax" canonical: "/docs/manual/v12.0.0/overview" +section: "Language Features" +order: 1 --- # Overview diff --git a/pages/docs/manual/v12.0.0/pattern-matching-destructuring.mdx b/pages/docs/manual/v12.0.0/pattern-matching-destructuring.mdx index 34cb69240..dc7fc7b1a 100644 --- a/pages/docs/manual/v12.0.0/pattern-matching-destructuring.mdx +++ b/pages/docs/manual/v12.0.0/pattern-matching-destructuring.mdx @@ -2,6 +2,8 @@ title: "Pattern Matching / Destructuring" description: "Pattern matching and destructuring complex data structures in ReScript" canonical: "/docs/manual/v12.0.0/pattern-matching-destructuring" +section: "Language Features" +order: 16 --- # Pattern Matching / Destructuring diff --git a/pages/docs/manual/v12.0.0/pipe.mdx b/pages/docs/manual/v12.0.0/pipe.mdx index ce08a693a..03713c844 100644 --- a/pages/docs/manual/v12.0.0/pipe.mdx +++ b/pages/docs/manual/v12.0.0/pipe.mdx @@ -2,6 +2,8 @@ title: "Pipe" description: "The Pipe operator (->)" canonical: "/docs/manual/v12.0.0/pipe" +section: "Language Features" +order: 15 --- # Pipe diff --git a/pages/docs/manual/v12.0.0/polymorphic-variant.mdx b/pages/docs/manual/v12.0.0/polymorphic-variant.mdx index 9396813a2..3b03940d5 100644 --- a/pages/docs/manual/v12.0.0/polymorphic-variant.mdx +++ b/pages/docs/manual/v12.0.0/polymorphic-variant.mdx @@ -2,6 +2,8 @@ title: "Polymorphic Variant" description: "The Polymorphic Variant data structure in ReScript" canonical: "/docs/manual/v12.0.0/polymorphic-variant" +section: "Language Features" +order: 10 --- # Polymorphic Variant diff --git a/pages/docs/manual/v12.0.0/primitive-types.mdx b/pages/docs/manual/v12.0.0/primitive-types.mdx index 0ef927e75..8a9257d2e 100644 --- a/pages/docs/manual/v12.0.0/primitive-types.mdx +++ b/pages/docs/manual/v12.0.0/primitive-types.mdx @@ -2,6 +2,8 @@ title: "Primitive Types" description: "Primitive Data Types in ReScript" canonical: "/docs/manual/v12.0.0/primitive-types" +section: "Language Features" +order: 4 --- # Primitive Types diff --git a/pages/docs/manual/v12.0.0/project-structure.mdx b/pages/docs/manual/v12.0.0/project-structure.mdx index 82235ef99..242ee51cd 100644 --- a/pages/docs/manual/v12.0.0/project-structure.mdx +++ b/pages/docs/manual/v12.0.0/project-structure.mdx @@ -2,6 +2,8 @@ title: "Project Structure" description: "Notes on project structure and other rough ReScript guidelines" canonical: "/docs/manual/v12.0.0/project-structure" +section: "Guides" +order: 3 --- # Project Structure diff --git a/pages/docs/manual/v12.0.0/promise.mdx b/pages/docs/manual/v12.0.0/promise.mdx index b269289c8..b0bfd29ef 100644 --- a/pages/docs/manual/v12.0.0/promise.mdx +++ b/pages/docs/manual/v12.0.0/promise.mdx @@ -2,6 +2,8 @@ title: "Promises" description: "JS Promise handling in ReScript" canonical: "/docs/manual/v12.0.0/promise" +section: "Language Features" +order: 21 --- # Promise diff --git a/pages/docs/manual/v12.0.0/record.mdx b/pages/docs/manual/v12.0.0/record.mdx index 8601daa23..0965c6bfc 100644 --- a/pages/docs/manual/v12.0.0/record.mdx +++ b/pages/docs/manual/v12.0.0/record.mdx @@ -2,6 +2,8 @@ title: "Record" description: "Record types in ReScript" canonical: "/docs/manual/v12.0.0/record" +section: "Language Features" +order: 6 --- # Record diff --git a/pages/docs/manual/v12.0.0/reserved-keywords.mdx b/pages/docs/manual/v12.0.0/reserved-keywords.mdx index 3d5295cac..d9e2dc3cf 100644 --- a/pages/docs/manual/v12.0.0/reserved-keywords.mdx +++ b/pages/docs/manual/v12.0.0/reserved-keywords.mdx @@ -2,6 +2,8 @@ title: "Reserved Keywords" description: "All reserved keywords in ReScript" canonical: "/docs/manual/v12.0.0/reserved-keywords" +section: "Language Features" +order: 27 --- # Reserved Keywords diff --git a/pages/docs/manual/v12.0.0/scoped-polymorphic-types.mdx b/pages/docs/manual/v12.0.0/scoped-polymorphic-types.mdx index 80ce25351..f20f332df 100644 --- a/pages/docs/manual/v12.0.0/scoped-polymorphic-types.mdx +++ b/pages/docs/manual/v12.0.0/scoped-polymorphic-types.mdx @@ -2,6 +2,8 @@ title: "Scoped Polymorphic Types" description: "Scoped Polymorphic Types in ReScript" canonical: "/docs/manual/v12.0.0/scoped-polymorphic-types" +section: "Advanced Features" +order: 2 --- # Scoped Polymorphic Types diff --git a/pages/docs/manual/v12.0.0/shared-data-types.mdx b/pages/docs/manual/v12.0.0/shared-data-types.mdx index a97914157..ea2c3adbe 100644 --- a/pages/docs/manual/v12.0.0/shared-data-types.mdx +++ b/pages/docs/manual/v12.0.0/shared-data-types.mdx @@ -2,6 +2,8 @@ title: "Shared Data Types" description: "Data types that share runtime presentation between JS and ReScript" canonical: "/docs/manual/v12.0.0/shared-data-types" +section: "JavaScript Interop" +order: 2 --- # Shared Data Types diff --git a/pages/docs/manual/v12.0.0/tagged-templates.mdx b/pages/docs/manual/v12.0.0/tagged-templates.mdx index 928f36b03..3ecbd9c5f 100644 --- a/pages/docs/manual/v12.0.0/tagged-templates.mdx +++ b/pages/docs/manual/v12.0.0/tagged-templates.mdx @@ -2,6 +2,8 @@ title: "Tagged templates" description: "Using tagged templates in ReScript" canonical: "/docs/manual/v12.0.0/tagged-templates" +section: "Language Features" +order: 23 --- # Tagged templates diff --git a/pages/docs/manual/v12.0.0/tuple.mdx b/pages/docs/manual/v12.0.0/tuple.mdx index 086a3846b..8be179b57 100644 --- a/pages/docs/manual/v12.0.0/tuple.mdx +++ b/pages/docs/manual/v12.0.0/tuple.mdx @@ -2,6 +2,8 @@ title: "Tuple" description: "Tuple types and values in ReScript" canonical: "/docs/manual/v12.0.0/tuple" +section: "Language Features" +order: 5 --- # Tuple diff --git a/pages/docs/manual/v12.0.0/type.mdx b/pages/docs/manual/v12.0.0/type.mdx index c352c2fdd..6e8328269 100644 --- a/pages/docs/manual/v12.0.0/type.mdx +++ b/pages/docs/manual/v12.0.0/type.mdx @@ -2,6 +2,8 @@ title: "Type" description: "Types and type definitions in ReScript" canonical: "/docs/manual/v12.0.0/type" +section: "Language Features" +order: 3 --- # Type diff --git a/pages/docs/manual/v12.0.0/typescript-integration.mdx b/pages/docs/manual/v12.0.0/typescript-integration.mdx index 152992784..bfed28ff8 100644 --- a/pages/docs/manual/v12.0.0/typescript-integration.mdx +++ b/pages/docs/manual/v12.0.0/typescript-integration.mdx @@ -2,6 +2,8 @@ title: "TypeScript" description: "GenType - Interoperability between ReScript and TypeScript" canonical: "/docs/manual/v12.0.0/typescript-integration" +section: "JavaScript Interop" +order: 15 --- # ReScript & TypeScript diff --git a/pages/docs/manual/v12.0.0/use-illegal-identifier-names.mdx b/pages/docs/manual/v12.0.0/use-illegal-identifier-names.mdx index 4933cbed0..1bae9fc40 100644 --- a/pages/docs/manual/v12.0.0/use-illegal-identifier-names.mdx +++ b/pages/docs/manual/v12.0.0/use-illegal-identifier-names.mdx @@ -2,6 +2,8 @@ title: "Use Illegal Identifier Names" description: "Handling (JS) naming collisions in ReScript" canonical: "/docs/manual/v12.0.0/use-illegal-identifier-names" +section: "JavaScript Interop" +order: 11 --- # Use Illegal Identifier Names diff --git a/pages/docs/manual/v12.0.0/variant.mdx b/pages/docs/manual/v12.0.0/variant.mdx index 6727a0ea2..73375c624 100644 --- a/pages/docs/manual/v12.0.0/variant.mdx +++ b/pages/docs/manual/v12.0.0/variant.mdx @@ -2,6 +2,8 @@ title: "Variant" description: "Variant data structures in ReScript" canonical: "/docs/manual/v12.0.0/variant" +section: "Language Features" +order: 9 --- # Variant diff --git a/pages/docs/manual/v12.0.0/warning-numbers.mdx b/pages/docs/manual/v12.0.0/warning-numbers.mdx index 1b5f37eaf..500e5af97 100644 --- a/pages/docs/manual/v12.0.0/warning-numbers.mdx +++ b/pages/docs/manual/v12.0.0/warning-numbers.mdx @@ -2,6 +2,8 @@ title: "Warning Numbers" description: "Available compiler warning numbers in ReScript" canonical: "/docs/manual/v12.0.0/warning-numbers" +section: "Build System" +order: 8 --- import { make as WarningTable } from "src/components/WarningTable.mjs"; diff --git a/public/llms/manual/template.mdx b/public/llms/manual/template.mdx index 975c1a8c3..99ab92e95 100644 --- a/public/llms/manual/template.mdx +++ b/public/llms/manual/template.mdx @@ -2,6 +2,8 @@ title: "LLMs" description: "Documentation for LLMs" canonical: "/docs/manual//llms" +section: "Overview" +order: 4 --- # Documentation for LLMs From 24c9fdc17adb2b9f5e0fb88dc4b7e08693041083 Mon Sep 17 00:00:00 2001 From: Josh Derocher-Vlk Date: Sun, 28 Sep 2025 16:14:28 -0400 Subject: [PATCH 2/2] add react --- pages/docs/react/latest/arrays-and-keys.mdx | 2 ++ pages/docs/react/latest/beyond-jsx.mdx | 2 ++ pages/docs/react/latest/components-and-props.mdx | 2 ++ pages/docs/react/latest/context.mdx | 2 ++ pages/docs/react/latest/elements-and-jsx.mdx | 2 ++ pages/docs/react/latest/events.mdx | 2 ++ pages/docs/react/latest/extensions-of-props.mdx | 2 ++ pages/docs/react/latest/forwarding-refs.mdx | 2 ++ pages/docs/react/latest/hooks-context.mdx | 2 ++ pages/docs/react/latest/hooks-custom.mdx | 2 ++ pages/docs/react/latest/hooks-effect.mdx | 2 ++ pages/docs/react/latest/hooks-overview.mdx | 2 ++ pages/docs/react/latest/hooks-reducer.mdx | 2 ++ pages/docs/react/latest/hooks-ref.mdx | 2 ++ pages/docs/react/latest/hooks-state.mdx | 2 ++ pages/docs/react/latest/import-export-reactjs.mdx | 2 ++ pages/docs/react/latest/installation.mdx | 2 ++ pages/docs/react/latest/introduction.mdx | 2 ++ pages/docs/react/latest/lazy-components.mdx | 2 ++ pages/docs/react/latest/memo.mdx | 2 ++ pages/docs/react/latest/migrate-react.mdx | 2 ++ pages/docs/react/latest/refs-and-the-dom.mdx | 2 ++ pages/docs/react/latest/rendering-elements.mdx | 2 ++ pages/docs/react/latest/router.mdx | 2 ++ pages/docs/react/latest/styling.mdx | 2 ++ 25 files changed, 50 insertions(+) diff --git a/pages/docs/react/latest/arrays-and-keys.mdx b/pages/docs/react/latest/arrays-and-keys.mdx index 6f27203fc..2fd89fe9c 100644 --- a/pages/docs/react/latest/arrays-and-keys.mdx +++ b/pages/docs/react/latest/arrays-and-keys.mdx @@ -2,6 +2,8 @@ title: Arrays and Keys description: "Rendering arrays and handling keys in ReScript and React" canonical: "/docs/react/latest/arrays-and-keys" +section: "Main Concepts" +order: 4 --- # Arrays and Keys diff --git a/pages/docs/react/latest/beyond-jsx.mdx b/pages/docs/react/latest/beyond-jsx.mdx index ee2afa0b9..6f02450de 100644 --- a/pages/docs/react/latest/beyond-jsx.mdx +++ b/pages/docs/react/latest/beyond-jsx.mdx @@ -2,6 +2,8 @@ title: Beyond JSX description: "Details on how to use ReScript and React without JSX" canonical: "/docs/react/latest/beyond-jsx" +section: "Guides" +order: 1 --- # Beyond JSX diff --git a/pages/docs/react/latest/components-and-props.mdx b/pages/docs/react/latest/components-and-props.mdx index 02b87ed12..b25b32331 100644 --- a/pages/docs/react/latest/components-and-props.mdx +++ b/pages/docs/react/latest/components-and-props.mdx @@ -2,6 +2,8 @@ title: Components and Props description: "Basic concepts for components and props in ReScript & React" canonical: "/docs/react/latest/components-and-props" +section: "Main Concepts" +order: 3 --- # Components and Props diff --git a/pages/docs/react/latest/context.mdx b/pages/docs/react/latest/context.mdx index cb41f5cde..aeacdf51c 100644 --- a/pages/docs/react/latest/context.mdx +++ b/pages/docs/react/latest/context.mdx @@ -2,6 +2,8 @@ title: Context description: "Details about Context in ReScript and React" canonical: "/docs/react/latest/context" +section: "Main Concepts" +order: 7 --- # Context diff --git a/pages/docs/react/latest/elements-and-jsx.mdx b/pages/docs/react/latest/elements-and-jsx.mdx index e2ed3472e..f77e79705 100644 --- a/pages/docs/react/latest/elements-and-jsx.mdx +++ b/pages/docs/react/latest/elements-and-jsx.mdx @@ -2,6 +2,8 @@ title: Elements & JSX description: "Basic concepts for React elements and how to use them in JSX" canonical: "/docs/react/latest/elements-and-jsx" +section: "Main Concepts" +order: 1 --- # Elements & JSX diff --git a/pages/docs/react/latest/events.mdx b/pages/docs/react/latest/events.mdx index de9fc930a..b1bb5e066 100644 --- a/pages/docs/react/latest/events.mdx +++ b/pages/docs/react/latest/events.mdx @@ -2,6 +2,8 @@ title: Events description: "Event handlers for React elements" canonical: "/docs/react/latest/events" +section: "Main Concepts" +order: 5 --- # Events diff --git a/pages/docs/react/latest/extensions-of-props.mdx b/pages/docs/react/latest/extensions-of-props.mdx index 12b7f6051..8196f7b89 100644 --- a/pages/docs/react/latest/extensions-of-props.mdx +++ b/pages/docs/react/latest/extensions-of-props.mdx @@ -2,6 +2,8 @@ title: Extensions of props description: "Extensions of props in ReScript and React" canonical: "/docs/react/latest/spread-props" +section: "Guides" +order: 3 --- # Extensions of Props diff --git a/pages/docs/react/latest/forwarding-refs.mdx b/pages/docs/react/latest/forwarding-refs.mdx index 9a481725c..63c7381fa 100644 --- a/pages/docs/react/latest/forwarding-refs.mdx +++ b/pages/docs/react/latest/forwarding-refs.mdx @@ -2,6 +2,8 @@ title: Forwarding Refs description: "Forwarding Ref values in ReScript and React" canonical: "/docs/react/latest/forwarding-refs" +section: "Guides" +order: 2 --- # Forwarding Refs diff --git a/pages/docs/react/latest/hooks-context.mdx b/pages/docs/react/latest/hooks-context.mdx index 69701dd9d..6a7aee213 100644 --- a/pages/docs/react/latest/hooks-context.mdx +++ b/pages/docs/react/latest/hooks-context.mdx @@ -2,6 +2,8 @@ title: useContext Hook description: "Details about the useContext React hook in ReScript" canonical: "/docs/react/latest/hooks-context" +section: "Hooks & State Management" +order: 5 --- # useContext diff --git a/pages/docs/react/latest/hooks-custom.mdx b/pages/docs/react/latest/hooks-custom.mdx index 98be46bec..d1805c4be 100644 --- a/pages/docs/react/latest/hooks-custom.mdx +++ b/pages/docs/react/latest/hooks-custom.mdx @@ -2,6 +2,8 @@ title: Build A Custom Hook description: "How to build your own hooks in ReScript & React" canonical: "/docs/react/latest/hooks-custom" +section: "Hooks & State Management" +order: 7 --- # Build A Custom Hook diff --git a/pages/docs/react/latest/hooks-effect.mdx b/pages/docs/react/latest/hooks-effect.mdx index a588427a9..3f752e5d2 100644 --- a/pages/docs/react/latest/hooks-effect.mdx +++ b/pages/docs/react/latest/hooks-effect.mdx @@ -2,6 +2,8 @@ title: useEffect Hook description: "Details about the useEffect React hook in ReScript" canonical: "/docs/react/latest/hooks-effect" +section: "Hooks & State Management" +order: 2 --- # useEffect diff --git a/pages/docs/react/latest/hooks-overview.mdx b/pages/docs/react/latest/hooks-overview.mdx index 39525cc7c..bfdc58317 100644 --- a/pages/docs/react/latest/hooks-overview.mdx +++ b/pages/docs/react/latest/hooks-overview.mdx @@ -2,6 +2,8 @@ title: Hooks & State Management Overview description: "Overview state management and hooks in ReScript and React" canonical: "/docs/react/latest/hooks-overview" +section: "Hooks & State Management" +order: 1 --- # Hooks Overview diff --git a/pages/docs/react/latest/hooks-reducer.mdx b/pages/docs/react/latest/hooks-reducer.mdx index 0fb6f05b4..77357d7cc 100644 --- a/pages/docs/react/latest/hooks-reducer.mdx +++ b/pages/docs/react/latest/hooks-reducer.mdx @@ -2,6 +2,8 @@ title: useReducer Hook description: "Details about the useReducer React hook in ReScript" canonical: "/docs/react/latest/hooks-reducer" +section: "Hooks & State Management" +order: 4 --- # useReducer diff --git a/pages/docs/react/latest/hooks-ref.mdx b/pages/docs/react/latest/hooks-ref.mdx index b32d36974..b9116f8bf 100644 --- a/pages/docs/react/latest/hooks-ref.mdx +++ b/pages/docs/react/latest/hooks-ref.mdx @@ -2,6 +2,8 @@ title: useRef Hook description: "Details about the useRef React hook in ReScript" canonical: "/docs/react/latest/hooks-ref" +section: "Hooks & State Management" +order: 6 --- # useRef diff --git a/pages/docs/react/latest/hooks-state.mdx b/pages/docs/react/latest/hooks-state.mdx index fbbefbe53..1265d95a2 100644 --- a/pages/docs/react/latest/hooks-state.mdx +++ b/pages/docs/react/latest/hooks-state.mdx @@ -2,6 +2,8 @@ title: useState Hook description: "Details about the useState React hook in ReScript" canonical: "/docs/react/latest/hooks-state" +section: "Hooks & State Management" +order: 3 --- # useState diff --git a/pages/docs/react/latest/import-export-reactjs.mdx b/pages/docs/react/latest/import-export-reactjs.mdx index ceebc9f90..a8cd6c3a7 100644 --- a/pages/docs/react/latest/import-export-reactjs.mdx +++ b/pages/docs/react/latest/import-export-reactjs.mdx @@ -2,6 +2,8 @@ title: Import / Export ReactJS description: "Reusing existing React components" canonical: "/docs/react/latest/import-export-reactjs" +section: "Main Concepts" +order: 12 --- # Import / Export ReactJS diff --git a/pages/docs/react/latest/installation.mdx b/pages/docs/react/latest/installation.mdx index 13558c638..de7022e78 100644 --- a/pages/docs/react/latest/installation.mdx +++ b/pages/docs/react/latest/installation.mdx @@ -2,6 +2,8 @@ title: Installation description: "Installation and Setup" canonical: "/docs/react/latest/installation" +section: "Overview" +order: 2 --- # Installation diff --git a/pages/docs/react/latest/introduction.mdx b/pages/docs/react/latest/introduction.mdx index d5cd84265..5cf044196 100644 --- a/pages/docs/react/latest/introduction.mdx +++ b/pages/docs/react/latest/introduction.mdx @@ -2,6 +2,8 @@ title: Introduction description: "Introduction to ReScript & ReactJS" canonical: "/docs/react/latest/introduction" +section: "Overview" +order: 1 --- # ReScript & React diff --git a/pages/docs/react/latest/lazy-components.mdx b/pages/docs/react/latest/lazy-components.mdx index db9a0afb7..38d5ba6ec 100644 --- a/pages/docs/react/latest/lazy-components.mdx +++ b/pages/docs/react/latest/lazy-components.mdx @@ -2,6 +2,8 @@ title: Lazy Components description: "Details on how to use the React.lazy_ API to dynamically import components" canonical: "/docs/react/latest/lazy-components" +section: "Main Concepts" +order: 11 --- # Lazy Components diff --git a/pages/docs/react/latest/memo.mdx b/pages/docs/react/latest/memo.mdx index e0491f9f6..34422e61d 100644 --- a/pages/docs/react/latest/memo.mdx +++ b/pages/docs/react/latest/memo.mdx @@ -2,6 +2,8 @@ title: memo description: "Using React.memo" canonical: "/docs/react/latest/memo" +section: "Main Concepts" +order: 8 --- # memo diff --git a/pages/docs/react/latest/migrate-react.mdx b/pages/docs/react/latest/migrate-react.mdx index 9d8be5009..feb5c240e 100644 --- a/pages/docs/react/latest/migrate-react.mdx +++ b/pages/docs/react/latest/migrate-react.mdx @@ -2,6 +2,8 @@ title: Migrate from JSX v3 description: "Migrate from JSX v3" canonical: "/docs/react/latest/migrate-react" +section: "Overview" +order: 3 --- # Migrate from JSX v3 diff --git a/pages/docs/react/latest/refs-and-the-dom.mdx b/pages/docs/react/latest/refs-and-the-dom.mdx index bc85a0624..d103080d4 100644 --- a/pages/docs/react/latest/refs-and-the-dom.mdx +++ b/pages/docs/react/latest/refs-and-the-dom.mdx @@ -2,6 +2,8 @@ title: Refs and the DOM description: "Using Refs and DOM elements in ReScript and React" canonical: "/docs/react/latest/refs-and-the-dom" +section: "Main Concepts" +order: 6 --- # Refs and the DOM diff --git a/pages/docs/react/latest/rendering-elements.mdx b/pages/docs/react/latest/rendering-elements.mdx index eadeba6d8..4fd5ea37d 100644 --- a/pages/docs/react/latest/rendering-elements.mdx +++ b/pages/docs/react/latest/rendering-elements.mdx @@ -2,6 +2,8 @@ title: Rendering Elements description: "How to render React elements to the DOM" canonical: "/docs/react/latest/rendering-elements" +section: "Main Concepts" +order: 2 --- # Rendering Elements diff --git a/pages/docs/react/latest/router.mdx b/pages/docs/react/latest/router.mdx index 2acf215be..80af487ca 100644 --- a/pages/docs/react/latest/router.mdx +++ b/pages/docs/react/latest/router.mdx @@ -2,6 +2,8 @@ title: Router description: "Basic concepts for navigation and routing in ReScript & React" canonical: "/docs/react/latest/router" +section: "Main Concepts" +order: 10 --- # Router diff --git a/pages/docs/react/latest/styling.mdx b/pages/docs/react/latest/styling.mdx index ae35957aa..288f8a80c 100644 --- a/pages/docs/react/latest/styling.mdx +++ b/pages/docs/react/latest/styling.mdx @@ -2,6 +2,8 @@ title: Styling description: "Styling in ReScript & React" canonical: "/docs/react/latest/styling" +section: "Main Concepts" +order: 9 --- # Styling