Skip to content

Conversation

@jderochervlk
Copy link
Collaborator

@jderochervlk jderochervlk commented Sep 28, 2025

  • homepage
  • language manual
  • syntax lookup
  • react docs
  • packages lookup
  • community page
  • blog listing page
  • blog articles
  • playground

@cloudflare-workers-and-pages
Copy link

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

Deploying rescript-lang-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: f20ebd5
Status: ✅  Deploy successful!
Preview URL: https://fafaed2f.rescript-lang.pages.dev
Branch Preview URL: https://vlk-v12-react-router.rescript-lang.pages.dev

View logs

@jderochervlk jderochervlk changed the title Vlk v12 react router refactor: switch to React Router Sep 28, 2025
@fhammerschmidt fhammerschmidt added this to the v12.0 milestone Oct 2, 2025
@jderochervlk
Copy link
Collaborator Author

jderochervlk commented Nov 4, 2025

@cknitt
Copy link
Member

cknitt commented Nov 5, 2025

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fhammerschmidt
Copy link
Member

fhammerschmidt commented Nov 5, 2025

  • top-right edit button broken on every docs page

@@ -0,0 +1,17 @@
let loader = async () => {
let props = await Packages.getStaticProps()
Copy link
Member

Choose a reason for hiding this comment

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

Nit: this binding is a bit unnecessary

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tried moving it out of the Packages file, but there are a lot of dependencies on other things in that file.


- Make sure to give a descriptive package name. We usually use `rescript-[name-of-js-lib]` for packages that bind to a specific JS library on npm.
- Use names that are self explanatory (no weird marketing terms / fantasy words if possible).
- Use names that are self explanatory (no weird marketing terms /pages/docs/guidelines fantasy words if possible).
Copy link
Member

Choose a reason for hiding this comment

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

Search & Replace issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Probably. Fixed.

- [bun](https://bun.sh/)
- [deno](http://deno.com/)
- Configure `"nodeModulesDir": "auto"` in `deno.json`
<div class="install-list">
Copy link
Member

Choose a reason for hiding this comment

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

Is this temporary or why is it needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There are some styles that need to be applied otherwise the list looks wrong.

  .install-list {
    li {
      ul {
        @apply !mb-0;
      }
    }
  }

This is caused by switching from one markdown tool to another.

let child = list.children->Option.flatMap(children => children[0])
switch (list.url, child) {
| (Some(url), Some(child)) => {
if child.value->String.includes("title:") {
Copy link
Member

Choose a reason for hiding this comment

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

this seems useless?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup, this was solved somewhere else and is no longer needed. Fixed.

@@ -576,6 +576,7 @@ let useCompilerManager = (
}
)
| Executing({state, jsCode}) =>
()
Copy link
Member

Choose a reason for hiding this comment

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

leftover?

@@ -546,14 +550,22 @@ let make = // props relevant for the react wrapper
~keyMap=KeyMap.Default,
~lineWrapping=false,
): React.element => {
Console.debug("staring codemirror")
Copy link
Member

Choose a reason for hiding this comment

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

leftover?

Copy link
Member

Choose a reason for hiding this comment

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

if not then it should be
"starting codemirror"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed.

@@ -0,0 +1,162 @@
# rescript-lang.org
Copy link
Member

Choose a reason for hiding this comment

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

why is this file in src/components now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure, but I removed the duplicate.

src/ApiDocs.res Outdated

let toctree = tree->Dict.get(moduleName)
Ok({module_, toctree: Obj.magic({name: "root", path: [], children: []})})
// let toctree = tree->Dict.get(moduleName)
Copy link
Member

Choose a reason for hiding this comment

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

leftover?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed.

// The path isn't included when we are rending a post vs listing them
let archived = try {
mdx.path->String.includes("/archived/")
} catch {
Copy link
Member

Choose a reason for hiding this comment

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

is this needed? String.includes usually only throws when you give it a regex?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I updated the type so this is no longer needed.

Copy link
Member

@fhammerschmidt fhammerschmidt left a comment

Choose a reason for hiding this comment

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

ooops I missclicked

@@ -0,0 +1,177 @@
type t = [
Copy link
Member

Choose a reason for hiding this comment

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

Lovely!

require("plugins/cm-reason-mode");
}
`)
// CodeMirror 6 - no longer need these requires since we import directly in the component
Copy link
Member

Choose a reason for hiding this comment

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

I guess we can just remove this comment then.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed.

->Option.getOr(CodeMirror.KeyMap.Default)
CodeMirror.KeyMap.Default

// Dom.Storage2.localStorage
Copy link
Member

Choose a reason for hiding this comment

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

remove?

Copy link
Member

Choose a reason for hiding this comment

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

or restore

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Restored.

@@ -0,0 +1 @@

Copy link
Member

Choose a reason for hiding this comment

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

empty file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed.

entries: [],
}

type c = {
Copy link
Member

Choose a reason for hiding this comment

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

what's c? content? Name could be a bit more descriptive.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Renamed it to context.

@@ -0,0 +1,1332 @@
[
{
"path": "/home/josh/Dev/rescript-lang.org/_blogposts/2025-04-11-introducing-unified-operators.mdx",
Copy link
Member

Choose a reason for hiding this comment

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

paths are wrong

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This file shouldn't be commited. I added it to .gitignore

@fhammerschmidt
Copy link
Member

Okay done with the full review. I saw a lot of TODOs still that I think should be addressed before the merge, but I only commented where I saw an Issue and there was no TODO already.

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.

5 participants