doc/guides: migrate rpl networking guide from wiki#22460
Conversation
| To flash your application onto all nodes in the experiment, use the `iotlab-flash` command: | ||
|
|
||
| ```sh | ||
| $ IOTLAB_USER=<iotlab_user> BOARD=iotlab-m3 make iotlab-flash | ||
| ``` |
There was a problem hiding this comment.
The iotlab-exp command before should already flash the firmware onto all nodes.
However, the command somehow failed for me, so I removed the flashing part from iotlab-exp locally and added this step here. Before merging the PR, the iotlab-exp command should be fixed (or I should figure out why it didn't work for me specifically) and this section revisited.
Yes, https://guide.riot-os.org/misc/how_to_doc/ should help you with that 😄 |
| ```sh | ||
| $ make flash term | ||
| ``` |
There was a problem hiding this comment.
| ```sh | |
| $ make flash term | |
| ``` | |
| make flash term |
Removing the $ makes it copy-pastable with the little button that pops up :) (The suggestion is broken though, don't apply it)
There was a problem hiding this comment.
I was using the conventions from the riot exercises, to differentiate between Linux shell and RIOT shell commands.
Does that convention not apply in the guides here?
There was a problem hiding this comment.
I have never seen that convention if I am totally honest with you, the repo is also outside of the RIOT org 🤓 ☝️
That being said, I think it's generally fine to keep it as is, esp. since you are following that convention. This was more of a "neat to have".
There was a problem hiding this comment.
Don't have a strong opinion. The fact that you can't copy a command well if it's prepended with $ also annoys me sometimes ^^
Does someone else have an opinion on this? cc @mguetschow
There was a problem hiding this comment.
Now that we have fancy starlight, couldn't we somehow mark the codeblock as being the host or RIOT shell and visualize that in starlight outside of the copy-able area? somehow annotate the codeblock HTML and a simple CSS rule should do.
Other than that, I would prefer removing the $ so it is easy to copy. Should be clear from the context anyhow what is meant.
There was a problem hiding this comment.
It appears like that we can do this by directly using the Code component with the theme attribute, however, this might make it look weird depending on whether you use dark/light theme, e.g. if we make RIOT default to a dark blue theme for code blocks it would then look really out of place when using the light theme and I don't see an (easy) option to give a theme depending on that. (All that to say "Yes but hard")
There was a problem hiding this comment.
I am also in favor to remove the $, as I have also already done at many places, we should update the docs
crasbe
left a comment
There was a problem hiding this comment.
Thank you for starting the wiki move. This is a really good tutorial that was quite hidden in the Wiki 😅
|
|
||
| Type the following command in three different terminals, using `tap0`, `tap1`, and `tap2`, respectively. | ||
|
|
||
| ```sh |
There was a problem hiding this comment.
| ```sh | |
| ``` |
These are not really shell commands.
|
|
||
| List all connected boards, their port, and serial number. | ||
|
|
||
| ```sh |
There was a problem hiding this comment.
| ```sh | |
| ``` |
These are also not really shell commands but rather printout of a command.
There was a problem hiding this comment.
Currently in starlight we don't use the "$" prefix because this is in conflict with the copy button and starlight already visualizes quite clear that it is a shell command.
We right now usually just split the command and output into 2 different code blocks at other places in the guides.
Apply suggestions from code review. Co-authored-by: crasbe <crasbe@gmail.com>
Max 80 characters per line.
Move coap.mdx to networking folder.
Add intro sentence.
| ```sh | ||
| $ make flash term | ||
| ``` |
There was a problem hiding this comment.
It appears like that we can do this by directly using the Code component with the theme attribute, however, this might make it look weird depending on whether you use dark/light theme, e.g. if we make RIOT default to a dark blue theme for code blocks it would then look really out of place when using the light theme and I don't see an (easy) option to give a theme depending on that. (All that to say "Yes but hard")
|
This has to be rebased, now that the #22481 PR is in. |
Contribution description
Migrate the wiki Tutorial: RIOT and Multi Hop Routing with RPL to Starlight.
Small refactor:
Testing procedure
I am not familiar with Starlight. Can I preview the page locally somehow?
Issues/PRs references
Discussed in #22265.
Declaration of AI-Tools / LLMs usage:
AI-Tools / LLMs that were used are: