Skip to content

Commit e417962

Browse files
kartbenjukkar
authored andcommitted
[nrf fromtree] samples: doc: convert philosophers sample to code-sample directive
Adopt zephyr:code-sample directive to describe the Dining Philosophers sample and update reference accordingly. Signed-off-by: Benjamin Cabé <[email protected]> (cherry picked from commit a5b7349) Signed-off-by: Sean Madigan <[email protected]> (cherry picked from commit c53ed0c)
1 parent 7b2b462 commit e417962

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

samples/boards/arc_secure_services/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Currently, in normal application, MPU is not accessible, so no user space and
6868
mpu-based stack checking. Please copy the specific dts file and def_config
6969
file to the specific board dir to build normal application.
7070

71-
Here,take :ref:`dining-philosophers-sample` as an example for normal
71+
Here,take :zephyr:code-sample:`dining-philosophers` as an example for normal
7272
application.
7373

7474
.. zephyr-app-commands::

samples/philosophers/README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
.. _dining-philosophers-sample:
1+
.. zephyr:code-sample:: dining-philosophers
2+
:name: Dining Philosophers
3+
:relevant-api: semaphore_apis mutex_apis stack_apis thread_apis fifo_apis lifo_apis
24

3-
Dining Philosophers
4-
###################
5+
Implement a solution to the Dining Philosophers problem using Zephyr kernel services.
56

67
Overview
78
********

samples/posix/philosophers/README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Overview
77
********
88

9-
This sample implements Zephyr's :ref:`Dining Philosophers Sample <dining-philosophers-sample>` using the
9+
This sample implements Zephyr's :zephyr:code-sample:`dining-philosophers` sample using the
1010
:ref:`POSIX API <posix_support>`. The source code for this sample can be found under
1111
:file:`samples/posix/philosophers`.
1212

@@ -52,5 +52,4 @@ Like the original philosophers sample, the POSIX variant also enables
5252
Additional Information
5353
**********************
5454

55-
For additional information, please refer to the
56-
:ref:`Dining Philosophers Sample <dining-philosophers-sample>`.
55+
For additional information, please refer to the :zephyr:code-sample:`dining-philosophers` sample.

0 commit comments

Comments
 (0)