Merge pull request #185 from ewenmcneill/docs-copy-paste

Tag documentation sessions with language for better copy'n'paste
This commit is contained in:
Tim Ansell 2020-03-06 15:55:43 -08:00 committed by GitHub
commit 1f12529bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ You see a new window with a `shell
application <https://github.com/antmicro/zephyr/commit/29d8e51da15237f2a6bd2a3c8c97e004a66fc97a>`__,
that provides additional commands allowing you to control LEDs on Fomu.
.. code:: bash
.. session:: shell-session
uart:~$ led_toggle
uart:~$ led_breathe

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
...