melange-re.github.io
melange-re.github.io copied to clipboard
Documentation site for Melange
I propose `Js`, `Belt` and `Stdlib` to be part of the sidebar and some pages to have specifically a nice documentation: - Specifically for Promise (related https://github.com/melange-re/melange-re.github.io/issues/61) - Specifically for...
- explain copy_files? - explain jest/vite cases?
Should there be a section in the website for the react-ppx bindings since those are distributed as a package on the Ocaml package site? I imagine the existing reason-react site...
We currently use rollup to bundle the resulting JS in a worker: https://github.com/melange-re/melange-re.github.io/blob/aea0e11ac12bafef07d0286f71fbf2e828a4d97a/playground/src/worker.js#L79 I suspect [esbuild-wasm](https://www.npmjs.com/package/esbuild-wasm) will be much faster than rollup. cc @denis-ok as the esbuild expert :)
@rusty-key suggested to include a "cookbook" section in the bindings page, so that users can grep for common JS patterns and map them to bindings. This PR adds a cookbook...
Should `@bs.config` and `--preamble` have some documentation, especially since NextJS and RSC will require things like `[@bs.config {flags: [|"--preamble", "\"use client\";"|]}];`
For learning / teaching purposes, it'd be interesting to allow having a set of Melange snippets under the same playground link. From a author point of view, I should be...
This branch is not for merging purposes, just used as a way to apply changes to the `v1.0.0` version. We are backporting: - The playground, which means: - reapplying the...
See https://github.com/melange-re/melange/pull/722.