Skip to content

Conversation

jderochervlk
Copy link
Collaborator

This is in preparation for the migration to React Router.

This doesn't do anything yet, but frontmatter will be the primary way to add details and organize markdown files instead of the build scripts and config files we use today.

@jderochervlk jderochervlk marked this pull request as ready for review September 28, 2025 19:54
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR prepares the ReScript documentation for migration to React Router by adding structured frontmatter metadata to all manual pages. The frontmatter includes section and order fields that will enable organization of the documentation through metadata instead of build scripts and configuration files.

  • Adds section field to categorize pages into logical groups (Overview, Language Features, JavaScript Interop, Build System, Guides, Advanced Features)
  • Adds order field to control page sequencing within each section
  • Maintains existing frontmatter structure while extending it with organizational metadata

Reviewed Changes

Copilot reviewed 62 out of 62 changed files in this pull request and generated no comments.

File Description
public/llms/manual/template.mdx Template file updated with section "Overview" and order 4
pages/docs/manual/v12.0.0/*.mdx All 62 manual pages updated with appropriate section categorization and ordering

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

cloudflare-workers-and-pages bot commented Sep 28, 2025

Deploying rescript-lang-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: 24c9fdc
Status: ✅  Deploy successful!
Preview URL: https://1f0beaa1.rescript-lang.pages.dev
Branch Preview URL: https://vlk-add-order-and-section-to.rescript-lang.pages.dev

View logs

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 87 out of 87 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fhammerschmidt
Copy link
Member

What if I don't use the order at all for a section? Will it be sorted alphabetically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants