docs: add shell-session to example sessions

For https://github.com/im-tomu/fomu-workshop/issues/144#issuecomment-595993657
mark the session types of examples so that the automagic copynpaste
handling knows how to figure out which parts to copy, rather than defaulting
to copying everything.
This commit is contained in:
Ewen McNeill 2020-03-07 11:42:23 +13:00
parent fda6bed5ca
commit a0c992335a
2 changed files with 4 additions and 4 deletions

View File

@ -254,7 +254,7 @@ As an alternative to C, the `Rust Language <https://www.rust-lang.org/>`_ can be
To install Rust, follow the instructions on https://rustup.rs/. After installing Rust, we can install support for RISCV
targets using ``rustup``:
.. session::
.. session:: shell-session
$ rustup target add riscv32i-unknown-none-elf
info: downloading component 'rust-std' for 'riscv32i-unknown-none-elf'
@ -264,7 +264,7 @@ targets using ``rustup``:
A Rust version of the C program used above is located in the ``riscv-rust-blink`` directory. Change into that directory,
and build it using ``cargo``, the Rust package manager:
.. session::
.. session:: shell-session
$ cargo build --release
Compiling semver-parser v0.7.0
@ -292,7 +292,7 @@ and build it using ``cargo``, the Rust package manager:
The resulting binary is located in the target subfolder: ``target/riscv32i-unknown-none-elf/release/riscv-rust-blink``. It can
be flashed using the ``flash.sh`` script, also located in the ``riscv-rust-blink`` folder:
.. session::
.. session:: shell-session
$ ./flash.sh
dfu-suffix (dfu-util) 0.9

View File

@ -15,7 +15,7 @@ Enter the ``verilog/blink-expanded`` directory and build the demo by using ``mak
**Make sure you set the ``FOMU_REV`` value to match your hardware! See
the Required Hardware section.**
.. session::
.. session:: shell-session
$ make FOMU_REV=$FOMU_REV
...