Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
71c2897
refactor: switch to React Router
jderochervlk Sep 28, 2025
3d46e64
refactor: add order and section to language manual frontmatter
jderochervlk Sep 28, 2025
365d522
Merge branch 'vlk/add-order-and-section-to-manual' of github.com:resc…
jderochervlk Sep 28, 2025
24c9fdc
add react
jderochervlk Sep 28, 2025
bce0ea1
Merge branch 'vlk/add-order-and-section-to-manual' of github.com:resc…
jderochervlk Sep 28, 2025
b3e42b7
improve css loading speed
jderochervlk Sep 28, 2025
62a4916
fix fouc
jderochervlk Sep 28, 2025
2a54652
fix css not loading
jderochervlk Sep 28, 2025
100fb4c
make sure progress is synced
jderochervlk Oct 1, 2025
3b5acdb
language manual
jderochervlk Oct 2, 2025
1217a60
working on tables
jderochervlk Oct 2, 2025
4d28ff6
back out table changes for now
jderochervlk Oct 2, 2025
a39d058
updating blog pages
jderochervlk Oct 3, 2025
06987bb
builds are working
jderochervlk Oct 3, 2025
5282ad2
copy to out folder
jderochervlk Oct 3, 2025
50c193e
add static server
jderochervlk Oct 3, 2025
b0c3673
cleanup some deps
jderochervlk Oct 5, 2025
d167bf2
cleanup some todo comments
jderochervlk Oct 5, 2025
f571352
configure loadmdx
jderochervlk Oct 5, 2025
8c812c6
tables looking good
jderochervlk Oct 5, 2025
96d9032
more mdx work
jderochervlk Oct 5, 2025
4732229
Merge branch 'master' of github.com:rescript-lang/rescript-lang.org i…
jderochervlk Oct 5, 2025
565e2d2
move react docs
jderochervlk Oct 7, 2025
009596d
react docs and anchor scrolling
jderochervlk Oct 7, 2025
c23be9b
fixed scrolling on full page nav
jderochervlk Oct 7, 2025
5a5904f
api is rendering
jderochervlk Oct 7, 2025
778f521
api prerender is working
jderochervlk Oct 7, 2025
f566bec
working on api table of contents
jderochervlk Oct 8, 2025
f478604
Initial plan
Copilot Oct 12, 2025
34acb8f
Migrate CodeMirror from v5 to v6 - initial implementation
Copilot Oct 12, 2025
1040aa7
Fix warnings and remove CodeMirror v5 dependency
Copilot Oct 12, 2025
cc339b5
Address code review feedback - fix import paths, error handling, and …
Copilot Oct 12, 2025
8311c48
Fix error validation logic - properly validate both line and column b…
Copilot Oct 12, 2025
6a1b928
Clarify error position indexing in comments - rows are 1-based, colum…
Copilot Oct 12, 2025
87c0785
Fix ReferenceError: createEditor is not defined - call function direc…
Copilot Oct 13, 2025
a631fc4
Format JavaScript files with Prettier
Copilot Oct 13, 2025
5ee2f10
Convert createEditor from raw JavaScript to native ReScript with comp…
Copilot Oct 13, 2025
924e84a
apidocs
jderochervlk Oct 13, 2025
1213a43
use more idiomatic rescript bindings
tsnobip Oct 13, 2025
bc74250
api nav is working
jderochervlk Oct 13, 2025
a90d0a8
trying to fix the inline codeblock
jderochervlk Oct 13, 2025
f8185ff
just remove it for now
jderochervlk Oct 13, 2025
23eaffe
fix &
jderochervlk Oct 13, 2025
31058cb
move syntax pages
jderochervlk Oct 13, 2025
6942b6b
working on blog listing page
jderochervlk Oct 14, 2025
0321c41
working on syntax page
jderochervlk Oct 14, 2025
e997c36
blog listing page is mostly working
jderochervlk Oct 15, 2025
a599198
update to rc.2
jderochervlk Oct 17, 2025
eed9347
blog post is rendering
jderochervlk Oct 17, 2025
bd882a6
fix archived blog posts
jderochervlk Oct 19, 2025
58001ca
Merge branch 'master' of github.com:rescript-lang/rescript-lang.org i…
jderochervlk Oct 19, 2025
0a505e7
static builds are working
jderochervlk Oct 19, 2025
9fe79d8
rendering community pages
jderochervlk Oct 19, 2025
f8dc09b
getting close
jderochervlk Oct 20, 2025
91f9442
package search
jderochervlk Oct 20, 2025
b07a66c
syntax lookup
jderochervlk Oct 20, 2025
dc0ad5d
remove package-lock
jderochervlk Oct 20, 2025
654f09e
rebuild package lock
jderochervlk Oct 20, 2025
b7ba93f
fix webapi
jderochervlk Oct 20, 2025
9ce7121
fixes
jderochervlk Oct 20, 2025
14f7bd2
Merge branch 'master' of github.com:rescript-lang/rescript-lang.org i…
jderochervlk Oct 20, 2025
0fcf8a8
Merge branch 'copilot/migrate-playground-to-cm-v6' of github.com:resc…
jderochervlk Oct 20, 2025
9272d9d
control panel
jderochervlk Oct 20, 2025
7d7bbdf
fix divider
jderochervlk Oct 20, 2025
f676837
more cleanup
jderochervlk Oct 20, 2025
8f15c78
more style fixes
jderochervlk Oct 20, 2025
89112cc
config cleanup
jderochervlk Oct 20, 2025
b1156d8
delete pages folder
jderochervlk Oct 20, 2025
ec22753
Merge branch 'master' of github.com:rescript-lang/rescript-lang.org i…
jderochervlk Oct 21, 2025
0b63251
rebuild package lock and remove .nvmrc
jderochervlk Oct 21, 2025
a5bbc50
try fixing missing types
jderochervlk Oct 22, 2025
219742d
add search
jderochervlk Oct 22, 2025
c9f8095
use npm build
jderochervlk Oct 22, 2025
011e271
fix typo
jderochervlk Oct 22, 2025
7a22a0a
fix package lock webapi version
jderochervlk Oct 22, 2025
0b9887a
run formatter
jderochervlk Oct 22, 2025
ba425b2
rollback codemirror
jderochervlk Oct 23, 2025
201a0ea
back to codemirror 5
jderochervlk Oct 23, 2025
3d650b7
Revert "use more idiomatic rescript bindings"
jderochervlk Oct 23, 2025
ad9b581
back to codemirror 5
jderochervlk Oct 23, 2025
a0ce329
Revert "rollback codemirror"
jderochervlk Oct 23, 2025
7dbe3df
playground is working
jderochervlk Oct 23, 2025
45b99f2
fix background color on dropdown
jderochervlk Oct 23, 2025
3015186
warning table
jderochervlk Oct 23, 2025
d5b111b
docson
jderochervlk Oct 23, 2025
1882fa0
fixed markdown
jderochervlk Oct 23, 2025
3852202
import css
jderochervlk Oct 24, 2025
70aeb1c
remove trailing ;
jderochervlk Oct 24, 2025
ce8576d
add back tests
jderochervlk Oct 24, 2025
7dc4b86
fix doc tests
jderochervlk Oct 24, 2025
0304baa
remove href test
jderochervlk Oct 24, 2025
d48b592
test out redirects
jderochervlk Oct 24, 2025
8547f39
formatting
jderochervlk Oct 24, 2025
11a742f
add 404 page
jderochervlk Oct 24, 2025
91d8860
typo in redirects
jderochervlk Oct 24, 2025
3b0bd2d
fix filename
jderochervlk Oct 24, 2025
20a153b
fix prettier ignore
jderochervlk Oct 24, 2025
113e21b
preconnect to css
jderochervlk Oct 24, 2025
ff62b7b
fix flicker
jderochervlk Oct 24, 2025
9f886db
fix community link
jderochervlk Oct 24, 2025
2d42ed9
Fix community links
jderochervlk Oct 24, 2025
2b785e2
fix search box and docson
jderochervlk Oct 26, 2025
14d00a1
getting meta tags to work
jderochervlk Nov 4, 2025
666f235
meta tags
jderochervlk Nov 4, 2025
20227bb
Merge branch 'master' of github.com:rescript-lang/rescript-lang.org i…
jderochervlk Nov 4, 2025
7cf2561
fix image imports after merge
jderochervlk Nov 4, 2025
6880219
formatting
jderochervlk Nov 4, 2025
2074165
align naming for Lazy components
jderochervlk Nov 5, 2025
416591a
add scroll lock and fix mobile nav bar
jderochervlk Nov 6, 2025
b438b3b
fix edit link
jderochervlk Nov 6, 2025
82f90fa
close mobile navbar and disable scroll lock on navigation
jderochervlk Nov 6, 2025
05bb0b4
fix non doc page mobile nav
jderochervlk Nov 6, 2025
b80a9b1
fix syntax lookup url
jderochervlk Nov 6, 2025
bc07101
pr feedback
jderochervlk Nov 6, 2025
f20ebd5
clean up todos
jderochervlk Nov 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move react docs
  • Loading branch information
jderochervlk committed Oct 7, 2025
commit 565e2d2e904ec2fe23f0ebfacd01542bc121a28c
4 changes: 2 additions & 2 deletions app/routes/MdxRoute.res
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,12 @@ let reactTableOfContents = () => {
->groupBySection
->Dict.mapValues(values => values->sortSection->convertToNavItems)

// Console.log(groups)
Console.log(groups)

// these are the categories that appear in the sidebar
let categories: array<SidebarLayout.Sidebar.Category.t> = [
{name: "Overview", items: groups->Dict.getUnsafe("Overview")},
// {name: "Main concepts", items: groups->Dict.getUnsafe("Main concepts")},
]

Console.log(categories)
Expand Down Expand Up @@ -164,7 +165,6 @@ let loader: Loader.t<loaderData> = async ({request}) => {
} else if pathname->String.includes("docs/react") {
reactTableOfContents()
} else {
// TODO RR7 add react docs
[]
}
}
Expand Down
2 changes: 2 additions & 0 deletions docs/react/arrays-and-keys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/beyond-jsx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/components-and-props.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/elements-and-jsx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Events
description: "Event handlers for React elements"
canonical: "/docs/react/latest/events"
section: "Main Concepts"
order: 5
---

# Events
Expand Down
2 changes: 2 additions & 0 deletions docs/react/extensions-of-props.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/forwarding-refs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/hooks-context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/hooks-custom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/hooks-effect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/hooks-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/hooks-reducer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/hooks-ref.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/hooks-state.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/react/import-export-reactjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/react/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: Installation
description: "Installation and Setup"
canonical: "/docs/react/latest/installation"
category: "manual"
section: "Overview"
order: 2
---

# Installation
Expand Down
1 change: 1 addition & 0 deletions docs/react/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Introduction
description: "Introduction to ReScript & ReactJS"
canonical: "/docs/react/latest/introduction"
section: "Overview"
order: 1
---

# ReScript & React
Expand Down
2 changes: 2 additions & 0 deletions docs/react/lazy-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions docs/react/llms.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "LLMs"
description: "Documentation for LLMs"
canonical: "/docs/react/latest/llms"
---

# Documentation for LLMs

We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentation accessible to large language models and their applications.

Currently, we have the following files...

- [/docs/react/llms.txt](/llms/react/latest/llms.txt) — a list of the available files for ReScript React.
- [/docs/react/llms-full.txt](/llms/react/latest/llm-full.txt) — complete documentation for ReScript React.
- [/docs/react/llms-small.txt](/llms/react/latest/llm-small.txt) — compressed version of the former, without examples for ReScript React.

...and the language documentation:

- [/docs/manual/llms](/docs/manual/latest/llms) — the LLms documentation for ReScript.

## Notes

- The content is automatically generated from the same source as the official documentation for the specific version
2 changes: 2 additions & 0 deletions docs/react/memo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: memo
description: "Using React.memo"
canonical: "/docs/react/latest/memo"
section: "Main Concepts"
order: 8
---

# memo
Expand Down
Loading
Loading