roc/www
Anton-4 a4bedd1d63
homepage \(...) > $(...)
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-01-09 10:37:11 +01:00
..
content homepage \(...) > $(...) 2024-01-09 10:37:11 +01:00
public Add Decem to sponsors 2023-12-07 20:51:27 -05:00
.gitignore update docs for wasm repl dev 2023-11-24 10:07:27 -05:00
build-dev-local.sh restore simple-http-server 2023-12-05 21:11:23 -05:00
build.sh fixes file not found 2023-12-23 12:16:59 +01:00
InteractiveExample.roc Replace roc-lang.org with WIP site 2023-11-20 00:52:46 -05:00
main.roc add github link to website 2023-12-01 13:38:45 +11:00
netlify.sh update llvm and zig version in all locations 2023-10-23 13:50:32 -07:00
netlify.toml Move CSP to just /packages/ 2023-11-10 20:18:13 -05:00
optimize.sh Fix typo in optimize.sh 2023-11-22 01:02:02 +09:00
README.md Replace roc-lang.org with WIP site 2023-11-20 00:52:46 -05:00

www.roc-lang.org

Prerequisites

  • Linux or MacOS operating system, Windows users can use linux through WSL.
  • Install git
  • Install nix

Building the website from scratch

git clone https://github.com/roc-lang/roc.git
cd roc
nix develop
./www/build.sh
# make the roc command available 
export PATH="$(pwd)/target/release/:$PATH"
bash build-dev-local.sh

Open http://0.0.0.0:8080 in your browser.

After you've made a change locally

In the terminal where the web server is running:

  1. kill the server with Ctrl+C
  2. re-run the build script
  3. refresh the page in your browser

To view the website after you've made a change, execute:

bash build-dev-local.sh

Open http://0.0.0.0:8080 in your browser.