Skip to content

Commit

Permalink
Deploy website
Browse files Browse the repository at this point in the history
Deploy website version based on 7b0562a
  • Loading branch information
davesnx committed Jul 8, 2024
1 parent 15365d7 commit 0f1ec55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/en/installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ <h3><a class="anchor" aria-hidden="true" id="using-the-template"></a><a href="#u
git <span class="hljs-built_in">clone</span> https://github.com/melange-re/melange-opam-template my-reason-react-app

<span class="hljs-comment"># This will initialise the opam switch and install all the dependencies (from both opam and npm)</span>
<span class="hljs-built_in">cd</span> my-reason-react-app &amp;&amp; make init
<span class="hljs-built_in">cd</span> my-reason-react-app &amp;&amp; npm run init
<span class="hljs-comment"># We install native dependencies (melange, dune, reason and reason-react) from opam</span>
<span class="hljs-comment"># while JavaScript dependencies (react, react-dom, webpack) from npm</span>

<span class="hljs-comment"># In separate terminals:</span>
make watch <span class="hljs-comment"># It will watch for changes in your Reason/OCaml files and compile them to JavaScript</span>
make serve <span class="hljs-comment"># Serves the application with a local HTTP server</span>
npm run watch <span class="hljs-comment"># It will watch for changes in your Reason/OCaml files and compile them to JavaScript</span>
npm run serve <span class="hljs-comment"># Serves the application with a local HTTP server</span>
</code></pre>
<p>Read more about the template in the <a href="https://github.com/melange-re/melange-opam-template">opam-template README</a>.</p>
<h3><a class="anchor" aria-hidden="true" id="adding-reason-to-an-existing-reactjs-project-create-react-app-nextjs-etc"></a><a href="#adding-reason-to-an-existing-reactjs-project-create-react-app-nextjs-etc" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Adding Reason to an existing React.js Project (Create React App, Next.js, etc.)</h3>
Expand Down
6 changes: 3 additions & 3 deletions docs/en/installation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ <h3><a class="anchor" aria-hidden="true" id="using-the-template"></a><a href="#u
git <span class="hljs-built_in">clone</span> https://github.com/melange-re/melange-opam-template my-reason-react-app

<span class="hljs-comment"># This will initialise the opam switch and install all the dependencies (from both opam and npm)</span>
<span class="hljs-built_in">cd</span> my-reason-react-app &amp;&amp; make init
<span class="hljs-built_in">cd</span> my-reason-react-app &amp;&amp; npm run init
<span class="hljs-comment"># We install native dependencies (melange, dune, reason and reason-react) from opam</span>
<span class="hljs-comment"># while JavaScript dependencies (react, react-dom, webpack) from npm</span>

<span class="hljs-comment"># In separate terminals:</span>
make watch <span class="hljs-comment"># It will watch for changes in your Reason/OCaml files and compile them to JavaScript</span>
make serve <span class="hljs-comment"># Serves the application with a local HTTP server</span>
npm run watch <span class="hljs-comment"># It will watch for changes in your Reason/OCaml files and compile them to JavaScript</span>
npm run serve <span class="hljs-comment"># Serves the application with a local HTTP server</span>
</code></pre>
<p>Read more about the template in the <a href="https://github.com/melange-re/melange-opam-template">opam-template README</a>.</p>
<h3><a class="anchor" aria-hidden="true" id="adding-reason-to-an-existing-reactjs-project-create-react-app-nextjs-etc"></a><a href="#adding-reason-to-an-existing-reactjs-project-create-react-app-nextjs-etc" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Adding Reason to an existing React.js Project (Create React App, Next.js, etc.)</h3>
Expand Down

0 comments on commit 0f1ec55

Please sign in to comment.