Skip to content

Commit 6163901

Browse files
committed
update to melange v3 (#159)
1 parent ab8c0f8 commit 6163901

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ When a new version of `melange` is published in opam, a new release of the docs
6161
and playground should be published. The process is as follows:
6262

6363
- Update `documentation-site.opam` to point `melange` and `melange-playground`
64-
packages to the commit of the new release
64+
packages to the commit of the new release (they need to be pinned so that the
65+
Melange docs can be accessed on a stable path)
6566
- Update versions of the compiler listed in the playground (`app.jsx`)
67+
- In the docs markdown pages, grep for the last version of Melange that was used
68+
and replace it with the newer one.
6669
- Open a PR with the changes above
6770
- After merging the PR, create a new branch `x.x.x-patches`. This branch will be
6871
used to publish any patches or improvements to that version of the docs /
@@ -95,3 +98,8 @@ move-vx.x.x-tag: ## Moves the vx.x.x tag to the latest commit, useful to publish
9598
- uncomment the relevant code in `publish-version.yml`
9699
- In the `gh-pages` branch, replace the default version with the new one [in
97100
index.html](https://github.com/melange-re/melange-re.github.io/blob/gh-pages/index.html#L10)
101+
- Finally, we need to disable the publication of previous version `y.y.y` as the
102+
default version:
103+
- In `y.y.y-patches`: update `publish-version.yml` so that `mike deploy -push`
104+
is used and `set-default` is removed.
105+
- Commit and run `make move-vy.y.y-tag` to deploy

docs/how-to-guides.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ subcommand:
466466
opam list --installed melange
467467
# Packages matching: name-match(melange) & installed
468468
# Name # Installed # Synopsis
469-
melange 2.2.0 Toolchain to produce JS from Reason/OCaml
469+
melange 3.0.0 Toolchain to produce JS from Reason/OCaml
470470
```
471471

472472
Before building, we have to update some parts of the configuration to make it

documentation-site.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ depends: [
2727
]
2828
dev-repo: "git+https://github.com/melange-re/melange-re.github.io.git"
2929
pin-depends: [
30-
[ "melange.dev" "git+https://github.com/melange-re/melange.git#1a1f87a209f9677883563af24a99384219e07313" ]
31-
[ "melange-playground.dev" "git+https://github.com/melange-re/melange.git#1a1f87a209f9677883563af24a99384219e07313" ]
30+
[ "melange.dev" "git+https://github.com/melange-re/melange.git#766b65d21dbe60fbcab74d458395606c2676d2bd" ]
31+
[ "melange-playground.dev" "git+https://github.com/melange-re/melange.git#766b65d21dbe60fbcab74d458395606c2676d2bd" ]
3232
[ "reason-react.dev" "git+https://github.com/reasonml/reason-react.git#4ee2eda353628090eda95e0b8dabe4e2be50f954" ]
3333
[ "reason-react-ppx.dev" "git+https://github.com/reasonml/reason-react.git#4ee2eda353628090eda95e0b8dabe4e2be50f954" ]
3434
[ "cmarkit.dev" "git+https://github.com/dbuenzli/cmarkit.git#f37c8ea86fd0be8dba7a8babcee3682e0e047d91" ]

playground/src/app.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function Sidebar({ onExampleClick }) {
137137
<div className="Versions">
138138
<span className="Version">
139139
<span className="Text-xs">{"Melange"}</span>
140-
<span className="Text-xs Number">{"dev"}</span>
140+
<span className="Text-xs Number">{"3.0.0-51"}</span>
141141
</span>
142142
<span className="Version">
143143
<span className="Text-xs">{"OCaml"}</span>

0 commit comments

Comments
 (0)