Stream: contributing

Topic: tutorial headers links


view this post on Zulip itmuckel (Mar 13 2023 at 16:54):

Hi, I want to tackle this https://github.com/roc-lang/roc/issues/5106 if no one is working on it already. Just a question: How would I build the docs to test it locally? I did cargo run --bin roc-docs, but it errored with it couldn't find main.roc. :thinking:

view this post on Zulip Anton (Mar 13 2023 at 17:00):

Hi @itmuckel,
The tutorial is separate from the docs, you can build the tutorial by following the instructions in the README here.
Feel free to ask additional questions or make suggestions for how we can improve contributor-oriented documentation :)

view this post on Zulip Anton (Mar 13 2023 at 17:01):

For the tutorial specifically I think you need to be on http://0.0.0.0:8000/tutorial

view this post on Zulip Anton (Mar 13 2023 at 17:03):

This folder will probably be where you want to make some changes to implement your issue.

view this post on Zulip itmuckel (Mar 13 2023 at 17:03):

Oh, I think the issue is a bit missleading? The linked discussion on zulip is about the clickable function names in the docs for the stdlib that should not be clickable but instead have an svg on hover

view this post on Zulip Anton (Mar 13 2023 at 17:04):

Oh yeah, that should be for the docs, it doesn't really make sense for the tutorial.

view this post on Zulip itmuckel (Mar 13 2023 at 17:06):

So this is the error message, but I'd need to build roc-docs to build the docs, right?

$ cargo run --bin roc-docs
   Compiling roc_docs_cli v0.0.1 (/home/itmuckel/Code/roc/roc/crates/docs_cli)
    Finished dev [unoptimized + debuginfo] target(s) in 16.11s
     Running `target/debug/roc-docs`
── FILE NOT FOUND ──────────────────────────────────────────────── UNKNOWN.roc ─

I am looking for this file, but it's not there:

    main.roc

Is the file supposed to be there? Maybe there is a typo in the file
name?

view this post on Zulip itmuckel (Mar 13 2023 at 17:06):

Oh, now I get it, roc-docs needs a target and I'm not providing one :-D

view this post on Zulip Anton (Mar 13 2023 at 17:08):

In www/build.sh you can also find the build steps we use for the documentation. I recommend searching for builtins in that file to find the relevant steps.

view this post on Zulip itmuckel (Mar 13 2023 at 17:14):

is jq missing in the nix environment of develop?

$ ./build.sh
+ jq --version
./build.sh: line 7: jq: command not found

view this post on Zulip Anton (Mar 13 2023 at 17:22):

Yes, I didn't know about that, you can add jq below wasm-pack in flake.nix. You may then need to do exit followed by nix develop to load the updated file

view this post on Zulip itmuckel (Mar 13 2023 at 17:27):

Alright, thanks, I got it working. :-)

view this post on Zulip itmuckel (Mar 13 2023 at 18:35):

https://github.com/roc-lang/roc/pull/5132 it ain't much, but it's honest work :sweat_smile:

view this post on Zulip Anton (Mar 13 2023 at 18:36):

We all start small :)
I'll do the review

view this post on Zulip itmuckel (Mar 13 2023 at 18:37):

Wait, I spotted a mistake :')

view this post on Zulip itmuckel (Mar 13 2023 at 18:42):

Okay, removed the useless class and rebased, now it looks fine :)

view this post on Zulip Albert (Jun 15 2024 at 07:03):

Where do I submit a bug report for https://www.roc-lang.org/tutorial#lists-that-hold-elements-of-different-types?

view this post on Zulip Brendan Hansknecht (Jun 15 2024 at 07:16):

Can just add a new issue here: https://github.com/roc-lang/roc/issues/


Last updated: Jul 05 2025 at 12:14 UTC