Skip to content

Commit cae12e6

Browse files
kartbendanieldegrasse
authored andcommitted
doc: twister: inline twister --help output into the docs
In order to make it easier for folks to discover available twister options when using/searching the documentation, or when making external search in their favorite search engine, inline the output of `twister --help` into the docs so as to have an always up-to-date and searchable snapshot of it. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 70b9109 commit cae12e6

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"sphinx.ext.autodoc",
7777
"sphinx.ext.graphviz",
7878
"sphinxcontrib.jquery",
79+
"sphinxcontrib.programoutput",
7980
"zephyr.application",
8081
"zephyr.html_redirects",
8182
"zephyr.kconfig",

doc/develop/test/twister.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ The list of command line options supported by twister can be viewed using:
8383

8484
.. group-tab:: Linux
8585

86-
.. code-block:: bash
87-
88-
$ ./scripts/twister --help
86+
.. command-output:: $ZEPHYR_BASE/scripts/twister --help
87+
:shell:
8988

9089
.. group-tab:: Windows
9190

doc/requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ sphinx-copybutton
1010
sphinx-togglebutton
1111
sphinx-sitemap
1212
sphinx-autobuild
13+
sphinxcontrib.programoutput
1314

1415
# YAML validation. Used by zephyr_module.
1516
PyYAML>=6.0

doc/requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ sphinx==8.1.3 ; python_full_version < '3.11' \
508508
# sphinx-tabs
509509
# sphinx-togglebutton
510510
# sphinxcontrib-jquery
511+
# sphinxcontrib-programoutput
511512
# sphinxcontrib-svg2pdfconverter
512513
sphinx==8.2.3 ; python_full_version >= '3.11' \
513514
--hash=sha256:398ad29dee7f63a75888314e9424d40f52ce5a6a87ae88e7071e80af296ec348 \
@@ -522,6 +523,7 @@ sphinx==8.2.3 ; python_full_version >= '3.11' \
522523
# sphinx-tabs
523524
# sphinx-togglebutton
524525
# sphinxcontrib-jquery
526+
# sphinxcontrib-programoutput
525527
# sphinxcontrib-svg2pdfconverter
526528
sphinx-autobuild==2024.10.3 \
527529
--hash=sha256:158e16c36f9d633e613c9aaf81c19b0fc458ca78b112533b20dafcda430d60fa \
@@ -575,6 +577,10 @@ sphinxcontrib-jsmath==1.0.1 \
575577
--hash=sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178 \
576578
--hash=sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8
577579
# via sphinx
580+
sphinxcontrib-programoutput==0.18 \
581+
--hash=sha256:09e68b6411d937a80b6085f4fdeaa42e0dc5555480385938465f410589d2eed8 \
582+
--hash=sha256:8a651bc85de69a808a064ff0e48d06c12b9347da4fe5fdb1e94914b01e1b0c36
583+
# via -r requirements.in
578584
sphinxcontrib-qthelp==2.0.0 \
579585
--hash=sha256:4fe7d0ac8fc171045be623aba3e2a8f613f8682731f9153bb2e40ece16b9bbab \
580586
--hash=sha256:b18a828cdba941ccd6ee8445dbe72ffa3ef8cbe7505d8cd1fa0d42d3f2d5f3eb

0 commit comments

Comments
 (0)