Skip to content

Commit 1f12529

Browse files
authored
Merge pull request im-tomu#185 from ewenmcneill/docs-copy-paste
Tag documentation sessions with language for better copy'n'paste
2 parents fda6bed + 3d87f30 commit 1f12529

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/renode-bridge.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You see a new window with a `shell
4747
application <https://github.com/antmicro/zephyr/commit/29d8e51da15237f2a6bd2a3c8c97e004a66fc97a>`__,
4848
that provides additional commands allowing you to control LEDs on Fomu.
4949

50-
.. code:: bash
50+
.. session:: shell-session
5151

5252
uart:~$ led_toggle
5353
uart:~$ led_breathe

docs/riscv.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ As an alternative to C, the `Rust Language <https://www.rust-lang.org/>`_ can be
254254
To install Rust, follow the instructions on https://rustup.rs/. After installing Rust, we can install support for RISCV
255255
targets using ``rustup``:
256256

257-
.. session::
257+
.. session:: shell-session
258258

259259
$ rustup target add riscv32i-unknown-none-elf
260260
info: downloading component 'rust-std' for 'riscv32i-unknown-none-elf'
@@ -264,7 +264,7 @@ targets using ``rustup``:
264264
A Rust version of the C program used above is located in the ``riscv-rust-blink`` directory. Change into that directory,
265265
and build it using ``cargo``, the Rust package manager:
266266

267-
.. session::
267+
.. session:: shell-session
268268

269269
$ cargo build --release
270270
Compiling semver-parser v0.7.0
@@ -292,7 +292,7 @@ and build it using ``cargo``, the Rust package manager:
292292
The resulting binary is located in the target subfolder: ``target/riscv32i-unknown-none-elf/release/riscv-rust-blink``. It can
293293
be flashed using the ``flash.sh`` script, also located in the ``riscv-rust-blink`` folder:
294294

295-
.. session::
295+
.. session:: shell-session
296296

297297
$ ./flash.sh
298298
dfu-suffix (dfu-util) 0.9

docs/verilog.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Enter the ``verilog/blink-expanded`` directory and build the demo by using ``mak
1515
**Make sure you set the ``FOMU_REV`` value to match your hardware! See
1616
the Required Hardware section.**
1717

18-
.. session::
18+
.. session:: shell-session
1919

2020
$ make FOMU_REV=$FOMU_REV
2121
...

0 commit comments

Comments
 (0)