doc: Use new Sphinx extension for code samples

Use the new code-sample directive and roles in a few places
to demonstrate how it works.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2023-08-30 08:53:43 +02:00 committed by Carles Cufí
commit 5832f6ed5f
9 changed files with 33 additions and 28 deletions

View file

@ -25,8 +25,8 @@ Requirements
************
* Two boards with Bluetooth Low Energy support
* Two boards with a push button connected via a GPIO pin, see :ref:`Button
sample <button-sample>` for more details
* Two boards with a push button connected via a GPIO pin, see :zephyr:code-sample:`button-sample`
for more details
Building and Running
********************