roc/www
Richard Feldman 7dddc2e6fd
Add /plans
2023-11-20 23:11:33 -05:00
..
content Add /plans 2023-11-20 23:11:33 -05:00
public Fix z-index on tutorial table of contents 2023-11-20 08:20:15 -05:00
build-dev-local.sh Replace roc-lang.org with WIP site 2023-11-20 00:52:46 -05:00
build.sh Fix some build.sh stuff 2023-11-20 00:57:40 -05:00
InteractiveExample.roc Replace roc-lang.org with WIP site 2023-11-20 00:52:46 -05:00
main.roc Don't use article width on /examples 2023-11-20 07:10:24 -05: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 Replace roc-lang.org with WIP site 2023-11-20 00:52:46 -05: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.