All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/16] docs: highlight code blocks as BitBake by default
@ 2026-12-01 15:22 Trevor Woerner
  2026-12-01 15:22 ` [PATCH 01/16] brief-yoctoprojectqs: state the language of the blocks that are not BitBake Trevor Woerner
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

This makes BitBake the default highlight language for the manuals, as
decided in [1], so most of their code is highlighted as what it is and
only the blocks that are something else need to say so.

The blocks that are not BitBake get their language first, so every
commit builds clean under -W on its own:

  - a patch per manual, giving every block that is not BitBake an
    explicit language
  - a patch showing as text the few BitBake examples the Pygments
    BitBake lexer misreads, each with a comment saying why
  - a patch removing the file-wide ".. highlight::" directives, kept
    separate as asked
  - a patch setting highlight_language in conf.py
  - a patch writing the rule down in standards.md

Whether a block is BitBake was decided by asking BitBake's own parser,
and the language of each remaining block by reading it.

[1] https://lore.kernel.org/r/DL309JI7KO5S.31U2Y9LIHSH9Q@bootlin.com

Trevor Woerner (16):
  brief-yoctoprojectqs: state the language of the blocks that are not
    BitBake
  bsp-manual: state the language of the blocks that are not BitBake
  contributor-guide: state the language of the blocks that are not
    BitBake
  dev-manual: state the language of the blocks that are not BitBake
  kernel-dev: state the language of the blocks that are not BitBake
  migration-guides: state the language of the blocks that are not
    BitBake
  overview-manual: state the language of the blocks that are not BitBake
  profile-manual: state the language of the blocks that are not BitBake
  ref-manual: state the language of the blocks that are not BitBake
  security-manual: state the language of the blocks that are not BitBake
  test-manual: state the language of the blocks that are not BitBake
  toaster-manual: state the language of the blocks that are not BitBake
  docs: show the examples the BitBake lexer misreads as text
  docs: drop the file-wide highlight directives
  conf.py: default the highlight language to bitbake
  standards: describe how a code block states its language

 documentation/brief-yoctoprojectqs/index.rst  |   8 +-
 documentation/bsp-manual/bsp.rst              |  80 +++-
 documentation/conf.py                         |   3 +
 .../ai-assisted-contribution-policy.rst       |   8 +-
 .../contributor-guide/recipe-style-guide.rst  |  24 +-
 .../contributor-guide/submit-changes.rst      | 144 +++++--
 documentation/dev-manual/bblock.rst           |  36 +-
 documentation/dev-manual/bmaptool.rst         |  24 +-
 documentation/dev-manual/build-quality.rst    |  16 +-
 documentation/dev-manual/building.rst         |  32 +-
 .../dev-manual/creating-fragments.rst         |  16 +-
 ...ustom-template-configuration-directory.rst |  12 +-
 documentation/dev-manual/debugging.rst        | 176 ++++++--
 .../dev-manual/development-shell.rst          |   8 +-
 documentation/dev-manual/devtool.rst          | 148 +++++--
 documentation/dev-manual/disk-space.rst       |   8 +-
 .../efficiently-fetching-sources.rst          |   4 +-
 .../dev-manual/error-reporting-tool.rst       |   8 +-
 .../dev-manual/gobject-introspection.rst      |   4 +-
 documentation/dev-manual/hashequivserver.rst  |   8 +-
 documentation/dev-manual/layers.rst           |  52 ++-
 documentation/dev-manual/libraries.rst        |   8 +-
 .../dev-manual/limiting-resources.rst         |   8 +-
 documentation/dev-manual/multiconfig.rst      |  20 +-
 documentation/dev-manual/new-machine.rst      |   4 +-
 documentation/dev-manual/new-recipe.rst       |  36 +-
 documentation/dev-manual/packages.rst         |  56 ++-
 .../dev-manual/prebuilt-libraries.rst         |   4 +-
 .../dev-manual/python-development-shell.rst   |   4 +-
 documentation/dev-manual/qemu.rst             |  48 ++-
 documentation/dev-manual/quilt.rst            |  16 +-
 .../dev-manual/sstate-mirrors-setup.rst       |   8 +-
 documentation/dev-manual/start.rst            |  24 +-
 .../dev-manual/temporary-source-code.rst      |  12 +-
 .../dev-manual/upgrading-recipes.rst          |  76 +++-
 documentation/dev-manual/wayland.rst          |   8 +-
 documentation/dev-manual/x32-psabi.rst        |   4 +-
 documentation/kernel-dev/advanced.rst         |  74 +++-
 documentation/kernel-dev/common.rst           | 208 +++++++---
 documentation/kernel-dev/concepts-appx.rst    |   8 +-
 documentation/kernel-dev/maint-appx.rst       |  20 +-
 .../migration-guides/migration-1.3.rst        |   4 +-
 .../migration-guides/migration-1.4.rst        |   8 +-
 .../migration-guides/migration-1.7.rst        |   4 +-
 .../migration-guides/migration-2.0.rst        |   4 +-
 .../migration-guides/migration-2.1.rst        |   8 +-
 .../migration-guides/migration-2.2.rst        |  16 +-
 .../migration-guides/migration-2.3.rst        |   8 +-
 .../migration-guides/migration-2.5.rst        |   8 +-
 .../migration-guides/migration-2.6.rst        |   8 +-
 .../migration-guides/migration-3.4.rst        |   4 +-
 .../migration-guides/migration-4.0.rst        |   8 +-
 .../migration-guides/migration-4.1.rst        |   8 +-
 .../migration-guides/migration-5.2.rst        |  12 +-
 .../migration-guides/migration-5.3.rst        |  24 +-
 .../migration-guides/migration-6.0.rst        |  22 +-
 .../migration-guides/migration-6.1.rst        |   8 +-
 .../migration-guides/release-notes-4.2.rst    |   4 +-
 .../migration-guides/release-notes-5.1.rst    |   4 +-
 .../migration-guides/release-notes-5.3.rst    |  16 +-
 documentation/overview-manual/concepts.rst    |  48 ++-
 .../development-environment.rst               |   8 +-
 documentation/profile-manual/intro.rst        |   8 +-
 documentation/profile-manual/usage.rst        | 385 +++++++++++++-----
 documentation/ref-manual/classes.rst          |  74 +++-
 .../ref-manual/devtool-reference.rst          |  80 +++-
 documentation/ref-manual/faq.rst              |  20 +-
 documentation/ref-manual/features.rst         |   4 +-
 documentation/ref-manual/fragments.rst        |  32 +-
 documentation/ref-manual/images.rst           |   4 +-
 documentation/ref-manual/qa-checks.rst        |  24 +-
 documentation/ref-manual/structure.rst        |  28 +-
 .../ref-manual/system-requirements.rst        |  64 ++-
 documentation/ref-manual/tasks.rst            |  44 +-
 documentation/ref-manual/terms.rst            |  16 +-
 .../ubuntu-debian-host-packages-nodocs.rst    |  16 +-
 documentation/ref-manual/variables.rst        | 182 +++++++--
 .../security-manual/vulnerabilities.rst       |  12 +-
 documentation/standards.md                    |  22 +
 documentation/test-manual/intro.rst           |  72 +++-
 documentation/test-manual/ptest.rst           |  12 +-
 .../test-manual/reproducible-builds.rst       |   4 +-
 documentation/test-manual/runtime-testing.rst |  36 +-
 .../test-manual/understand-autobuilder.rst    |  20 +-
 documentation/toaster-manual/reference.rst    |  26 +-
 .../toaster-manual/setup-and-use.rst          | 134 ++++--
 documentation/toaster-manual/start.rst        |  18 +-
 87 files changed, 2277 insertions(+), 759 deletions(-)

-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH 01/16] brief-yoctoprojectqs: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 02/16] bsp-manual: " Trevor Woerner
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/brief-yoctoprojectqs/index.rst | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/documentation/brief-yoctoprojectqs/index.rst b/documentation/brief-yoctoprojectqs/index.rst
index 45c058c762d1..9729c1f1c2c1 100644
--- a/documentation/brief-yoctoprojectqs/index.rst
+++ b/documentation/brief-yoctoprojectqs/index.rst
@@ -305,7 +305,9 @@ an entire Linux distribution, including the toolchain, from source.
        can download these artifacts faster than you would be able to build them.
 
        To use such mirrors, enable the
-       :ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment::
+       :ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment:
+
+       .. code-block:: console
 
           $ bitbake-config-build enable-fragment core/yocto/sstate-mirror-cdn
 
@@ -371,7 +373,9 @@ layer>`:
     adds the :yocto_git:`meta-raspberrypi </meta-raspberrypi>` BSP
     layer.
 
-    First, clone the layer next to the other layers::
+    First, clone the layer next to the other layers:
+
+    .. code-block:: console
 
       $ git clone -b &DISTRO_NAME_NO_CAP; https://git.yoctoproject.org/meta-raspberrypi ../layers/meta-raspberrypi
 
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 02/16] bsp-manual: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
  2026-12-01 15:22 ` [PATCH 01/16] brief-yoctoprojectqs: state the language of the blocks that are not BitBake Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 03/16] contributor-guide: " Trevor Woerner
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/bsp-manual/bsp.rst | 80 ++++++++++++++++++++++++--------
 1 file changed, 60 insertions(+), 20 deletions(-)

diff --git a/documentation/bsp-manual/bsp.rst b/documentation/bsp-manual/bsp.rst
index 9d9e19f3deb1..9a4781b9947d 100644
--- a/documentation/bsp-manual/bsp.rst
+++ b/documentation/bsp-manual/bsp.rst
@@ -26,7 +26,9 @@ A BSP consists of a file structure inside a base directory.
 Collectively, you can think of the base directory, its file structure,
 and the contents as a BSP layer. Although not a strict requirement, BSP
 layers in the Yocto Project use the following well-established naming
-convention::
+convention:
+
+.. code-block:: text
 
    meta-bsp_root_name
 
@@ -58,7 +60,9 @@ Each repository is a BSP layer supported by the Yocto Project (e.g.
 ``meta-raspberrypi`` and ``meta-intel``). Each of these layers is a
 repository unto itself and clicking on the layer name displays two URLs
 from which you can clone the layer's repository to your local system.
-Here is an example that clones the Raspberry Pi BSP layer::
+Here is an example that clones the Raspberry Pi BSP layer:
+
+.. code-block:: console
 
    $ git clone https://git.yoctoproject.org/meta-raspberrypi
 
@@ -175,7 +179,9 @@ section.
    #. *Navigate to Your Source Directory:* Typically, you set up the
       ``meta-intel`` Git repository next to the other layers in your build.
 
-   #. *Clone the Layer:* ::
+   #. *Clone the Layer:*
+
+      .. code-block:: console
 
          $ git clone https://git.yoctoproject.org/meta-intel.git
          Cloning into 'meta-intel'...
@@ -188,7 +194,9 @@ section.
 
    #. *Check Out the Proper Branch:* The branch you check out for
       ``meta-intel`` must match the same branch you are using for the
-      Yocto Project release (e.g. ``&DISTRO_NAME_NO_CAP;``)::
+      Yocto Project release (e.g. ``&DISTRO_NAME_NO_CAP;``):
+
+      .. code-block:: console
 
          $ cd meta-intel
          $ git checkout -b &DISTRO_NAME_NO_CAP; remotes/origin/&DISTRO_NAME_NO_CAP;
@@ -208,7 +216,9 @@ section.
    The process is identical to the process used for the ``meta-intel``
    layer except for the layer's name. For example, if you determine that
    your hardware most closely matches the ``meta-raspberrypi``, clone
-   that layer::
+   that layer:
+
+   .. code-block:: console
 
       $ git clone https://git.yoctoproject.org/meta-raspberrypi
       Cloning into 'meta-raspberrypi'...
@@ -222,7 +232,9 @@ section.
 #. *Initialize the Build Environment:* While in the :term:`Source Directory`,
    run the :ref:`structure-core-script` environment setup
    script located in :term:`OpenEmbedded-Core (OE-Core)` to define the OpenEmbedded
-   build environment on your build host. ::
+   build environment on your build host.
+
+   .. code-block:: console
 
       $ source layers/openembedded-core/oe-init-build-env
 
@@ -269,7 +281,9 @@ Project. For that list of requirements, see the
 
 Below is the typical directory structure for a BSP layer. While this
 basic form represents the standard, realize that the actual layout for
-individual BSPs could differ. ::
+individual BSPs could differ.
+
+.. code-block:: text
 
    meta-bsp_root_name/
    meta-bsp_root_name/bsp_license_file
@@ -447,7 +461,9 @@ The following sections describe each part of the proposed BSP format.
 License Files
 -------------
 
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
 
    meta-bsp_root_name/bsp_license_file
 
@@ -465,7 +481,9 @@ section in the Yocto Project Development Tasks Manual.
 README File
 -----------
 
-You can find this file in the BSP Layer at::
+You can find this file in the BSP Layer at:
+
+.. code-block:: text
 
    meta-bsp_root_name/README
 
@@ -480,7 +498,9 @@ name of the BSP maintainer with his or her contact information.
 README.sources File
 -------------------
 
-You can find this file in the BSP Layer at::
+You can find this file in the BSP Layer at:
+
+.. code-block:: text
 
    meta-bsp_root_name/README.sources
 
@@ -499,7 +519,9 @@ used to generate the images that ship with the BSP.
 Pre-built User Binaries
 -----------------------
 
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
 
    meta-bsp_root_name/binary/bootable_images
 
@@ -522,7 +544,9 @@ information on the Metadata.
 Layer Configuration File
 ------------------------
 
-You can find this file in the BSP Layer at::
+You can find this file in the BSP Layer at:
+
+.. code-block:: text
 
    meta-bsp_root_name/conf/layer.conf
 
@@ -570,7 +594,9 @@ recognize the BSP.
 Hardware Configuration Options
 ------------------------------
 
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
 
    meta-bsp_root_name/conf/machine/*.conf
 
@@ -608,7 +634,9 @@ configuration file. For example, the Raspberry Pi BSP
 Miscellaneous BSP-Specific Recipe Files
 ---------------------------------------
 
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
 
    meta-bsp_root_name/recipes-bsp/*
 
@@ -618,7 +646,9 @@ Raspberry Pi BSP, there is the ``formfactor_%.bbappend`` file, which
 is an append file used to augment the recipe that starts the build.
 Furthermore, there are machine-specific settings used during the build
 that are defined by the ``machconfig`` file further down in the
-directory. Here is the ``machconfig`` file for the Raspberry Pi BSP::
+directory. Here is the ``machconfig`` file for the Raspberry Pi BSP:
+
+.. code-block:: shell
 
    HAVE_TOUCHSCREEN=0
    HAVE_KEYBOARD=1
@@ -638,7 +668,9 @@ directory. Here is the ``machconfig`` file for the Raspberry Pi BSP::
 Display Support Files
 ---------------------
 
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
 
    meta-bsp_root_name/recipes-graphics/*
 
@@ -649,7 +681,9 @@ to support a display are kept here.
 Linux Kernel Configuration
 --------------------------
 
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
 
    meta-bsp_root_name/recipes-kernel/linux/linux*.bbappend
    meta-bsp_root_name/recipes-kernel/linux/*.bb
@@ -693,7 +727,9 @@ in the Yocto Project Linux Kernel Development Manual.
 An alternate scenario is when you create your own kernel recipe for the
 BSP. A good example of this is the Raspberry Pi BSP. If you examine the
 ``recipes-kernel/linux`` directory in that layer you see the following
-Raspberry Pi-specific recipes and associated files::
+Raspberry Pi-specific recipes and associated files:
+
+.. code-block:: text
 
    files/
    linux-raspberrypi_6.12.bb
@@ -1033,14 +1069,18 @@ also supports several other machines:
    directory.
 
 #. Create and place the new ``interfaces`` configuration file in the
-   BSP's layer here::
+   BSP's layer here:
+
+   .. code-block:: text
 
       meta-xyz/recipes-core/init-ifupdown/files/xyz-machine-one/interfaces
 
    .. note::
 
       If the ``meta-xyz`` layer did not support multiple machines, you would place
-      the interfaces configuration file in the layer here::
+      the interfaces configuration file in the layer here:
+
+      .. code-block:: text
 
          meta-xyz/recipes-core/init-ifupdown/files/interfaces
 
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 03/16] contributor-guide: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
  2026-12-01 15:22 ` [PATCH 01/16] brief-yoctoprojectqs: state the language of the blocks that are not BitBake Trevor Woerner
  2026-12-01 15:22 ` [PATCH 02/16] bsp-manual: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 04/16] dev-manual: " Trevor Woerner
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 .../ai-assisted-contribution-policy.rst       |   8 +-
 .../contributor-guide/recipe-style-guide.rst  |  24 ++-
 .../contributor-guide/submit-changes.rst      | 144 +++++++++++++-----
 3 files changed, 132 insertions(+), 44 deletions(-)

diff --git a/documentation/contributor-guide/ai-assisted-contribution-policy.rst b/documentation/contributor-guide/ai-assisted-contribution-policy.rst
index f35b58fdff95..f9bf075356a3 100644
--- a/documentation/contributor-guide/ai-assisted-contribution-policy.rst
+++ b/documentation/contributor-guide/ai-assisted-contribution-policy.rst
@@ -141,11 +141,15 @@ In patches and commits
 **Where AI-generated code is contributed to the project, commit messages
 must include the** ``AI-Generated`` **tag identifying the AI tool or
 framework and the specific AI model used**. We encourage contributors to
-be as specific as they can be. For example::
+be as specific as they can be. For example:
+
+.. code-block:: text
 
     AI-Generated: Claude Code, Opus 5.0
 
-Or::
+Or:
+
+.. code-block:: text
 
     AI-Generated: Copilot, GPT-5.5
 
diff --git a/documentation/contributor-guide/recipe-style-guide.rst b/documentation/contributor-guide/recipe-style-guide.rst
index fe12a8e6d826..76671e7f8502 100644
--- a/documentation/contributor-guide/recipe-style-guide.rst
+++ b/documentation/contributor-guide/recipe-style-guide.rst
@@ -270,7 +270,9 @@ License Updates
 When you change the :term:`LICENSE` or :term:`LIC_FILES_CHKSUM` in the recipe
 due to upstream making modifications to the license files, you need to briefly
 explain the reason for the change via a ``License-Update:`` tag. Often it's
-quite trivial, such as::
+quite trivial, such as:
+
+.. code-block:: text
 
     License-Update: copyright years refreshed
 
@@ -372,7 +374,9 @@ responsibility for upstreaming.
 Examples
 --------
 
-Here's an example of a patch that has been submitted upstream::
+Here's an example of a patch that has been submitted upstream:
+
+.. code-block:: text
 
    rpm: Adjusted the foo setting in bar
 
@@ -388,7 +392,9 @@ Here's an example of a patch that has been submitted upstream::
 A future update can change the value to ``Backport`` or ``Denied`` as
 appropriate.
 
-Another example of a patch that is specific to OpenEmbedded::
+Another example of a patch that is specific to OpenEmbedded:
+
+.. code-block:: text
 
    Do not treat warnings as errors
 
@@ -398,7 +404,9 @@ Another example of a patch that is specific to OpenEmbedded::
 
    Upstream-Status: Inappropriate [oe specific]
 
-Here's a patch that has been backported from an upstream commit::
+Here's a patch that has been backported from an upstream commit:
+
+.. code-block:: text
 
    include missing sys/file.h for LOCK_EX
 
@@ -414,7 +422,9 @@ one CVE is fixed, separate them using spaces.
 CVE Examples
 ------------
 
-This should be the header of patch that fixes :cve_nist:`2015-8370` in GRUB2::
+This should be the header of patch that fixes :cve_nist:`2015-8370` in GRUB2:
+
+.. code-block:: text
 
    grub2: Fix CVE-2015-8370
 
@@ -434,7 +444,9 @@ Patch format
 
 By default, patches created with ``git format-patch`` have a `Git` version signature at the end.
 To avoid having a `Git` signature at the end of generated or updated patches,
-you can use `Git` configuration settings::
+you can use `Git` configuration settings:
+
+.. code-block:: console
 
    $ git config --global format.signature ""
 
diff --git a/documentation/contributor-guide/submit-changes.rst b/documentation/contributor-guide/submit-changes.rst
index 56e4250430fe..02db00dd9653 100644
--- a/documentation/contributor-guide/submit-changes.rst
+++ b/documentation/contributor-guide/submit-changes.rst
@@ -55,12 +55,16 @@ Set up Git
 ----------
 
 The first thing to do is to install Git packages. Here is an example
-on Debian and Ubuntu::
+on Debian and Ubuntu:
+
+.. code-block:: console
 
    $ sudo apt install git-core git-email
 
 Then, you need to set a name and e-mail address that Git will
-use to identify your commits::
+use to identify your commits:
+
+.. code-block:: console
 
    $ git config --global user.name "<firstname> <lastname>"
    $ git config --global user.email "<email>"
@@ -68,7 +72,9 @@ use to identify your commits::
 By default, Git adds a signature line at the end of patches containing the Git
 version. We suggest to remove it as it doesn't add useful information.
 
-Remove it with the following command::
+Remove it with the following command:
+
+.. code-block:: console
 
    $ git config --global format.signature ""
 
@@ -77,7 +83,9 @@ Clone the Git repository for the component to modify
 
 After identifying the component to modify as described in the
 ":doc:`/contributor-guide/identify-component`" section, clone the
-corresponding Git repository. Here is an example for OpenEmbedded-Core::
+corresponding Git repository. Here is an example for OpenEmbedded-Core:
+
+.. code-block:: console
 
   $ git clone https://git.openembedded.org/openembedded-core
   $ cd openembedded-core
@@ -87,7 +95,9 @@ Create a new branch
 
 Then, create a new branch in your local Git repository
 for your changes, starting from the reference branch in the upstream
-repository (often called ``master``)::
+repository (often called ``master``):
+
+.. code-block:: console
 
    $ git checkout <ref-branch>
    $ git checkout -b my-changes
@@ -119,11 +129,15 @@ to add the upgraded version.
 
 #. *Commit Your Changes:* This is when you can create separate commits. For
    each commit to create, use the ``git commit -s`` command with the files
-   or directories you want to include in the commit::
+   or directories you want to include in the commit:
+
+   .. code-block:: console
 
       $ git commit -s file1 file2 dir1 dir2 ...
 
-   To include all staged files::
+   To include all staged files:
+
+   .. code-block:: console
 
       $ git commit -sa
 
@@ -175,7 +189,9 @@ to add the upgraded version.
 
           To find a suitable prefix for the commit summary, a good idea
           is to look for prefixes used in previous commits touching the
-          same files or directories::
+          same files or directories:
+
+          .. code-block:: console
 
              $ git log --oneline <paths>
 
@@ -196,7 +212,9 @@ to add the upgraded version.
        specific convention for bug references --- any commit that addresses
        a specific bug should use the following form for the body of the commit
        message. Be sure to use the actual bug-tracking ID from
-       Bugzilla for bug-id::
+       Bugzilla for bug-id:
+
+       .. code-block:: text
 
           single-line summary of change
 
@@ -276,7 +294,9 @@ Here is the general procedure on how to create patches to be sent through email:
    the series of patches you are about to send.
 
    For this purpose, a good solution is to store the cover letter contents
-   in the branch itself::
+   in the branch itself:
+
+   .. code-block:: console
 
       $ git branch --edit-description
 
@@ -291,12 +311,16 @@ Here is the general procedure on how to create patches to be sent through email:
    generate patch files for each of the commits in your branch. You need
    to pass the reference branch your branch starts from.
 
-   If you branch didn't need a description in the previous step::
+   If you branch didn't need a description in the previous step:
+
+   .. code-block:: console
 
       $ git format-patch <ref-branch>
 
    If you filled a description for your branch, you will want to generate
-   a cover letter too::
+   a cover letter too:
+
+   .. code-block:: console
 
       $ git format-patch --cover-letter --cover-from-description=auto <ref-branch>
 
@@ -332,19 +356,25 @@ sure that your patches are well-formatted and contain important info for
 maintenance purposes, such as the ``Signed-off-by`` presence. Note that no
 functional testing of the changes will be performed by ``patchtest``. Currently,
 it only supports testing patches for ``openembedded-core`` branches. To setup,
-perform the following::
+perform the following:
+
+.. code-block:: console
 
     $ pip install -r meta/lib/patchtest/requirements.txt
     $ source oe-init-build-env
     $ bitbake-layers add-layer ../meta-selftest
 
 Once these steps are complete and you have generated your patch files,
-you can run ``patchtest`` like so::
+you can run ``patchtest`` like so:
+
+.. code-block:: console
 
     $ patchtest --patch <patch_name>
 
 Alternatively, if you want ``patchtest`` to iterate over and test
-multiple patches stored in a directory, you can use::
+multiple patches stored in a directory, you can use:
+
+.. code-block:: console
 
     $ patchtest --directory <directory_name>
 
@@ -352,7 +382,9 @@ By default, ``patchtest`` uses its own modules' file paths to determine what
 repository and test suite to check patches against. If you wish to test
 patches against a repository other than ``openembedded-core`` and/or use
 a different set of tests, you can use the ``--repodir`` and ``--testdir``
-flags::
+flags:
+
+.. code-block:: console
 
     $ patchtest --patch <patch_name> --repodir <path/to/repo> --testdir <path/to/testdir>
 
@@ -395,7 +427,9 @@ through a direct SMTP configuration in your Git ``~/.gitconfig`` file.
 
 Here are the settings for letting ``git send-email`` send e-mail through your
 regular STMP server, such as ``smtp.gmail.com`` for a Google Mail
-account::
+account:
+
+.. code-block:: console
 
    $ git config --global sendemail.smtpserver <smtp server>
    $ git config --global sendemail.smtpserverport 587
@@ -462,7 +496,9 @@ Sending Patches via Email
 -------------------------
 
 At this stage, you are ready to send your patches via email. Here's the
-typical usage of ``git send-email``::
+typical usage of ``git send-email``:
+
+.. code-block:: console
 
    $ git send-email --to <mailing-list-address> *.patch
 
@@ -475,7 +511,9 @@ in any commit tags such as ``Signed-off-by`` or ``Reported-by``.
 In case you are sending patches for :oe_git:`meta-openembedded </meta-openembedded/>`
 or any layer other than :oe_git:`openembedded-core </openembedded-core/>`,
 please add the appropriate prefix so that it is clear which layer the patch is intended
-to be applied to::
+to be applied to:
+
+.. code-block:: console
 
    $ git format-patch --subject-prefix="meta-oe][PATCH" ...
 
@@ -487,13 +525,17 @@ to be applied to::
    each patch.
 
    Here's a command you can use if you just have one patch in your
-   branch::
+   branch:
+
+   .. code-block:: console
 
       $ git send-email --to <mailing-list-address> -1
 
    If you have multiple patches and a cover letter, you can send
    patches for all the commits between the reference branch
-   and the tip of your branch::
+   and the tip of your branch:
+
+   .. code-block:: console
 
       $ git send-email --cover-letter --cover-from-description=auto --to <mailing-list-address> -M <ref-branch>
 
@@ -508,7 +550,9 @@ Fixing your From identity
 
 We have a frequent issue with contributors whose patches are received through
 a ``From`` field which doesn't match the ``Signed-off-by`` information. Here is
-a typical example for people sending from a domain name with :wikipedia:`DMARC`::
+a typical example for people sending from a domain name with :wikipedia:`DMARC`:
+
+.. code-block:: text
 
    From: "Linus Torvalds via lists.openembedded.org <linus.torvalds=kernel.org@lists.openembedded.org>"
 
@@ -516,7 +560,9 @@ This ``From`` field is used by ``git am`` to recreate commits with the right
 author name. The following will ensure that your e-mails have an additional
 ``From`` field at the beginning of the Email body, and therefore that
 maintainers accepting your patches don't have to fix commit author information
-manually::
+manually:
+
+.. code-block:: console
 
    $ git config --global sendemail.from "<email>"
 
@@ -529,12 +575,16 @@ Streamlining git send-email usage
 If you want to save time and not be forced to remember the right options to use
 with ``git send-email``, you can use Git configuration settings.
 
--  To set the right mailing list address for a given repository::
+-  To set the right mailing list address for a given repository:
+
+   .. code-block:: console
 
       $ git config --local sendemail.to openembedded-devel@lists.openembedded.org
 
 -  If the mailing list requires a subject prefix for the layer
-   (this only works when the repository only contains one layer)::
+   (this only works when the repository only contains one layer):
+
+   .. code-block:: console
 
       $ git config --local format.subjectprefix "meta-something][PATCH"
 
@@ -570,7 +620,9 @@ have been followed:
     -  Include your preferred branch prefix for ``-contrib`` repositories.
 
 #. *Push Your Commits to the "Contrib" Upstream:* Push your
-   changes to that repository::
+   changes to that repository:
+
+   .. code-block:: console
 
       $ git push upstream_remote_repo local_branch_name
 
@@ -579,7 +631,9 @@ have been followed:
    working in a local branch named `your_name`\ ``/README``. The following
    command pushes your local commits to the ``meta-intel-contrib``
    upstream repository and puts the commit in a branch named
-   `your_name`\ ``/README``::
+   `your_name`\ ``/README``:
+
+   .. code-block:: console
 
       $ git push meta-intel-contrib your_name/README
 
@@ -596,7 +650,9 @@ have been followed:
 
    -  *Search by File:* Using :ref:`overview-manual/development-environment:git`, you can
       enter the following command to bring up a short list of all
-      commits against a specific file::
+      commits against a specific file:
+
+      .. code-block:: console
 
          $ git shortlog -- filename
 
@@ -628,7 +684,9 @@ have been followed:
    First, create the pull request. For example, the following command
    runs the script, specifies the upstream repository in the contrib
    directory into which you pushed the change, and provides a subject
-   line in the created patch files::
+   line in the created patch files:
+
+   .. code-block:: console
 
       $ ./scripts/create-pull-request -u meta-intel-contrib -s "Updated Manual Section Reference in README"
 
@@ -641,7 +699,9 @@ have been followed:
    editing the cover letter, send the pull request. For example, the
    following command runs the script and specifies the patch directory
    and email address. In this example, the email address is a mailing
-   list::
+   list:
+
+   .. code-block:: console
 
       $ ./scripts/send-pull-request -p ~/meta-intel/pull-10565 -t meta-intel@lists.yoctoproject.org
 
@@ -650,7 +710,9 @@ have been followed:
    .. note::
 
       For help on using these scripts, simply provide the ``-h``
-      argument as follows::
+      argument as follows:
+
+      .. code-block:: console
 
               $ ./scripts/create-pull-request -h
               $ ./scripts/send-pull-request -h
@@ -718,7 +780,9 @@ follows:
       email to include the name of the stable branch which you are
       targetting. This can be done using the ``--subject-prefix`` argument to
       ``git format-patch``, for example to submit a patch to the
-      "&DISTRO_NAME_NO_CAP_MINUS_ONE;" branch use::
+      "&DISTRO_NAME_NO_CAP_MINUS_ONE;" branch use:
+
+      .. code-block:: console
 
          $ git format-patch --subject-prefix='&DISTRO_NAME_NO_CAP_MINUS_ONE;][PATCH' ...
 
@@ -739,12 +803,16 @@ without the reported issues.
 
    It is a good idea to send a copy to the reviewers who provided feedback
    to the previous version of the patch. You can make sure this happens
-   by adding a ``CC`` tag to the commit description::
+   by adding a ``CC`` tag to the commit description:
+
+   .. code-block:: text
 
       CC: William Shakespeare <bill@yoctoproject.org>
 
 A single patch can be amended using ``git commit --amend``, and multiple
-patches can be easily reworked and reordered through an interactive Git rebase::
+patches can be easily reworked and reordered through an interactive Git rebase:
+
+.. code-block:: console
 
    $ git rebase -i <ref-branch>
 
@@ -754,7 +822,9 @@ for practical guidance about using Git interactive rebasing.
 You should also modify the ``[PATCH]`` tag in the email subject line when
 sending the revised patch to mark the new iteration as ``[PATCH v2]``,
 ``[PATCH v3]``, etc as appropriate. This can be done by passing the ``-v``
-argument to ``git format-patch`` with a version number::
+argument to ``git format-patch`` with a version number:
+
+.. code-block:: console
 
    $ git format-patch -v2 <ref-branch>
 
@@ -768,7 +838,9 @@ suitable for inclusion in the commit message (i.e. the git history) itself.
 Providing a patch version changelog makes it easier for maintainers and
 reviewers to succinctly understand what changed in all versions of the
 patch, without having to consult alternate sources of information, such as
-searching through messages on a mailing list. For example::
+searching through messages on a mailing list. For example:
+
+.. code-block:: text
 
    <patch title>
 
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 04/16] dev-manual: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (2 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 03/16] contributor-guide: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 05/16] kernel-dev: " Trevor Woerner
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/dev-manual/bblock.rst           |  36 +++-
 documentation/dev-manual/bmaptool.rst         |  24 ++-
 documentation/dev-manual/build-quality.rst    |  16 +-
 documentation/dev-manual/building.rst         |  32 +++-
 .../dev-manual/creating-fragments.rst         |  16 +-
 ...ustom-template-configuration-directory.rst |  12 +-
 documentation/dev-manual/debugging.rst        | 176 +++++++++++++-----
 .../dev-manual/development-shell.rst          |   8 +-
 documentation/dev-manual/devtool.rst          | 148 +++++++++++----
 documentation/dev-manual/disk-space.rst       |   8 +-
 .../efficiently-fetching-sources.rst          |   4 +-
 .../dev-manual/error-reporting-tool.rst       |   8 +-
 .../dev-manual/gobject-introspection.rst      |   4 +-
 documentation/dev-manual/hashequivserver.rst  |   8 +-
 documentation/dev-manual/layers.rst           |  52 ++++--
 documentation/dev-manual/libraries.rst        |   8 +-
 .../dev-manual/limiting-resources.rst         |   8 +-
 documentation/dev-manual/multiconfig.rst      |  20 +-
 documentation/dev-manual/new-machine.rst      |   4 +-
 documentation/dev-manual/new-recipe.rst       |  36 +++-
 documentation/dev-manual/packages.rst         |  56 ++++--
 .../dev-manual/prebuilt-libraries.rst         |   4 +-
 .../dev-manual/python-development-shell.rst   |   4 +-
 documentation/dev-manual/qemu.rst             |  48 +++--
 documentation/dev-manual/quilt.rst            |  16 +-
 .../dev-manual/sstate-mirrors-setup.rst       |   8 +-
 documentation/dev-manual/start.rst            |  24 ++-
 .../dev-manual/temporary-source-code.rst      |  12 +-
 .../dev-manual/upgrading-recipes.rst          |  76 ++++++--
 documentation/dev-manual/wayland.rst          |   8 +-
 documentation/dev-manual/x32-psabi.rst        |   4 +-
 31 files changed, 666 insertions(+), 222 deletions(-)

diff --git a/documentation/dev-manual/bblock.rst b/documentation/dev-manual/bblock.rst
index b9d6606a99b4..59207383e576 100644
--- a/documentation/dev-manual/bblock.rst
+++ b/documentation/dev-manual/bblock.rst
@@ -32,17 +32,23 @@ specific signatures, forcing BitBake to use the sstate cache for them.
 Locking tasks and recipes
 -------------------------
 
-To lock a recipe, use::
+To lock a recipe, use:
+
+.. code-block:: console
 
    $ bblock recipe
 
-You can also use a space-separated list of recipes to lock multiple recipes::
+You can also use a space-separated list of recipes to lock multiple recipes:
+
+.. code-block:: console
 
    $ bblock recipe1 recipe2
 
 Locking a recipe means locking all tasks of the recipe. If you need to
 lock only particular tasks, use the `-t` option with a comma-separated
-list of tasks::
+list of tasks:
+
+.. code-block:: console
 
   $ bblock -t task1,task2 recipe
 
@@ -50,21 +56,29 @@ list of tasks::
 Unlocking tasks and recipes
 ---------------------------
 
-To unlock a recipe, use the ``-r`` option::
+To unlock a recipe, use the ``-r`` option:
+
+.. code-block:: console
 
    $ bblock -r recipe
 
-You can also use a space-separated list of recipes to unlock multiple recipes::
+You can also use a space-separated list of recipes to unlock multiple recipes:
+
+.. code-block:: console
 
    $ bblock -r recipe1 recipe2
 
 Unlocking a recipe means unlocking all tasks of the recipe. If you need to
 unlock only particular tasks use the ``-t`` option with a comma-separated
-list of tasks::
+list of tasks:
+
+.. code-block:: console
 
   $ bblock -r -t task1,task2 recipe
 
-To unlock all recipes, do not specify any recipe::
+To unlock all recipes, do not specify any recipe:
+
+.. code-block:: console
 
   $ bblock -r
 
@@ -75,7 +89,9 @@ Configuration file
 ``bblock`` will dump the signatures in the :ref:`structure-build-conf-bblock.conf` file,
 included by default in :oe_git:`meta/conf/bitbake.conf </openembedded-core/tree/meta/conf/bitbake.conf>`.
 
-To dump the file, use the ``-d`` option::
+To dump the file, use the ``-d`` option:
+
+.. code-block:: console
 
   $ bblock -d
 
@@ -101,7 +117,9 @@ Example
 -------
 
 When working on the ``python3`` recipe, we can lock ``python3-native`` with
-the following::
+the following:
+
+.. code-block:: console
 
   $ bblock python3-native
   $ bblock -d
diff --git a/documentation/dev-manual/bmaptool.rst b/documentation/dev-manual/bmaptool.rst
index b145974c6b9a..496b5b4ab446 100644
--- a/documentation/dev-manual/bmaptool.rst
+++ b/documentation/dev-manual/bmaptool.rst
@@ -15,12 +15,16 @@ system image files much faster.
    -  If you are using Ubuntu or Debian distributions, you can install
       the ``bmaptool`` package using the following command and then
       use the tool without specifying ``PATH`` even from the root
-      account::
+      account:
+
+      .. code-block:: console
 
          $ sudo apt install bmaptool
 
    -  If you are unable to install the ``bmaptool`` package, you will
-      need to build `bmaptool` before using it. Use the following command::
+      need to build `bmaptool` before using it. Use the following command:
+
+      .. code-block:: console
 
          $ bitbake bmaptool-native -caddto_recipe_sysroot
 
@@ -36,7 +40,9 @@ any type of image. Use these steps to flash an image using `bmaptool`:
 
 #. *Get Your Image:* Either have your image ready (pre-built with the
    :term:`IMAGE_FSTYPES`
-   setting previously mentioned) or take the step to build the image::
+   setting previously mentioned) or take the step to build the image:
+
+   .. code-block:: console
 
       $ bitbake image
 
@@ -44,16 +50,22 @@ any type of image. Use these steps to flash an image using `bmaptool`:
    depending on your particular setup. The following commands assume the
    image resides in the :term:`Build Directory`'s ``deploy/images/`` area:
 
-   -  If you installed the package for `bmaptool`, you can directly run::
+   -  If you installed the package for `bmaptool`, you can directly run:
+
+      .. code-block:: console
 
          $ sudo bmaptool copy build-directory/tmp/deploy/images/machine/image.wic /dev/sdX
 
-   -  Otherwise, if you built `bmaptool` with BitBake, run::
+   -  Otherwise, if you built `bmaptool` with BitBake, run:
+
+      .. code-block:: console
 
          $ sudo chmod a+w /dev/sdX       # get write access to the media, needed only once after booting
          $ oe-run-native bmaptool-native bmaptool copy build-directory/tmp/deploy/images/machine/image.wic /dev/sdX
 
-For help on the ``bmaptool`` command, use the following command::
+For help on the ``bmaptool`` command, use the following command:
+
+.. code-block:: console
 
    $ bmaptool --help
 
diff --git a/documentation/dev-manual/build-quality.rst b/documentation/dev-manual/build-quality.rst
index dc10d1f05d5b..77a7c812f1e6 100644
--- a/documentation/dev-manual/build-quality.rst
+++ b/documentation/dev-manual/build-quality.rst
@@ -136,7 +136,9 @@ collect the stored :term:`SRCREV` values from build history and report them
 in a format suitable for use in global configuration (e.g.,
 a distro include :term:`configuration file`) to override floating
 :term:`AUTOREV` values to a fixed set of revisions. Here is some example
-output from this command::
+output from this command:
+
+.. code-block:: console
 
    $ buildhistory-collect-srcrevs -a
    # all-poky-linux
@@ -359,7 +361,9 @@ interface.
 To see any changes that have occurred (assuming you have
 :term:`BUILDHISTORY_COMMIT` = "1"),
 you can simply use any Git command that allows you to view the history
-of a repository. Here is one method::
+of a repository. Here is one method:
+
+.. code-block:: console
 
    $ git log -p
 
@@ -369,7 +373,9 @@ however, that this method does show changes that are not significant
 
 There is a command-line tool called ``buildhistory-diff``, though,
 that queries the Git repository and prints just the differences that
-might be significant in human-readable form. Here is an example::
+might be significant in human-readable form. Here is an example:
+
+.. code-block:: console
 
    $ bitbake-builds/layers/openembedded-core/scripts/buildhistory-diff . HEAD^
    Changes to images/qemux86_64/glibc/core-image-minimal (files-in-image.txt):
@@ -389,7 +395,9 @@ might be significant in human-readable form. Here is an example::
 .. note::
 
    The ``buildhistory-diff`` tool requires the ``GitPython``
-   package. Be sure to install it using Pip3 as follows::
+   package. Be sure to install it using Pip3 as follows:
+
+   .. code-block:: console
 
          $ pip3 install GitPython --user
 
diff --git a/documentation/dev-manual/building.rst b/documentation/dev-manual/building.rst
index d36a523f508f..0bb8033a113d 100644
--- a/documentation/dev-manual/building.rst
+++ b/documentation/dev-manual/building.rst
@@ -55,7 +55,9 @@ The following figure and list overviews the build process:
    define the :term:`MACHINE` or :term:`DISTRO`, and open your
    :ref:`structure-build-conf-site.conf` file to set site-specific settings.
 
-#. *Build the Image:* Build the image using the ``bitbake`` command::
+#. *Build the Image:* Build the image using the ``bitbake`` command:
+
+   .. code-block:: console
 
       $ bitbake target
 
@@ -74,7 +76,9 @@ The following figure and list overviews the build process:
    Project Reference Manual.
 
    As an example, the following command builds the
-   ``core-image-minimal`` image::
+   ``core-image-minimal`` image:
+
+   .. code-block:: console
 
       $ bitbake core-image-minimal
 
@@ -387,7 +391,9 @@ happens, which changes the way you build them. You can also modify the
 filesystem itself or select a different filesystem.
 
 First, find out what is hogging your root filesystem by running the
-``dirsize.py`` script from your root directory::
+``dirsize.py`` script from your root directory:
+
+.. code-block:: console
 
    $ cd root-directory-of-image
    $ dirsize.py 100000 > dirsize-100k.log
@@ -402,7 +408,9 @@ the root filesystem that take up large amounts of memory.
 
 You need to be sure that what you eliminate does not cripple the
 functionality you need. One way to see how packages relate to each other
-is by using the Dependency Explorer UI with the BitBake command::
+is by using the Dependency Explorer UI with the BitBake command:
+
+.. code-block:: console
 
    $ cd image-directory
    $ bitbake -u taskexp -g image
@@ -445,7 +453,9 @@ building? Which drivers do you build by default?
    You can modify the kernel source if you want to help with boot time.
 
 Run the ``ksize.py`` script from the top-level Linux build directory to
-get an idea of what is making up the kernel::
+get an idea of what is making up the kernel:
+
+.. code-block:: console
 
    $ cd top-level-linux-build-directory
    $ ksize.py > ksize.log
@@ -459,7 +469,9 @@ in a compressed kernel image. Look to reduce the areas that are large
 and taking up around the "90% rule."
 
 To examine, or drill down, into any particular area, use the ``-d``
-option with the script::
+option with the script:
+
+.. code-block:: console
 
    $ ksize.py -d > ksize.log
 
@@ -771,7 +783,9 @@ Follow these steps to populate your Downloads directory:
    variable for more information.
 
 #. *Populate Your Downloads Directory Without Building:* Use BitBake to
-   fetch your sources but inhibit the build::
+   fetch your sources but inhibit the build:
+
+   .. code-block:: console
 
       $ bitbake target --runall=fetch
 
@@ -812,7 +826,9 @@ directory:
    removing the ``${``\ :term:`TMPDIR`\ ``}`` directory or using a new
    :term:`Build Directory`.
 
-#. *Build Your Target:* Use BitBake to build your target::
+#. *Build Your Target:* Use BitBake to build your target:
+
+   .. code-block:: console
 
       $ bitbake target
 
diff --git a/documentation/dev-manual/creating-fragments.rst b/documentation/dev-manual/creating-fragments.rst
index cd87341e9a51..a221ad9e77e4 100644
--- a/documentation/dev-manual/creating-fragments.rst
+++ b/documentation/dev-manual/creating-fragments.rst
@@ -33,7 +33,9 @@ directive>` directive in :oe_git:`bitbake.conf </openembedded-core/tree/meta/con
 
 You can create one or more :term:`configuration fragment` files in your
 :term:`layer` in this directory. Let's take the following example, where
-``custom-fragment.conf`` is our custom fragment file::
+``custom-fragment.conf`` is our custom fragment file:
+
+.. code-block:: text
 
    meta-custom
    ├── conf
@@ -84,7 +86,9 @@ threads :term:`BitBake` will use with the :term:`BB_NUMBER_THREADS` and
 For now, our fragment exists and is listed by the
 :ref:`ref-bitbake-config-build-list-fragments` command, but is not enabled. To
 enable this fragment, use the :ref:`ref-bitbake-config-build-enable-fragment`
-command::
+command:
+
+.. code-block:: console
 
    $ bitbake-config-build enable-fragment meta-custom/custom-fragment
 
@@ -95,7 +99,9 @@ command::
    the ``conf/layer.conf`` file of your layer.
 
 Standard Configuration fragments can be organized in a more complex way. For
-example, it's possible to create sub-directories to organize your fragments::
+example, it's possible to create sub-directories to organize your fragments:
+
+.. code-block:: text
 
    meta-custom
    ├── conf
@@ -141,6 +147,8 @@ configuration file:
    the retained solution to create new built-in fragments.
 
 You can then use the :ref:`ref-bitbake-config-build-enable-fragment` command to
-set a value to the ``CUSTOM_VARIABLE`` variable::
+set a value to the ``CUSTOM_VARIABLE`` variable:
+
+.. code-block:: console
 
    $ bitbake-config-build enable-fragment custom-builtin-fragment/somevalue
diff --git a/documentation/dev-manual/custom-template-configuration-directory.rst b/documentation/dev-manual/custom-template-configuration-directory.rst
index 7febc8c4a267..8a0f9849456e 100644
--- a/documentation/dev-manual/custom-template-configuration-directory.rst
+++ b/documentation/dev-manual/custom-template-configuration-directory.rst
@@ -11,7 +11,9 @@ message that is shown when setting up the build. This can be done by
 creating one or more template configuration directories in your
 custom distribution layer.
 
-This can be done by using ``bitbake-layers save-build-conf``::
+This can be done by using ``bitbake-layers save-build-conf``:
+
+.. code-block:: console
 
    $ bitbake-layers save-build-conf ../../meta-alex/ test-1
    NOTE: Starting bitbake server...
@@ -25,7 +27,9 @@ replaces site-specific paths in :ref:`structure-build-conf-bblayers.conf` with `
 the config files into a specified layer under a specified template name.
 
 To use those saved templates as a starting point for a build, users should point
-to one of them with :term:`TEMPLATECONF` environment variable::
+to one of them with :term:`TEMPLATECONF` environment variable:
+
+.. code-block:: shell
 
    TEMPLATECONF=/srv/bitbake-builds/layers/meta-alex/conf/templates/test-1 . /srv/bitbake-builds/layers/openembedded-core/oe-init-build-env build-try-test-1
 
@@ -37,7 +41,9 @@ configuration information that ultimately ends up in the
 If :term:`TEMPLATECONF` is not set, the default value is obtained
 from ``.templateconf`` file that is read from the same directory as
 ``oe-init-build-env`` script. For the Poky reference distribution this
-would be::
+would be:
+
+.. code-block:: shell
 
    TEMPLATECONF=${TEMPLATECONF:-meta/conf/templates/default}
 
diff --git a/documentation/dev-manual/debugging.rst b/documentation/dev-manual/debugging.rst
index 62e19a6c8a28..02efe66bc3f1 100644
--- a/documentation/dev-manual/debugging.rst
+++ b/documentation/dev-manual/debugging.rst
@@ -114,12 +114,16 @@ variables>` did not work out as expected.
 BitBake's ``bitbake-getvar`` command is used to display variable values after
 parsing. The following command displays the variable value for :term:`OVERRIDES`
 after the configuration files (i.e. ``local.conf``, :ref:`structure-build-conf-bblayers.conf`,
-``bitbake.conf`` and so forth) have been parsed::
+``bitbake.conf`` and so forth) have been parsed:
+
+.. code-block:: console
 
    $ bitbake-getvar OVERRIDES
 
 The following command displays the value of :term:`PV` after a specific recipe
-has been parsed::
+has been parsed:
+
+.. code-block:: console
 
    $ bitbake-getvar -r recipename PV
 
@@ -142,11 +146,15 @@ includes variable flags (varflags) set on the variable. The output can be very
 helpful during debugging.
 
 Variables that are exported to the environment are preceded by
-``export`` in the output of ``bitbake-getvar``. See the following example::
+``export`` in the output of ``bitbake-getvar``. See the following example:
+
+.. code-block:: text
 
    export CC="i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/user/poky/build/tmp/sysroots/qemux86"
 
-Shell functions and tasks can also be inspected with the same mechanism::
+Shell functions and tasks can also be inspected with the same mechanism:
+
+.. code-block:: console
 
    $ bitbake-getvar -r recipename do_install
 
@@ -208,7 +216,9 @@ Here are a few of the available ``oe-pkgdata-util`` subcommands.
 -  ``oe-pkgdata-util find-path path ...``: Lists the names of
    the packages that contain the given paths. For example, the following
    tells us that ``/usr/share/man/man1/make.1`` is contained in the
-   ``make-doc`` package::
+   ``make-doc`` package:
+
+   .. code-block:: console
 
       $ oe-pkgdata-util find-path /usr/share/man/man1/make.1
       make-doc: /usr/share/man/man1/make.1
@@ -217,7 +227,9 @@ Here are a few of the available ``oe-pkgdata-util`` subcommands.
    of the recipes that produce the given packages.
 
 For more information on the ``oe-pkgdata-util`` command, use the help
-facility::
+facility:
+
+.. code-block:: console
 
    $ oe-pkgdata-util --help
    $ oe-pkgdata-util subcommand --help
@@ -230,7 +242,9 @@ before the one you have specified. Dependency information can help you
 understand why a recipe is built.
 
 To generate dependency information for a recipe, run the following
-command::
+command:
+
+.. code-block:: console
 
    $ bitbake -g recipename
 
@@ -259,7 +273,9 @@ format and can be converted to images (e.g. using the ``dot`` tool from
       provide useful information.
 
       As an example, the ``task-depends.dot`` file contains lines such
-      as the following::
+      as the following:
+
+      .. code-block:: text
 
          "libxslt.do_configure" -> "libxml2.do_populate_sysroot"
 
@@ -276,11 +292,15 @@ format and can be converted to images (e.g. using the ``dot`` tool from
       displays paths between graph nodes.
 
 You can use a different method to view dependency information by using
-either::
+either:
+
+.. code-block:: console
 
    $ bitbake -g -u taskexp recipename
 
-or::
+or:
+
+.. code-block:: console
 
    $ bitbake -g -u taskexp_ncurses recipename
 
@@ -305,7 +325,9 @@ If you are unsure whether a variable dependency is being picked up
 automatically for a given task, you can list the variable dependencies
 BitBake has determined by doing the following:
 
-#. Build the recipe containing the task::
+#. Build the recipe containing the task:
+
+   .. code-block:: console
 
    $ bitbake recipename
 
@@ -316,7 +338,9 @@ BitBake has determined by doing the following:
    checksum for the task. As an example, for the
    :ref:`ref-tasks-fetch` task of the
    ``db`` recipe, the ``sigdata`` file might be found in the following
-   location::
+   location:
+
+   .. code-block:: text
 
       ${BUILDDIR}/tmp/stamps/i586-poky-linux/db/6.0.30-r1.do_fetch.sigdata.7c048c18222b16ff0bcee2000ef648b1
 
@@ -328,14 +352,18 @@ BitBake has determined by doing the following:
    same information as ``sigdata`` files.
 
 #. Run ``bitbake-dumpsig`` on the ``sigdata`` or ``siginfo`` file. Here
-   is an example::
+   is an example:
+
+   .. code-block:: console
 
       $ bitbake-dumpsig ${BUILDDIR}/tmp/stamps/i586-poky-linux/db/6.0.30-r1.do_fetch.sigdata.7c048c18222b16ff0bcee2000ef648b1
 
    In the output of the above command, you will find a line like the
    following, which lists all the (inferred) variable dependencies for
    the task. This list also includes indirect dependencies from
-   variables depending on other variables, recursively::
+   variables depending on other variables, recursively:
+
+   .. code-block:: text
 
       Task dependencies: ['PV', 'SRCREV', 'SRC_URI', 'SRC_URI[sha256sum]', 'base_do_fetch']
 
@@ -360,7 +388,9 @@ call ``bitbake-diffsigs`` with just one file, the command behaves like
 
 You can also use BitBake to dump out the signature construction
 information without executing tasks by using either of the following
-BitBake command-line options::
+BitBake command-line options:
+
+.. code-block:: text
 
    --dump-signatures=SIGNATURE_HANDLER
    -S SIGNATURE_HANDLER
@@ -451,7 +481,9 @@ behavior in most cases is: :ref:`ref-tasks-fetch`, :ref:`ref-tasks-unpack`, :ref
 :ref:`ref-tasks-build` and any tasks on which it depends build first. Some tasks,
 such as :ref:`ref-tasks-devshell`, are not part of the default build chain. If you
 wish to run a task that is not part of the default build chain, you can
-use the ``-c`` option in BitBake. Here is an example::
+use the ``-c`` option in BitBake. Here is an example:
+
+.. code-block:: console
 
    $ bitbake matchbox-desktop -c devshell
 
@@ -476,7 +508,9 @@ out), then you can use the ``-f`` option.
    [\ :ref:`nostamp <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ]
    variable flag is already set for the task.
 
-The following example shows one way you can use the ``-f`` option::
+The following example shows one way you can use the ``-f`` option:
+
+.. code-block:: console
 
    $ bitbake matchbox-desktop
              .
@@ -505,7 +539,9 @@ Using this option invalidates the given task and then runs the
 :ref:`ref-tasks-build` task, which is
 the default task if no task is given, and the tasks on which it depends.
 You could replace the final two commands in the previous example with
-the following single command::
+the following single command:
+
+.. code-block:: console
 
    $ bitbake matchbox-desktop -C compile
 
@@ -529,14 +565,18 @@ task dependency mechanisms.
    and build output might not be in the clean state they would be in for
    a "normal" build, depending on what actions you took. To get rid of
    such warnings, you can remove the work directory and rebuild the
-   recipe, as follows::
+   recipe, as follows:
+
+   .. code-block:: console
 
       $ bitbake matchbox-desktop -c clean
       $ bitbake matchbox-desktop
 
 
 You can view a list of tasks in a given package by running the
-:ref:`ref-tasks-listtasks` task as follows::
+:ref:`ref-tasks-listtasks` task as follows:
+
+.. code-block:: console
 
    $ bitbake matchbox-desktop -c listtasks
 
@@ -560,7 +600,9 @@ Building with No Dependencies
 =============================
 
 To build a specific recipe (``.bb`` file), you can use the following
-command form::
+command form:
+
+.. code-block:: console
 
    $ bitbake -b somepath/somerecipe.bb
 
@@ -789,18 +831,24 @@ build, set the
 :term:`PARALLEL_MAKE` variable
 in your :ref:`structure-build-conf-local.conf` file to a high number (e.g. "-j 20"). Using a
 high value for :term:`PARALLEL_MAKE` increases the chances of the race
-condition showing up::
+condition showing up:
+
+.. code-block:: console
 
    $ bitbake neard
 
-Once the local build for "neard" completes, start a ``devshell`` build::
+Once the local build for "neard" completes, start a ``devshell`` build:
+
+.. code-block:: console
 
    $ bitbake neard -c devshell
 
 For information on how to use a ``devshell``, see the
 ":ref:`dev-manual/development-shell:using a development shell`" section.
 
-In the ``devshell``, do the following::
+In the ``devshell``, do the following:
+
+.. code-block:: console
 
    $ make clean
    $ make tools/snep-send.o
@@ -808,7 +856,9 @@ In the ``devshell``, do the following::
 The ``devshell`` commands cause the failure to clearly
 be visible. In this case, there is a missing dependency for the ``neard``
 Makefile target. Here is some abbreviated, sample output with the
-missing dependency clearly visible at the end::
+missing dependency clearly visible at the end:
+
+.. code-block:: text
 
    i586-poky-linux-gcc  -m32 -march=i586 --sysroot=<path/to/sysroot>
       .
@@ -828,7 +878,9 @@ Creating a Patch for the Fix
 
 Because there is a missing dependency for the Makefile target, you need
 to patch the ``Makefile.am`` file, which is generated from
-``Makefile.in``. You can use Quilt to create the patch::
+``Makefile.in``. You can use Quilt to create the patch:
+
+.. code-block:: console
 
    $ quilt new parallelmake.patch
    Patch patches/parallelmake.patch is now on top
@@ -840,19 +892,25 @@ For more information on using Quilt, see the
 
 At this point you need to make the edits to ``Makefile.am`` to add the
 missing dependency. For our example, you have to add the following line
-to the file::
+to the file:
+
+.. code-block:: text
 
    tools/snep-send.$(OBJEXT): include/near/dbus.h
 
 Once you have edited the file, use the ``refresh`` command to create the
-patch::
+patch:
+
+.. code-block:: console
 
    $ quilt refresh
    Refreshed patch patches/parallelmake.patch
 
 Once the patch file is created, you need to add it back to the originating
 recipe folder. Here is an example assuming :term:`OpenEmbedded-Core (OE-Core)`
-is named ``openembedded-core``::
+is named ``openembedded-core``:
+
+.. code-block:: console
 
    $ cp patches/parallelmake.patch openembedded-core/meta/recipes-connectivity/neard/neard
 
@@ -869,7 +927,9 @@ is what the edited :term:`SRC_URI` statement would look like::
              "
 
 With the patch complete and moved to the correct folder and the
-:term:`SRC_URI` statement updated, you can exit the ``devshell``::
+:term:`SRC_URI` statement updated, you can exit the ``devshell``:
+
+.. code-block:: console
 
    $ exit
 
@@ -877,14 +937,18 @@ Testing the Build
 -----------------
 
 With everything in place, you can get back to trying the build again
-locally::
+locally:
+
+.. code-block:: console
 
    $ bitbake neard
 
 This build should succeed.
 
 Now you can open up a ``devshell`` again and repeat the clean and make
-operations as follows::
+operations as follows:
+
+.. code-block:: console
 
    $ bitbake neard -c devshell
    $ make clean
@@ -949,18 +1013,24 @@ To run a ``debuginfod`` server, you need to do the following:
    This distro feature enables the server and client library in ``elfutils``,
    and enables ``debuginfod`` support in clients (at the moment, ``gdb`` and ``binutils``).
 
--  Run the following commands to launch the ``debuginfod`` server on the host::
+-  Run the following commands to launch the ``debuginfod`` server on the host:
+
+   .. code-block:: console
 
       $ oe-debuginfod
 
 -  To use ``debuginfod`` on the target, you need to know the ip:port where
    ``debuginfod`` is listening on the host (port defaults to 8002), and export
-   that into the shell environment, for example in ``qemu``::
+   that into the shell environment, for example in ``qemu``:
+
+   .. code-block:: console
 
       root@qemux86-64:~# export DEBUGINFOD_URLS="http://192.168.7.1:8002/"
 
 -  Then debug info fetching should simply work when running the target ``gdb``,
-   ``readelf`` or ``objdump``, for example::
+   ``readelf`` or ``objdump``, for example:
+
+   .. code-block:: console
 
       root@qemux86-64:~# gdb /bin/cat
       ...
@@ -968,7 +1038,9 @@ To run a ``debuginfod`` server, you need to do the following:
       Downloading separate debug info for /bin/cat...
       Reading symbols from /home/root/.cache/debuginfod_client/923dc4780cfbc545850c616bffa884b6b5eaf322/debuginfo...
 
--  It's also possible to use ``debuginfod-find`` to just query the server::
+-  It's also possible to use ``debuginfod-find`` to just query the server:
+
+   .. code-block:: console
 
       root@qemux86-64:~# debuginfod-find debuginfo /bin/ls
       /home/root/.cache/debuginfod_client/356edc585f7f82d46f94fcb87a86a3fe2d2e60bd/debuginfo
@@ -1038,25 +1110,33 @@ debugger.
 #. *Build the environment:*
 
    Use the following command to construct the image and the companion
-   Debug Filesystem::
+   Debug Filesystem:
+
+   .. code-block:: console
 
       $ bitbake image
 
    Build the cross GDB component and
    make it available for debugging. Build the SDK that matches the
    image. Building the SDK is best for a production build that can be
-   used later for debugging, especially during long term maintenance::
+   used later for debugging, especially during long term maintenance:
+
+   .. code-block:: console
 
       $ bitbake -c populate_sdk image
 
    Alternatively, you can build the minimal toolchain components that
    match the target. Doing so creates a smaller than typical SDK and
    only contains a minimal set of components with which to build simple
-   test applications, as well as run the debugger::
+   test applications, as well as run the debugger:
+
+   .. code-block:: console
 
       $ bitbake meta-toolchain
 
-   A final method is to build Gdb itself within the build system::
+   A final method is to build Gdb itself within the build system:
+
+   .. code-block:: console
 
       $ bitbake gdb-cross-<architecture>
 
@@ -1073,7 +1153,9 @@ debugger.
 
 #. *Set up the* ``debugfs``\ *:*
 
-   Run the following commands to set up the ``debugfs``::
+   Run the following commands to set up the ``debugfs``:
+
+   .. code-block:: console
 
       $ mkdir debugfs
       $ cd debugfs
@@ -1112,7 +1194,9 @@ debugger.
    Documentation <https://www.gnu.org/software/gdb/documentation/>`__.
 
    After running gdbserver on the target, you need to run Gdb on the
-   host and configure it and connect to the target. Use these commands::
+   host and configure it and connect to the target. Use these commands:
+
+   .. code-block:: console
 
       $ cd <debugfs-directory>
       $ <arch>-gdb
@@ -1143,7 +1227,9 @@ debugger.
    If the binary is processed through the debug splitting in
    OpenEmbedded, you should also copy the debug items (i.e. ``.debug``
    contents and corresponding ``/usr/src/debug`` files) from the work
-   directory. Here is an example::
+   directory. Here is an example:
+
+   .. code-block:: console
 
       $ bitbake bash
       $ bitbake -c devshell bash
@@ -1254,7 +1340,9 @@ Here are some other tips that you might find useful:
                "$@"
       }
 
-   Here are some usage examples::
+   Here are some usage examples:
+
+   .. code-block:: console
 
       $ g FOO # Search recursively for "FOO"
       $ g -i foo # Search recursively for "foo", ignoring case
diff --git a/documentation/dev-manual/development-shell.rst b/documentation/dev-manual/development-shell.rst
index be26bcffc7ba..373223dd2b5d 100644
--- a/documentation/dev-manual/development-shell.rst
+++ b/documentation/dev-manual/development-shell.rst
@@ -17,7 +17,9 @@ this way can be helpful when debugging a build or preparing software to
 be used with the OpenEmbedded build system.
 
 Here is an example that uses ``devshell`` on a target named
-``matchbox-desktop``::
+``matchbox-desktop``:
+
+.. code-block:: console
 
   $ bitbake matchbox-desktop -c devshell
 
@@ -46,7 +48,9 @@ corresponding ``run.*`` script in the
 directory (e.g., ``run.do_configure.``\ `pid`). If a task's script does
 not exist, which would be the case if the task was skipped by way of the
 sstate cache, you can create the task by first running it outside of the
-``devshell``::
+``devshell``:
+
+.. code-block:: console
 
    $ bitbake -c task
 
diff --git a/documentation/dev-manual/devtool.rst b/documentation/dev-manual/devtool.rst
index 3abec4a41aaa..210f2c396771 100644
--- a/documentation/dev-manual/devtool.rst
+++ b/documentation/dev-manual/devtool.rst
@@ -50,7 +50,9 @@ command:
       to be extracted. In this situation, the source code is extracted
       to the default workspace --- you do not want the files in some
       specific location outside of the workspace. Thus, everything you
-      need will be located in the workspace::
+      need will be located in the workspace:
+
+      .. code-block:: console
 
          $ devtool add recipe fetchuri
 
@@ -65,7 +67,9 @@ command:
       ``devtool`` workspace.
 
       The following command provides a new recipe name and identifies
-      the existing source tree location::
+      the existing source tree location:
+
+      .. code-block:: console
 
          $ devtool add recipe srctree
 
@@ -93,7 +97,9 @@ command:
       Furthermore, the first positional argument ``srctree`` in this case
       identifies where the ``devtool add`` command will locate the
       extracted code outside of the workspace. You need to specify an
-      empty directory::
+      empty directory:
+
+      .. code-block:: console
 
          $ devtool add recipe srctree fetchuri
 
@@ -105,7 +111,9 @@ command:
 
 #. *Edit the Recipe*: You can use ``devtool edit-recipe`` to open up the
    editor as defined by the ``$EDITOR`` environment variable and modify
-   the file::
+   the file:
+
+   .. code-block:: console
 
       $ devtool edit-recipe recipe
 
@@ -124,14 +132,18 @@ command:
    depends on what you are going to do with the new code.
 
    If you need to eventually move the build output to the target
-   hardware, use the following ``devtool`` command::
+   hardware, use the following ``devtool`` command:
+
+   .. code-block:: console
 
       $ devtool build recipe
 
    On the other hand, if you want an image to contain the recipe's
    packages from the workspace for immediate deployment onto a device
    (e.g. for testing purposes), you can use the ``devtool build-image``
-   command::
+   command:
+
+   .. code-block:: console
 
       $ devtool build-image image
 
@@ -149,7 +161,9 @@ command:
       development machine.
 
    You can deploy your build output to that target hardware by using the
-   ``devtool deploy-target`` command::
+   ``devtool deploy-target`` command:
+
+   .. code-block:: console
 
       $ devtool deploy-target recipe target
 
@@ -177,7 +191,9 @@ command:
    creates any patches corresponding to commits in the local Git
    repository, moves the new recipe to a more permanent layer, and then
    resets the recipe so that the recipe is built normally rather than
-   from the workspace::
+   from the workspace:
+
+   .. code-block:: console
 
       $ devtool finish recipe layer
 
@@ -245,7 +261,9 @@ command:
       The following command tells ``devtool`` the recipe with which to
       work, uses the "-n" option to indicate source does not need to be
       extracted, and uses ``srctree`` to point to the previously extracted
-      source files::
+      source files:
+
+      .. code-block:: console
 
          $ devtool modify -n recipe srctree
 
@@ -271,7 +289,9 @@ command:
       outside the workspace (i.e. ``meta-``\ layername).
 
       The following command identifies the recipe and, by default,
-      extracts the source files::
+      extracts the source files:
+
+      .. code-block:: console
 
          $ devtool modify recipe
 
@@ -319,7 +339,9 @@ command:
       The following command tells ``devtool`` the recipe with which to
       work and, in this case, identifies a local area for the extracted
       source files that exists outside of the default ``devtool``
-      workspace::
+      workspace:
+
+      .. code-block:: console
 
          $ devtool modify recipe srctree
 
@@ -357,14 +379,18 @@ command:
    depends on what you are going to do with the new code.
 
    If you need to eventually move the build output to the target
-   hardware, use the following ``devtool`` command::
+   hardware, use the following ``devtool`` command:
+
+   .. code-block:: console
 
       $ devtool build recipe
 
    On the other hand, if you want an image to contain the recipe's
    packages from the workspace for immediate deployment onto a device
    (e.g. for testing purposes), you can use the ``devtool build-image``
-   command::
+   command:
+
+   .. code-block:: console
 
       $ devtool build-image image
 
@@ -382,7 +408,9 @@ command:
       development machine.
 
    You can deploy your build output to that target hardware by using the
-   ``devtool deploy-target`` command::
+   ``devtool deploy-target`` command:
+
+   .. code-block:: console
 
       $ devtool deploy-target recipe target
 
@@ -401,7 +429,9 @@ command:
    repository, updates the recipe to point to them (or creates a
    ``.bbappend`` file to do so, depending on the specified destination
    layer), and then resets the recipe so that the recipe is built
-   normally rather than from the workspace::
+   normally rather than from the workspace:
+
+   .. code-block:: console
 
       $ devtool finish recipe layer
 
@@ -646,7 +676,9 @@ Assuming the BitBake environment is set up correctly and a ``devtool``
 workspace has been created for the recipe using ``devtool modify my-recipe``
 (or, for a more useful debug build, ``devtool modify my-recipe --debug-build``),
 the following command can create the SDK and the configuration for VSCode in
-the recipe's ``devtool`` workspace::
+the recipe's ``devtool`` workspace:
+
+.. code-block:: console
 
    $ devtool ide-sdk my-recipe core-image-minimal --target root@192.168.7.2
 
@@ -657,14 +689,18 @@ see :ref:`dev-manual/devtool:selecting the ide`.
 The command requires an image recipe (``core-image-minimal`` for this
 example) that is used to create the SDK.
 This firmware image should also be installed on the target device.
-It is possible to pass multiple recipes::
+It is possible to pass multiple recipes:
+
+.. code-block:: console
 
    $ devtool ide-sdk my-recipe-1 my-recipe-2 core-image-minimal --target root@192.168.7.2
 
 If only an image recipe is passed, all recipes currently modified in the
 ``devtool`` workspace (i.e. everything with a
 ``<workspace>/appends/*.bbappend`` file) are used automatically, so the above
-is usually equivalent to just::
+is usually equivalent to just:
+
+.. code-block:: console
 
    $ devtool ide-sdk core-image-minimal --target root@192.168.7.2
 
@@ -715,7 +751,9 @@ privileges, but is only reachable through forwarded host ports.
 ``devtool ide-sdk`` supports this
 setup: it adds the port forwards required by the debug servers to
 ``QB_SLIRP_OPT`` in the image's ``.bbappend`` file, so that ``runqemu`` reads
-them from the image's ``.qemuboot.conf`` file::
+them from the image's ``.qemuboot.conf`` file:
+
+.. code-block:: console
 
    $ devtool ide-sdk my-recipe core-image-minimal --target root@localhost --port 2222
    $ runqemu slirp serialstdio snapshot
@@ -736,7 +774,9 @@ workflow. Passing ``--nfs=rootfs`` (or ``--nfs=rootfs-dbg`` to also include
 the debug filesystem) extracts the selected root filesystem below
 ``<workspace>/nfs-exports/<image-recipe>/`` and generates a
 ``runqemu-rootfs``/``runqemu-rootfs-dbg`` helper script to boot QEMU with
-that root filesystem mounted over NFS::
+that root filesystem mounted over NFS:
+
+.. code-block:: console
 
    $ devtool ide-sdk my-recipe core-image-minimal --nfs=rootfs-dbg --target root@192.168.7.2
    $ build/workspace/nfs-exports/core-image-minimal/runqemu-rootfs-dbg nographic
@@ -777,7 +817,9 @@ With ``--nfs``, the deploy scripts generated by ``devtool ide-sdk`` (and
 thus the deploy tasks of the IDE) copy the build output of the recipe
 directly into the exported root filesystem on the host instead of using SSH.
 This works because ``devtool deploy-target`` accepts the absolute path of a
-local root filesystem directory as target. The same can be done manually, e.g.::
+local root filesystem directory as target. The same can be done manually, e.g.:
+
+.. code-block:: console
 
    $ devtool deploy-target my-recipe \
          /path/to/build/workspace/nfs-exports/core-image-minimal/rootfs-dbg
@@ -841,7 +883,9 @@ VSCode:
    Of course, issuing commands in the terminal works as well.
 
 -  To work on the source code of a recipe another instance of VSCode is
-   started in the recipe's workspace. Example::
+   started in the recipe's workspace. Example:
+
+   .. code-block:: console
 
       $ code build/workspace/sources/my-recipe
 
@@ -960,7 +1004,9 @@ The ``--ide`` option selects the IDE plugin. If it is omitted, VSCode is
 configured when the ``code`` executable is found in ``PATH``, and no IDE
 (``--ide=none``) otherwise. The option can be given multiple times
 to configure several IDEs in one invocation, and ``--ide=all`` configures
-every supported IDE::
+every supported IDE:
+
+.. code-block:: console
 
    $ devtool ide-sdk my-recipe core-image-minimal --ide=code --ide=none
    $ devtool ide-sdk my-recipe core-image-minimal --ide=all
@@ -1092,7 +1138,9 @@ Example
 
 Creating an SDK with shared :term:`Sysroots <Sysroot>` that contains all the
 dependencies needed to work with ``my-recipe`` is possible with the following
-example command::
+example command:
+
+.. code-block:: console
 
    $ devtool ide-sdk --mode=shared my-recipe
 
@@ -1101,7 +1149,9 @@ For VSCode the cross-toolchain is exposed as a
 CMake kits are defined in ``~/.local/share/CMakeTools/cmake-tools-kits.json``.
 The following example shows how the cross-toolchain can be selected in
 VSCode. First of all we need a folder containing a CMake project.
-For this example, let's create a CMake project and start VSCode::
+For this example, let's create a CMake project and start VSCode:
+
+.. code-block:: console
 
    $ mkdir kit-test
    $ echo "project(foo VERSION 1.0)" > kit-test/CMakeLists.txt
@@ -1128,7 +1178,9 @@ Modified mode configures the IDE for recipes in ``devtool modify`` state,
 while shared mode provides a standalone cross-toolchain and shared
 :term:`Sysroots <Sysroot>` for working on other source code. Repeating the
 ``--mode`` option runs both workflows in a single invocation, so the image
-is built only once::
+is built only once:
+
+.. code-block:: console
 
    $ devtool modify my-recipe
    $ devtool ide-sdk --mode=modified --mode=shared my-recipe other-recipe core-image-minimal
@@ -1202,7 +1254,9 @@ The following diagram shows the common development flow used with the
    A common situation is where third-party software has undergone a
    revision so that it has been upgraded. The recipe you have access to
    is likely in your own layer. Thus, you need to upgrade the recipe to
-   use the newer version of the software::
+   use the newer version of the software:
+
+   .. code-block:: console
 
       $ devtool upgrade -V version recipe
 
@@ -1210,7 +1264,9 @@ The following diagram shows the common development flow used with the
    code into the ``sources`` directory in the
    :ref:`devtool-the-workspace-layer-structure`.
    If you want the code extracted to any other location, you need to
-   provide the ``srctree`` positional argument with the command as follows::
+   provide the ``srctree`` positional argument with the command as follows:
+
+   .. code-block:: console
 
       $ devtool upgrade -V version recipe srctree
 
@@ -1266,14 +1322,18 @@ The following diagram shows the common development flow used with the
    depends on what you are going to do with the new code.
 
    If you need to eventually move the build output to the target
-   hardware, use the following ``devtool`` command::
+   hardware, use the following ``devtool`` command:
+
+   .. code-block:: console
 
       $ devtool build recipe
 
    On the other hand, if you want an image to contain the recipe's
    packages from the workspace for immediate deployment onto a device
    (e.g. for testing purposes), you can use the ``devtool build-image``
-   command::
+   command:
+
+   .. code-block:: console
 
       $ devtool build-image image
 
@@ -1291,7 +1351,9 @@ The following diagram shows the common development flow used with the
       development machine.
 
    You can deploy your build output to that target hardware by using the
-   ``devtool deploy-target`` command::
+   ``devtool deploy-target`` command:
+
+   .. code-block:: console
 
       $ devtool deploy-target recipe target
 
@@ -1318,7 +1380,9 @@ The following diagram shows the common development flow used with the
 
    If you specify a destination layer that is the same as the original
    source, then the old version of the recipe and associated files are
-   removed prior to adding the new version::
+   removed prior to adding the new version:
+
+   .. code-block:: console
 
       $ devtool finish recipe layer
 
@@ -1393,7 +1457,9 @@ name and version, just the name, or just the version as part of the
 command line.
 
 Sometimes the name or version determined from the source tree might be
-incorrect. For such a case, you must reset the recipe::
+incorrect. For such a case, you must reset the recipe:
+
+.. code-block:: console
 
    $ devtool reset -n recipename
 
@@ -1554,7 +1620,9 @@ Adding Node.js Modules
 You can use the ``devtool add`` command two different ways to add
 Node.js modules: through ``npm`` or from a repository or local source.
 
-Use the following form to add Node.js modules through ``npm``::
+Use the following form to add Node.js modules through ``npm``:
+
+.. code-block:: console
 
    $ devtool add "npm://registry.npmjs.org;name=forever;version=0.15.1"
 
@@ -1575,7 +1643,9 @@ these behaviors ensure the reproducibility and integrity of the build.
 
 As mentioned earlier, you can also add Node.js modules directly from a
 repository or local source tree. To add modules this way, use
-``devtool add`` in the following form::
+``devtool add`` in the following form:
+
+.. code-block:: console
 
    $ devtool add https://github.com/diversario/node-ssdp
 
@@ -1738,13 +1808,17 @@ need to restore the original files that existed prior to running the
 ``devtool deploy-target`` command. Because the ``devtool deploy-target``
 command backs up any files it overwrites, you can use the
 ``devtool undeploy-target`` command to restore those files and remove
-any other files the recipe deployed. Consider the following example::
+any other files the recipe deployed. Consider the following example:
+
+.. code-block:: console
 
    $ devtool undeploy-target lighttpd root@192.168.7.2
 
 If you have deployed
 multiple applications, you can remove them all using the "-a" option
-thus restoring the target device to its original state::
+thus restoring the target device to its original state:
+
+.. code-block:: console
 
    $ devtool undeploy-target -a root@192.168.7.2
 
diff --git a/documentation/dev-manual/disk-space.rst b/documentation/dev-manual/disk-space.rst
index ee02b267081c..b9acc63e0c8b 100644
--- a/documentation/dev-manual/disk-space.rst
+++ b/documentation/dev-manual/disk-space.rst
@@ -31,7 +31,9 @@ multiple cache files for a given package, consuming a substantial amount of
 disk space. However, only the most recent ones are likely to be reused.
 
 The following command is a quick way to purge all the cache files which
-haven't been used for a least a specified number of days::
+haven't been used for a least a specified number of days:
+
+.. code-block:: console
 
    $ find build/sstate-cache -type f -mtime +$DAYS -delete
 
@@ -47,7 +49,9 @@ architecture, and also to remove files that it considers unreachable by
 exploring a set of build configurations. However, this command
 requires a full build environment to be available and doesn't work well
 covering multiple releases. It won't work either on limited environments
-such as BSD based NAS::
+such as BSD based NAS:
+
+.. code-block:: console
 
    $ sstate-cache-management.py --remove-duplicated --cache-dir=sstate-cache
 
diff --git a/documentation/dev-manual/efficiently-fetching-sources.rst b/documentation/dev-manual/efficiently-fetching-sources.rst
index ab72e8dd2ee7..05e5e0799169 100644
--- a/documentation/dev-manual/efficiently-fetching-sources.rst
+++ b/documentation/dev-manual/efficiently-fetching-sources.rst
@@ -57,7 +57,9 @@ download directory :ref:`structure-build-downloads`,
 which is located with :term:`DL_DIR`.
 
 Use the following BitBake command form to fetch all the necessary
-sources without starting the build::
+sources without starting the build:
+
+.. code-block:: console
 
    $ bitbake target --runall=fetch
 
diff --git a/documentation/dev-manual/error-reporting-tool.rst b/documentation/dev-manual/error-reporting-tool.rst
index dabade0783af..9eb9272414ff 100644
--- a/documentation/dev-manual/error-reporting-tool.rst
+++ b/documentation/dev-manual/error-reporting-tool.rst
@@ -44,7 +44,9 @@ reporting causes the build process to collect the errors and store them
 in a file as previously described. When the build system encounters an
 error, it includes a command as part of the console output. You can run
 the command to send the error file to the server. For example, the
-following command sends the errors to an upstream server::
+following command sends the errors to an upstream server:
+
+.. code-block:: console
 
    $ send-error-report /home/brandusa/project/poky/build/tmp/log/error-report/error_report_201403141617.txt
 
@@ -52,7 +54,9 @@ In the previous example, the errors are sent to a public database
 available at https://errors.yoctoproject.org, which is used by the
 entire community. If you specify a particular server, you can send the
 errors to a different database. Use the following command for more
-information on available options::
+information on available options:
+
+.. code-block:: console
 
    $ send-error-report --help
 
diff --git a/documentation/dev-manual/gobject-introspection.rst b/documentation/dev-manual/gobject-introspection.rst
index 8203f17f0177..ee596bef6f3f 100644
--- a/documentation/dev-manual/gobject-introspection.rst
+++ b/documentation/dev-manual/gobject-introspection.rst
@@ -123,7 +123,9 @@ working in an image:
 
 #. Launch a Terminal and then start Python in the terminal.
 
-#. Enter the following in the terminal::
+#. Enter the following in the terminal:
+
+   .. code-block:: text
 
       >>> from gi.repository import GLib
       >>> GLib.get_host_name()
diff --git a/documentation/dev-manual/hashequivserver.rst b/documentation/dev-manual/hashequivserver.rst
index 0a67e79b66bc..b7397e3d8305 100644
--- a/documentation/dev-manual/hashequivserver.rst
+++ b/documentation/dev-manual/hashequivserver.rst
@@ -20,7 +20,9 @@ Hash Equivalence Server Setup
 From this point onwards, the commands displayed below are assumed to be run from
 the :term:`BitBake` repository, which can be found :oe_git:`here </bitbake>`.
 
-To start a basic Hash Equivalence server, one could simply run::
+To start a basic Hash Equivalence server, one could simply run:
+
+.. code-block:: console
 
    $ ./bin/bitbake-hashserv
 
@@ -124,6 +126,8 @@ With ``hashequiv.json`` containing the following content:
    }
 
 This will make Hash Equivalence related changes be printed on the console, such
-as::
+as:
+
+.. code-block:: text
 
    NOTE: Task <recipe.bb>:do_<task> unihash changed to dc0da29c62a2d78d8d853fbb9c173778fe7d6fa4a68c67494b17afffe8ca1894
diff --git a/documentation/dev-manual/layers.rst b/documentation/dev-manual/layers.rst
index babf2f023aee..45a6a840d9b1 100644
--- a/documentation/dev-manual/layers.rst
+++ b/documentation/dev-manual/layers.rst
@@ -48,13 +48,17 @@ Follow these general steps to create your layer without using tools:
       $ bitbake-layers create-layer your_layer_name
 
    While not strictly required, prepend the name of the directory with
-   the string "meta-". For example::
+   the string "meta-". For example:
+
+   .. code-block:: text
 
       meta-mylayer
       meta-GUI_xyz
       meta-mymachine
 
-   With rare exceptions, a layer's name follows this form::
+   With rare exceptions, a layer's name follows this form:
+
+   .. code-block:: text
 
       meta-root_name
 
@@ -382,7 +386,9 @@ the COMMON and DISTRO related tests. Furthermore, if your layer is a BSP
 layer, the layer must pass the COMMON and BSP set of tests.
 
 To execute the script, enter the following commands from your build
-directory::
+directory:
+
+.. code-block:: console
 
    $ source oe-init-build-env
    $ yocto-check-layer your_layer_directory
@@ -391,13 +397,17 @@ Be sure to provide the actual directory for your
 layer as part of the command.
 
 You should pass the dependencies of your layer using the ``--dependency``
-argument::
+argument:
+
+.. code-block:: console
 
    $ source oe-init-build-env
    $ yocto-check-layer --dependency <layer1_directory> <layer2_directory> ... -- your_layer_directory
 
 For :term:`BSP <Board Support Package (BSP)>` layers, the ``--machines``
-argument should be passed as part of the command::
+argument should be passed as part of the command:
+
+.. code-block:: console
 
    $ source oe-init-build-env
    $ yocto-check-layer --machines <machine1> <machine2> ... -- your_layer_directory
@@ -422,13 +432,17 @@ with one class:
 -  ``distro``: ``DistroCheckLayer``, in :oe_git:`distro.py
    </openembedded-core/tree/scripts/lib/checklayer/cases/distro.py>`.
 
-For example, to run all the BSP tests::
+For example, to run all the BSP tests:
+
+.. code-block:: console
 
    $ source oe-init-build-env
    $ yocto-check-layer --run-tests bsp --machines <machine1> <machine2> ... -- your_layer_directory
 
 Or to run only the ``test_world`` test listed below as
-``common.test_world``, and the ``test_machine_signatures`` one::
+``common.test_world``, and the ``test_machine_signatures`` one:
+
+.. code-block:: console
 
    $ source oe-init-build-env
    $ yocto-check-layer --run-tests common.CommonCheckLayer.test_world \
@@ -835,7 +849,9 @@ with their paths and priorities and on ``.bbappend`` files and their
 applicable recipes can help to reveal potential problems.
 
 For help on the BitBake layer management tool, use the following
-command::
+command:
+
+.. code-block:: console
 
    $ bitbake-layers --help
 
@@ -882,7 +898,9 @@ The following list describes the available commands:
       variable values, you need to tidy these up yourself. Consider the
       following example. Here, the ``bitbake-layers`` command adds the
       line ``#### bbappended ...`` so that you know where the following
-      lines originate::
+      lines originate:
+
+      .. code-block:: text
 
          ...
          DESCRIPTION = "A useful utility"
@@ -896,7 +914,9 @@ The following list describes the available commands:
          EXTRA_OECONF += "--enable-somethingelse"
 
 
-      Ideally, you would tidy up these utilities as follows::
+      Ideally, you would tidy up these utilities as follows:
+
+      .. code-block:: text
 
          ...
          DESCRIPTION = "Customized utility"
@@ -933,7 +953,9 @@ Once you create your general layer, you must add it to your
 makes the OpenEmbedded build system aware of your layer so that it can
 search it for metadata.
 
-Add your layer by using the ``bitbake-layers add-layer`` command::
+Add your layer by using the ``bitbake-layers add-layer`` command:
+
+.. code-block:: console
 
    $ bitbake-layers add-layer your_layer_name
 
@@ -973,7 +995,9 @@ Once you have a working build with the correct set of layers, it is beneficial
 to capture the layer setup --- what they are, which repositories they come from
 and which SCM revisions they're at --- into a configuration file, so that this
 setup can be easily replicated later, perhaps on a different machine. Here's
-how to do this::
+how to do this:
+
+.. code-block:: console
 
    $ bitbake-layers create-layers-setup /srv/work/alex/meta-alex/
    NOTE: Starting bitbake server...
@@ -992,7 +1016,9 @@ above:
 #. Clone the bootstrap layer or some other repository to obtain
    the json config and the setup script that can use it.
 
-#. Run the script directly with no options::
+#. Run the script directly with no options:
+
+   .. code-block:: console
 
       alex@Zen2:/srv/work/alex/my-build$ meta-alex/setup-layers
       Note: not checking out source meta-alex, use --force-bootstraplayer-checkout to override.
diff --git a/documentation/dev-manual/libraries.rst b/documentation/dev-manual/libraries.rst
index d7b9f0cfc04f..791381a7921e 100644
--- a/documentation/dev-manual/libraries.rst
+++ b/documentation/dev-manual/libraries.rst
@@ -135,12 +135,16 @@ on this particular tuning, see
 
 The example then includes ``lib32-glib-2.0`` in all the images, which
 illustrates one method of including a multiple library dependency. You
-can use a normal image build to include this dependency, for example::
+can use a normal image build to include this dependency, for example:
+
+.. code-block:: console
 
    $ bitbake core-image-sato
 
 You can also build Multilib packages
-specifically with a command like this::
+specifically with a command like this:
+
+.. code-block:: console
 
    $ bitbake lib32-glib-2.0
 
diff --git a/documentation/dev-manual/limiting-resources.rst b/documentation/dev-manual/limiting-resources.rst
index 93c20c44c36e..b779fbb835a9 100644
--- a/documentation/dev-manual/limiting-resources.rst
+++ b/documentation/dev-manual/limiting-resources.rst
@@ -102,7 +102,9 @@ details.
 
       This script can be stopped by pressing Control + C.
 
-   #.  Then, start a heavy-load build, for example::
+   #.  Then, start a heavy-load build, for example:
+
+       .. code-block:: console
 
           $ bitbake virtual/kernel -c compile -f
 
@@ -140,7 +142,9 @@ details.
    This variable will limit the number of threads :term:`BitBake` will start
    by monitoring the current CPU load of the host system. :term:`BitBake` will
    print the following when the limit set by :term:`BB_LOADFACTOR_MAX` is
-   reached::
+   reached:
+
+   .. code-block:: text
 
       Load average limiting set to True as load average: 0.7188262939453125 - using 37/64 bitbake threads
 
diff --git a/documentation/dev-manual/multiconfig.rst b/documentation/dev-manual/multiconfig.rst
index 58ff95c170f4..f021985eec8a 100644
--- a/documentation/dev-manual/multiconfig.rst
+++ b/documentation/dev-manual/multiconfig.rst
@@ -91,11 +91,15 @@ Follow these steps to set up and execute multiple configuration builds:
       with "".
 
 -  *Launch BitBake*: Use the following BitBake command form to launch
-   the multiple configuration build::
+   the multiple configuration build:
+
+   .. code-block:: console
 
       $ bitbake [mc:multiconfigname:]target [[[mc:multiconfigname:]target] ... ]
 
-   For the example in this section, the following command applies::
+   For the example in this section, the following command applies:
+
+   .. code-block:: console
 
       $ bitbake mc:x86:core-image-minimal mc:arm:core-image-sato mc::core-image-base
 
@@ -150,7 +154,9 @@ task on which the :ref:`ref-tasks-image` task in the recipe depends is the
 with the "arm" multiconfig.
 
 Once you set up this dependency, you can build the "x86" multiconfig
-using a BitBake command as follows::
+using a BitBake command as follows:
+
+.. code-block:: console
 
    $ bitbake mc:x86:core-image-sato
 
@@ -192,7 +198,9 @@ Suggested best practices
    the deployed item based on :term:`TMPDIR`.
 
    The :ref:`ref-tasks-install` and :ref:`ref-tasks-deploy` tasks should look
-   like this::
+   like this:
+
+   .. code-block:: text
 
       do_install() {
           install -m 0644 ${TMPDIR}-<multiconfig>/tmp/deploy/images/<machine>/somefile ${D}/some/path
@@ -261,7 +269,9 @@ following that the file is named ``my-firmware.elf``.
 Building the firmware
 ---------------------
 
-The firmware can be built with BitBake with the following command::
+The firmware can be built with BitBake with the following command:
+
+.. code-block:: console
 
    $ bitbake mc:baremetal-firmware:my-firmware
 
diff --git a/documentation/dev-manual/new-machine.rst b/documentation/dev-manual/new-machine.rst
index b4d29027be12..4d7c332faad6 100644
--- a/documentation/dev-manual/new-machine.rst
+++ b/documentation/dev-manual/new-machine.rst
@@ -104,7 +104,9 @@ contains directories for specific machines such as ``qemuarm`` and
 defaults, see the ``meta/recipes-bsp/formfactor/files/config`` file
 found in the same area.
 
-Here is an example for "qemuarm" machine::
+Here is an example for "qemuarm" machine:
+
+.. code-block:: shell
 
    HAVE_TOUCHSCREEN=1
    HAVE_KEYBOARD=1
diff --git a/documentation/dev-manual/new-recipe.rst b/documentation/dev-manual/new-recipe.rst
index a270d82b5958..a9f38a6bcf72 100644
--- a/documentation/dev-manual/new-recipe.rst
+++ b/documentation/dev-manual/new-recipe.rst
@@ -74,7 +74,9 @@ license requirements, and checksums configured.
 To run the tool, you just need to be in your :term:`Build Directory` and
 have sourced the build environment setup script (i.e.
 :ref:`structure-core-script`). To get help on the tool, use the following
-command::
+command:
+
+.. code-block:: console
 
    $ recipetool -h
    NOTE: Starting bitbake server...
@@ -104,19 +106,25 @@ locates it properly in the layer that contains your source files.
 Here are some syntax examples:
 
  - Use this syntax to generate a recipe based on source. Once generated,
-   the recipe resides in the existing source code layer::
+   the recipe resides in the existing source code layer:
+
+   .. code-block:: console
 
       $ recipetool create -o OUTFILE source
 
  - Use this syntax to generate a recipe using code that
    you extract from source. The extracted code is placed in its own layer
-   defined by :term:`EXTERNALSRC`::
+   defined by :term:`EXTERNALSRC`:
+
+   .. code-block:: console
 
       $ recipetool create -o OUTFILE -x EXTERNALSRC source
 
  - Use this syntax to generate a recipe based on source. The options
    direct ``recipetool`` to generate debugging information. Once generated,
-   the recipe resides in the existing source code layer::
+   the recipe resides in the existing source code layer:
+
+   .. code-block:: console
 
       $ recipetool create -d -o OUTFILE source
 
@@ -182,7 +190,9 @@ the recipe.
    ":ref:`dev-manual/layers:understanding and creating layers`" section.
 
 -  *Naming Your Recipe:* When you name your recipe, you need to follow
-   this naming convention::
+   this naming convention:
+
+   .. code-block:: text
 
       basename_version.bb
 
@@ -208,7 +218,9 @@ progressively discover and add information to the recipe file.
 Assuming you have sourced the build environment setup script (i.e.
 :ref:`structure-core-script`) and you are in the :term:`Build Directory`, use
 BitBake to process your recipe. All you need to provide is the
-``basename`` of the recipe as described in the previous section::
+``basename`` of the recipe as described in the previous section:
+
+.. code-block:: console
 
    $ bitbake basename
 
@@ -220,7 +232,9 @@ compilation and packaging files, and so forth.
 
 The path to the per-recipe temporary work directory depends on the
 context in which it is being built. The quickest way to find this path
-is to use the ``bitbake-getvar`` utility::
+is to use the ``bitbake-getvar`` utility:
+
+.. code-block:: console
 
    $ bitbake-getvar -r basename WORKDIR
 
@@ -231,7 +245,9 @@ top-level folder named ``bitbake-builds``, a default :term:`Build Directory` at
 
 Furthermore, suppose your recipe is named ``foo_1.3.0.bb``. In this
 case, the work directory the build system uses to build the package
-would be as follows::
+would be as follows:
+
+.. code-block:: text
 
    bitbake-builds/build/tmp/work/cortexa57-poky-linux/foo/1.3.0
 
@@ -289,7 +305,9 @@ recipe to match the new version.
 Here is a simple example from the
 :oe_git:`strace recipe </openembedded-core/tree/meta/recipes-devtools/strace>`
 where the source comes from a single tarball. Notice the use of the
-:term:`PV` variable::
+:term:`PV` variable:
+
+.. code-block:: text
 
    SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/strace-${PV}.tar.xz \
 
diff --git a/documentation/dev-manual/packages.rst b/documentation/dev-manual/packages.rst
index 380d806be041..d8bdab8f489f 100644
--- a/documentation/dev-manual/packages.rst
+++ b/documentation/dev-manual/packages.rst
@@ -174,7 +174,9 @@ stopping the server.
 If you have a more complex setup where multiple host development systems
 work against a common, shared package feed, you have a single PR Service
 running and it is connected to each building system. For this scenario,
-you need to start the PR Service using the ``bitbake-prserv`` command::
+you need to start the PR Service using the ``bitbake-prserv`` command:
+
+.. code-block:: console
 
    $ bitbake-prserv --host ip --port port --start
 
@@ -261,7 +263,9 @@ code changes. Here is an example::
    PV = "1.0+git"
 
 The OpenEmbedded build system will automatically add the source control
-information to the end of the variable :term:`PKGV`, in this format::
+information to the end of the variable :term:`PKGV`, in this format:
+
+.. code-block:: text
 
    AUTOINC+source_code_revision
 
@@ -384,7 +388,9 @@ directory of :term:`OpenEmbedded-Core (OE-Core)`. You can
 also find examples in ``meta/classes-recipe/kernel.bbclass``.
 
 Here is a reference that shows ``do_split_packages`` mandatory and
-optional arguments::
+optional arguments:
+
+.. code-block:: text
 
    Mandatory arguments
 
@@ -595,13 +601,17 @@ target's package database(s) later once your image is up and running.
 Whenever you perform any sort of build step that can potentially
 generate a package or modify existing package, it is always a good idea
 to re-generate the package index after the build by using the following
-command::
+command:
+
+.. code-block:: console
 
    $ bitbake package-index
 
 It might be tempting to build the
 package and the package index at the same time with a command such as
-the following::
+the following:
+
+.. code-block:: console
 
    $ bitbake some-package package-index
 
@@ -654,7 +664,9 @@ Lighttpd, or Nginx), take the appropriate steps to do so.
 From within the :term:`Build Directory` where you have built an image based on
 your packaging choice (i.e. the :term:`PACKAGE_CLASSES` setting), simply start
 the server. The following example assumes a :term:`Build Directory` of ``bitbake-builds/build``
-and a :term:`PACKAGE_CLASSES` setting of ":ref:`ref-classes-package_rpm`"::
+and a :term:`PACKAGE_CLASSES` setting of ":ref:`ref-classes-package_rpm`":
+
+.. code-block:: console
 
    $ cd bitbake-builds/build/tmp/deploy/rpm
    $ python3 -m http.server
@@ -719,7 +731,9 @@ for all architectures. You cannot do both:
    architectures.
 
 -  *Create a Single (Full) Package Index:* Define a single base URL that
-   identifies where a full package database is located::
+   identifies where a full package database is located:
+
+   .. code-block:: text
 
       [oe-packages]
       baseurl=http://my.server/rpm
@@ -984,7 +998,9 @@ which is a file browser web application.
    You must know the ``cute-files`` module version.
 
 The first thing you need to do is use ``devtool`` and the NPM fetcher to
-create the recipe::
+create the recipe:
+
+.. code-block:: console
 
    $ devtool add "npm://registry.npmjs.org;package=cute-files;version=1.0.2"
 
@@ -994,7 +1010,9 @@ fetch URI to download each dependency and capture license details where
 possible. The result is a generated recipe.
 
 After running for quite a long time, in particular building the
-``nodejs-native`` package, the command should end as follows::
+``nodejs-native`` package, the command should end as follows:
+
+.. code-block:: text
 
    INFO: Recipe /home/.../build/workspace/recipes/cute-files/cute-files_1.0.2.bb has been automatically created; further editing may be required to make it fully functional
 
@@ -1017,7 +1035,9 @@ runs.
    practical way to have the licenses for all of the dependencies
    represented in the license manifest of the image.
 
-The ``devtool edit-recipe`` command lets you take a look at the recipe::
+The ``devtool edit-recipe`` command lets you take a look at the recipe:
+
+.. code-block:: console
 
    $ devtool edit-recipe cute-files
    # Recipe created by recipetool
@@ -1070,7 +1090,9 @@ Three key points in the previous example are:
 -  The ``inherit npm`` statement causes the :ref:`ref-classes-npm` class to
    package up all the modules.
 
-You can run the following command to build the ``cute-files`` package::
+You can run the following command to build the ``cute-files`` package:
+
+.. code-block:: console
 
    $ devtool build cute-files
 
@@ -1078,12 +1100,16 @@ Remember that ``nodejs`` must be installed on
 the target before your package.
 
 Assuming 192.168.7.2 for the target's IP address, use the following
-command to deploy your package::
+command to deploy your package:
+
+.. code-block:: console
 
    $ devtool deploy-target -s cute-files root@192.168.7.2
 
 Once the package is installed on the target, you can
-test the application to show the contents of any directory::
+test the application to show the contents of any directory:
+
+.. code-block:: console
 
   $ cd /usr/lib/node_modules/cute-files
   $ cute-files
@@ -1110,7 +1136,9 @@ projects method, you provide ``devtool`` with an URL that points to the
 source files.
 
 Replicating the same example, (i.e. ``cute-files``) use the following
-command::
+command:
+
+.. code-block:: console
 
    $ devtool add https://github.com/martinaglv/cute-files.git
 
diff --git a/documentation/dev-manual/prebuilt-libraries.rst b/documentation/dev-manual/prebuilt-libraries.rst
index 9cc8bd2d9dee..5422200507f4 100644
--- a/documentation/dev-manual/prebuilt-libraries.rst
+++ b/documentation/dev-manual/prebuilt-libraries.rst
@@ -27,7 +27,9 @@ Versioned Libraries
 
 In this example we work with pre-built libraries for the FT4222H USB I/O chip.
 Libraries are built for several target architecture variants and packaged in
-an archive as follows::
+an archive as follows:
+
+.. code-block:: text
 
    ├── build-arm-hisiv300
    │   └── libft4222.so.1.4.4.44
diff --git a/documentation/dev-manual/python-development-shell.rst b/documentation/dev-manual/python-development-shell.rst
index 76167f5bacf4..f518dc40e7a8 100644
--- a/documentation/dev-manual/python-development-shell.rst
+++ b/documentation/dev-manual/python-development-shell.rst
@@ -37,7 +37,9 @@ helpful when debugging a build or preparing software to be used with the
 OpenEmbedded build system.
 
 Here is an example that uses ``pydevshell`` on a target named
-``matchbox-desktop``::
+``matchbox-desktop``:
+
+.. code-block:: console
 
    $ bitbake matchbox-desktop -c pydevshell
 
diff --git a/documentation/dev-manual/qemu.rst b/documentation/dev-manual/qemu.rst
index d7e0b2f2f44f..a6be0f793cc7 100644
--- a/documentation/dev-manual/qemu.rst
+++ b/documentation/dev-manual/qemu.rst
@@ -63,7 +63,9 @@ available. Follow these general steps to run QEMU:
 
    -  If you installed a cross-toolchain, you can run the script that
       initializes the toolchain. For example, the following commands run
-      the initialization script from the default ``poky_sdk`` directory::
+      the initialization script from the default ``poky_sdk`` directory:
+
+      .. code-block:: console
 
          $ . poky_sdk/environment-setup-core2-64-poky-linux
 
@@ -85,7 +87,9 @@ available. Follow these general steps to run QEMU:
    Extensible Software Development Kit (eSDK) manual for information on
    how to extract a root filesystem.
 
-#. *Run QEMU:* The basic ``runqemu`` command syntax is as follows::
+#. *Run QEMU:* The basic ``runqemu`` command syntax is as follows:
+
+   .. code-block:: console
 
       $ runqemu [option ] [...]
 
@@ -104,7 +108,9 @@ available. Follow these general steps to run QEMU:
       automatically finds the ``bzImage-qemux86-64.bin`` image file and
       the ``core-image-minimal-qemux86-64-20200218002850.rootfs.ext4``
       (assuming the current build created a ``core-image-minimal``
-      image)::
+      image):
+
+      .. code-block:: console
 
         $ runqemu qemux86-64
 
@@ -116,7 +122,9 @@ available. Follow these general steps to run QEMU:
 
    -  This example produces the exact same results as the previous
       example. This command, however, specifically provides the image
-      and root filesystem type::
+      and root filesystem type:
+
+      .. code-block:: console
 
          $ runqemu qemux86-64 core-image-minimal ext4
 
@@ -136,20 +144,26 @@ available. Follow these general steps to run QEMU:
       variable ``FSTYPE`` to ``cpio.gz``. Also, for audio to be enabled,
       an appropriate driver must be installed (see the ``audio`` option
       in :ref:`dev-manual/qemu:\`\`runqemu\`\` command-line options`
-      for more information)::
+      for more information):
+
+      .. code-block:: console
 
          $ runqemu qemux86-64 ramfs audio
 
    -  This example does not provide enough information for QEMU to
       launch. While the command does provide a root filesystem type, it
-      must also minimally provide a `MACHINE`, `KERNEL`, or `VM` option::
+      must also minimally provide a `MACHINE`, `KERNEL`, or `VM` option:
+
+      .. code-block:: console
 
          $ runqemu ext4
 
    -  This example specifies to boot a virtual machine image
       (``.wic.vmdk`` file). From the ``.wic.vmdk``, ``runqemu``
       determines the QEMU architecture (`MACHINE`) to be "qemux86-64" and
-      the root filesystem type to be "vmdk"::
+      the root filesystem type to be "vmdk":
+
+      .. code-block:: console
 
          $ runqemu /home/user/vm/core-image-minimal-qemux86-64.wic.vmdk
 
@@ -225,15 +239,21 @@ using an NFS server.
    Should you need to start, stop, or restart the NFS share, you can use
    the following commands:
 
-   -  To start the NFS share::
+   -  To start the NFS share:
+
+      .. code-block:: console
 
          $ runqemu-export-rootfs start file-system-location
 
-   -  To stop the NFS share::
+   -  To stop the NFS share:
+
+      .. code-block:: console
 
          $ runqemu-export-rootfs stop file-system-location
 
-   -  To restart the NFS share::
+   -  To restart the NFS share:
+
+      .. code-block:: console
 
          $ runqemu-export-rootfs restart file-system-location
 
@@ -311,7 +331,9 @@ present, the toolchain is also automatically used.
 QEMU Command-Line Syntax
 ========================
 
-The basic ``runqemu`` command syntax is as follows::
+The basic ``runqemu`` command syntax is as follows:
+
+.. code-block:: console
 
    $ runqemu [option ] [...]
 
@@ -322,7 +344,9 @@ timestamp when it needs to look for an image. Minimally, through the use
 of options, you must provide either a machine name, a virtual machine
 image (``*wic.vmdk``), or a kernel image (``*.bin``).
 
-Here is the command-line help output for the ``runqemu`` command::
+Here is the command-line help output for the ``runqemu`` command:
+
+.. code-block:: console
 
    $ runqemu --help
 
diff --git a/documentation/dev-manual/quilt.rst b/documentation/dev-manual/quilt.rst
index 59240705ad99..511a34b3199d 100644
--- a/documentation/dev-manual/quilt.rst
+++ b/documentation/dev-manual/quilt.rst
@@ -32,13 +32,17 @@ Follow these general steps:
 
 #. *Create a New Patch:* Before modifying source code, you need to
    create a new patch. To create a new patch file, use ``quilt new`` as
-   below::
+   below:
+
+   .. code-block:: console
 
       $ quilt new my_changes.patch
 
 #. *Notify Quilt and Add Files:* After creating the patch, you need to
    notify Quilt about the files you plan to edit. You notify Quilt by
-   adding the files to the patch you just created::
+   adding the files to the patch you just created:
+
+   .. code-block:: console
 
       $ quilt add file1.c file2.c file3.c
 
@@ -47,7 +51,9 @@ Follow these general steps:
 
 #. *Test Your Changes:* Once you have modified the source code, the
    easiest way to test your changes is by calling the :ref:`ref-tasks-compile`
-   task as shown in the following example::
+   task as shown in the following example:
+
+   .. code-block:: console
 
       $ bitbake -c compile -f package
 
@@ -67,7 +73,9 @@ Follow these general steps:
 
 #. *Generate the Patch:* Once your changes work as expected, you need to
    use Quilt to generate the final patch that contains all your
-   modifications::
+   modifications:
+
+   .. code-block:: console
 
       $ quilt refresh
 
diff --git a/documentation/dev-manual/sstate-mirrors-setup.rst b/documentation/dev-manual/sstate-mirrors-setup.rst
index e69aa00d1cc6..af369b254e9e 100644
--- a/documentation/dev-manual/sstate-mirrors-setup.rst
+++ b/documentation/dev-manual/sstate-mirrors-setup.rst
@@ -119,7 +119,9 @@ Going Further
 
    The recommended way to do that is by setting the following parameters
    in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
-   directory)::
+   directory):
+
+   .. code-block:: text
 
       machine someserver.tld
       login <user>
@@ -134,7 +136,9 @@ Going Further
 
    Another method to configure the username and password is from the
    URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
-   parameters::
+   parameters:
+
+   .. code-block:: text
 
       SSTATE_MIRRORS ?= "\
           file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
diff --git a/documentation/dev-manual/start.rst b/documentation/dev-manual/start.rst
index 81466ca40254..d65913159b2c 100644
--- a/documentation/dev-manual/start.rst
+++ b/documentation/dev-manual/start.rst
@@ -370,7 +370,9 @@ your Yocto Project build host:
    <https://learn.microsoft.com/en-us/windows/wsl/install-on-server>`__.
 
    To check which build version you are running, you may open a command
-   prompt on Windows and execute the command "ver"::
+   prompt on Windows and execute the command "ver":
+
+   .. code-block:: doscon
 
       C:\Users\myuser> ver
 
@@ -387,7 +389,9 @@ your Yocto Project build host:
    distribution.
 
 #. *Check which Linux distribution WSL 2 is using:* Open a Windows
-   PowerShell and run::
+   PowerShell and run:
+
+   .. code-block:: doscon
 
       C:\WINDOWS\system32> wsl -l -v
       NAME    STATE   VERSION
@@ -412,7 +416,9 @@ your Yocto Project build host:
    1. *Find the location of your VHDX file:*
 
       First you need to find the distro app package directory, to achieve this
-      open a Windows Powershell as Administrator and run::
+      open a Windows Powershell as Administrator and run:
+
+      .. code-block:: doscon
 
          C:\WINDOWS\system32> Get-AppxPackage -Name "*Ubuntu*" | Select PackageFamilyName
          PackageFamilyName
@@ -422,7 +428,9 @@ your Yocto Project build host:
 
       You should now
       replace the PackageFamilyName and your user on the following path
-      to find your VHDX file::
+      to find your VHDX file:
+
+      .. code-block:: doscon
 
          C:\WINDOWS\system32> ls C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState
          Mode                 LastWriteTime         Length Name
@@ -435,7 +443,9 @@ your Yocto Project build host:
 
        To use the ``optimize-vhd`` cmdlet below, first install the Hyper-V
        option on Windows. Then, open a Windows Powershell as Administrator to
-       optimize your VHDX file, shutting down WSL first::
+       optimize your VHDX file, shutting down WSL first:
+
+       .. code-block:: doscon
 
          C:\WINDOWS\system32> wsl --shutdown
          C:\WINDOWS\system32> optimize-vhd -Path C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\ext4.vhdx -Mode full
@@ -449,7 +459,9 @@ your Yocto Project build host:
        The ``optimize-vhd`` cmdlet noted in step 2a above is provided by
        Hyper-V. Not all SKUs of Windows can install Hyper-V. As an alternative,
        use the DiskPart tool. To start, open a Windows command prompt as
-       Administrator to optimize your VHDX file, shutting down WSL first::
+       Administrator to optimize your VHDX file, shutting down WSL first:
+
+       .. code-block:: doscon
 
          C:\WINDOWS\system32> wsl --shutdown
          C:\WINDOWS\system32> diskpart
diff --git a/documentation/dev-manual/temporary-source-code.rst b/documentation/dev-manual/temporary-source-code.rst
index cb27d22070ef..1a899070db86 100644
--- a/documentation/dev-manual/temporary-source-code.rst
+++ b/documentation/dev-manual/temporary-source-code.rst
@@ -35,13 +35,17 @@ You should be aware that many recipes override the
    directory which matches value of ${BP} exactly).
 
 The path to the unpack directory for the recipe
-(:term:`UNPACKDIR`) is defined as follows::
+(:term:`UNPACKDIR`) is defined as follows:
+
+.. code-block:: text
 
    ${WORKDIR}/sources
 
 In turn, the path to the work directory for the recipe
 (:term:`WORKDIR`) is defined as
-follows::
+follows:
+
+.. code-block:: text
 
    ${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}/${PN}/${PV}
 
@@ -61,7 +65,9 @@ As an example, assume a Source Directory top-level folder named
 ``project``, a default :term:`Build Directory` at ``project/build``, and a
 ``qemux86-poky-linux`` machine target system. Furthermore, suppose your
 recipe is named ``foo_1.3.0.bb``. In this case, the work directory the
-build system uses to build the package would be as follows::
+build system uses to build the package would be as follows:
+
+.. code-block:: text
 
    project/build/tmp/work/qemux86-poky-linux/foo/1.3.0
 
diff --git a/documentation/dev-manual/upgrading-recipes.rst b/documentation/dev-manual/upgrading-recipes.rst
index f4b9df241093..b664bbc8acbe 100644
--- a/documentation/dev-manual/upgrading-recipes.rst
+++ b/documentation/dev-manual/upgrading-recipes.rst
@@ -59,19 +59,25 @@ The following steps describe how to set up the AUH utility:
 #. *Make Sure Git is Configured:* The AUH utility requires Git to be
    configured because AUH uses Git to save upgrades. Thus, you must have
    Git user and email configured. The following command shows your
-   configurations::
+   configurations:
+
+   .. code-block:: console
 
       $ git config --list
 
    If you do not have the user and
-   email configured, you can use the following commands to do so::
+   email configured, you can use the following commands to do so:
+
+   .. code-block:: console
 
       $ git config --global user.name some_name
       $ git config --global user.email username@domain.com
 
 #. *Clone the AUH Repository:* To use AUH, you must clone the repository
    onto your development host. The following command uses Git to create
-   a local copy of the repository on your system::
+   a local copy of the repository on your system:
+
+   .. code-block:: console
 
       $ git clone https://git.yoctoproject.org/auto-upgrade-helper
       Cloning into 'auto-upgrade-helper'... remote: Counting objects: 768, done.
@@ -87,7 +93,9 @@ The following steps describe how to set up the AUH utility:
 #. *Create a Dedicated Build Directory:* Create a new :term:`bitbake:Setup` with
    ``bitbake-setup`` or manually run the :ref:`structure-core-script`
    script to create a fresh :term:`Build Directory` that you use exclusively
-   for running the AUH utility::
+   for running the AUH utility:
+
+   .. code-block:: console
 
       $ source layers/openembedded-core/oe-init-build-env your_AUH_build_directory
 
@@ -129,7 +137,9 @@ The following steps describe how to set up the AUH utility:
 
 
 #. *Optionally Start a vncserver:* If you are running in a server
-   without an X11 session, you need to start a vncserver::
+   without an X11 session, you need to start a vncserver:
+
+   .. code-block:: console
 
       $ vncserver :1
       $ export DISPLAY=:1
@@ -154,38 +164,52 @@ The following steps describe how to set up the AUH utility:
 This next set of examples describes how to use the AUH:
 
 -  *Upgrading a Specific Recipe:* To upgrade a specific recipe, use the
-   following form::
+   following form:
+
+   .. code-block:: console
 
       $ upgrade-helper.py recipe_name
 
-   For example, this command upgrades the ``xmodmap`` recipe::
+   For example, this command upgrades the ``xmodmap`` recipe:
+
+   .. code-block:: console
 
       $ upgrade-helper.py xmodmap
 
 -  *Upgrading a Specific Recipe to a Particular Version:* To upgrade a
-   specific recipe to a particular version, use the following form::
+   specific recipe to a particular version, use the following form:
+
+   .. code-block:: console
 
       $ upgrade-helper.py recipe_name -t version
 
-   For example, this command upgrades the ``xmodmap`` recipe to version 1.2.3::
+   For example, this command upgrades the ``xmodmap`` recipe to version 1.2.3:
+
+   .. code-block:: console
 
       $ upgrade-helper.py xmodmap -t 1.2.3
 
 -  *Upgrading all Recipes to the Latest Versions and Suppressing Email
    Notifications:* To upgrade all recipes to their most recent versions
-   and suppress the email notifications, use the following command::
+   and suppress the email notifications, use the following command:
+
+   .. code-block:: console
 
       $ upgrade-helper.py all
 
 -  *Upgrading all Recipes to the Latest Versions and Send Email
    Notifications:* To upgrade all recipes to their most recent versions
    and send email messages to maintainers for each attempted recipe as
-   well as a status email, use the following command::
+   well as a status email, use the following command:
+
+   .. code-block:: console
 
       $ upgrade-helper.py -e all
 
 Once you have run the AUH utility, you can find the results in the AUH
-:term:`Build Directory`::
+:term:`Build Directory`:
+
+.. code-block:: text
 
    ${BUILDDIR}/upgrade-helper/timestamp
 
@@ -210,13 +234,17 @@ section in the Yocto Project Application Development and the Extensible
 Software Development Kit (eSDK) Manual.
 
 To see all the command-line options available with ``devtool upgrade``,
-use the following help command::
+use the following help command:
+
+.. code-block:: console
 
    $ devtool upgrade -h
 
 If you want to find out what version a recipe is currently at upstream
 without any attempt to upgrade your local version of the recipe, you can
-use the following command::
+use the following command:
+
+.. code-block:: console
 
    $ devtool latest-version recipe_name
 
@@ -242,12 +270,16 @@ could add it easily using the
 ":ref:`bitbake-layers <bsp-manual/bsp:creating a new bsp layer using the \`\`bitbake-layers\`\` script>`"
 script. For example, suppose you use the ``nano.bb`` recipe from the
 ``meta-oe`` layer in the ``meta-openembedded`` repository. For this
-example, assume that the layer has been cloned into following area::
+example, assume that the layer has been cloned into following area:
+
+.. code-block:: text
 
    /home/user/bitbake-builds/layers/meta-openembedded
 
 The following command from your :term:`Build Directory` adds the layer to
-your build configuration (i.e. ``${BUILDDIR}/conf/bblayers.conf``)::
+your build configuration (i.e. ``${BUILDDIR}/conf/bblayers.conf``):
+
+.. code-block:: console
 
    $ bitbake-layers add-layer /home/user/bitbake-builds/layers/meta-openembedded/meta-oe
    NOTE: Starting bitbake server...
@@ -261,7 +293,9 @@ your build configuration (i.e. ``${BUILDDIR}/conf/bblayers.conf``)::
 For this example, assume that the ``nano.bb`` recipe that
 is upstream has a 2.9.3 version number. However, the version in the
 local repository is 2.7.4. The following command from your build
-directory automatically upgrades the recipe for you::
+directory automatically upgrades the recipe for you:
+
+.. code-block:: console
 
    $ devtool upgrade nano -V 2.9.3
    NOTE: Starting bitbake server...
@@ -286,7 +320,9 @@ directory automatically upgrades the recipe for you::
    ``devtool upgrade`` to upgrade the recipe to the most recent version.
 
 Continuing with this example, you can use ``devtool build`` to build the
-newly upgraded recipe::
+newly upgraded recipe:
+
+.. code-block:: console
 
    $ devtool build nano
    NOTE: Starting bitbake server...
@@ -311,7 +347,9 @@ and submit commits for the changes generated by the upgrade process.
 
 Once the tree is clean, you can clean things up in this example with the
 following command from the ``${BUILDDIR}/workspace/sources/nano``
-directory::
+directory:
+
+.. code-block:: console
 
    $ devtool finish nano meta-oe
    NOTE: Starting bitbake server...
diff --git a/documentation/dev-manual/wayland.rst b/documentation/dev-manual/wayland.rst
index ec8ed86c1c60..7113aa30d1b3 100644
--- a/documentation/dev-manual/wayland.rst
+++ b/documentation/dev-manual/wayland.rst
@@ -78,13 +78,17 @@ Alternatively, you can run Weston through the command-line interpretor
 (CLI), which is better suited for development work. To run Weston under
 the CLI, you need to do the following after your image is built:
 
-#. Run these commands to export ``XDG_RUNTIME_DIR``::
+#. Run these commands to export ``XDG_RUNTIME_DIR``:
+
+   .. code-block:: console
 
       user@machine:~$ mkdir -p /tmp/$USER-weston
       user@machine:~$ chmod 0700 /tmp/$USER-weston
       user@machine:~$ export XDG_RUNTIME_DIR=/tmp/$USER-weston
 
-#. Launch Weston in the shell::
+#. Launch Weston in the shell:
+
+   .. code-block:: console
 
       user@machine:~$ weston
 
diff --git a/documentation/dev-manual/x32-psabi.rst b/documentation/dev-manual/x32-psabi.rst
index 4ee5a5379a4f..592c0e30b4bb 100644
--- a/documentation/dev-manual/x32-psabi.rst
+++ b/documentation/dev-manual/x32-psabi.rst
@@ -48,7 +48,9 @@ configuration file as follows::
 
 Once you have set
 up your configuration file, use BitBake to build an image that supports
-the x32 psABI. Here is an example::
+the x32 psABI. Here is an example:
+
+.. code-block:: console
 
    $ bitbake core-image-sato
 
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 05/16] kernel-dev: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (3 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 04/16] dev-manual: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 06/16] migration-guides: " Trevor Woerner
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/kernel-dev/advanced.rst      |  74 +++++---
 documentation/kernel-dev/common.rst        | 208 +++++++++++++++------
 documentation/kernel-dev/concepts-appx.rst |   8 +-
 documentation/kernel-dev/maint-appx.rst    |  20 +-
 4 files changed, 228 insertions(+), 82 deletions(-)

diff --git a/documentation/kernel-dev/advanced.rst b/documentation/kernel-dev/advanced.rst
index ecd0137fa5fd..7e89c1924441 100644
--- a/documentation/kernel-dev/advanced.rst
+++ b/documentation/kernel-dev/advanced.rst
@@ -152,7 +152,9 @@ types to form the final description of what will be assembled and built.
 While the kernel Metadata syntax does not enforce any logical separation
 of configuration fragments, patches, features or kernel types, best
 practices dictate a logical separation of these types of Metadata. The
-following Metadata file hierarchy is recommended::
+following Metadata file hierarchy is recommended:
+
+.. code-block:: text
 
    base/
       bsp/
@@ -218,7 +220,7 @@ two files: ``smp.scc`` and ``smp.cfg``. You can find these files in the
 ``cfg`` directory of the ``yocto-4.12`` branch in the
 ``yocto-kernel-cache`` Git repository.
 
-.. code-block::
+.. code-block:: shell
    :caption: cfg/smp.scc
 
    define KFEATURE_DESCRIPTION "Enable SMP for 32 bit builds"
@@ -226,7 +228,7 @@ two files: ``smp.scc`` and ``smp.cfg``. You can find these files in the
 
    kconf hardware smp.cfg
 
-.. code-block::
+.. code-block:: ini
    :caption: cfg/smp.cfg
 
    CONFIG_SMP=y
@@ -262,7 +264,9 @@ non-hardware fragment.
 
 As described in the
 ":ref:`kernel-dev/common:validating configuration`" section, you can
-use the following BitBake command to audit your configuration::
+use the following BitBake command to audit your configuration:
+
+.. code-block:: console
 
    $ bitbake linux-yocto -c kernel_configcheck -f
 
@@ -282,7 +286,7 @@ kernel as defined outside of the recipe space (i.e.
 in the ``patches/build`` directory of the ``yocto-4.12`` branch in the
 ``yocto-kernel-cache`` Git repository.
 
-.. code-block::
+.. code-block:: shell
    :caption: patches/build/build.scc
 
    patch arm-serialize-build-targets.patch
@@ -297,7 +301,7 @@ in the ``patches/build`` directory of the ``yocto-4.12`` branch in the
 
 and part of the patch it names:
 
-.. code-block::
+.. code-block:: text
    :caption: patches/build/modpost-mask-trivial-warnings.patch
 
    From bd48931bc142bdd104668f3a062a1f22600aae61 Mon Sep 17 00:00:00 2001
@@ -334,7 +338,7 @@ Features are complex kernel Metadata types that consist of configuration
 fragments, patches, and possibly other feature description files. As an
 example, consider the following generic listing:
 
-.. code-block::
+.. code-block:: shell
    :caption: features/myfeature.scc
 
    define KFEATURE_DESCRIPTION "Enable myfeature"
@@ -406,7 +410,9 @@ for Linux Yocto kernels:
 For any given kernel type, the Metadata is defined by the ``.scc`` (e.g.
 ``standard.scc``). Here is a partial listing for the ``standard.scc``
 file, which is found in the ``ktypes/standard`` directory of the
-``yocto-kernel-cache`` Git repository::
+``yocto-kernel-cache`` Git repository:
+
+.. code-block:: shell
 
    # Include this kernel type fragment to get the standard features and
    # configuration values.
@@ -475,13 +481,17 @@ Description Overview
 For simplicity, consider the following root BSP layer description files
 for the BeagleBone board. These files employ both a structure and naming
 convention for consistency. The naming convention for the file is as
-follows::
+follows:
+
+.. code-block:: text
 
    bsp_root_name-kernel_type.scc
 
 Here are some example root layer
 BSP filenames for the BeagleBone Board BSP, which is supported by the
-Yocto Project::
+Yocto Project:
+
+.. code-block:: text
 
    beaglebone-standard.scc
    beaglebone-preempt-rt.scc
@@ -489,7 +499,9 @@ Yocto Project::
 Each file uses the root name (i.e "beaglebone") BSP name followed by the
 kernel type.
 
-Examine the ``beaglebone-standard.scc`` file::
+Examine the ``beaglebone-standard.scc`` file:
+
+.. code-block:: shell
 
    define KMACHINE beaglebone
    define KTYPE standard
@@ -545,13 +557,17 @@ For information on how to break a complete ``.config`` file into the various
 configuration fragments, see the ":ref:`kernel-dev/common:creating configuration fragments`" section.
 
 Finally, if you have any configurations specific to the hardware that
-are not in a ``*.scc`` file, you can include them as follows::
+are not in a ``*.scc`` file, you can include them as follows:
+
+.. code-block:: shell
 
    kconf hardware mybsp-extra.cfg
 
 The BeagleBone example does not include these
 types of configurations. However, the Malta 32-bit board does
-("mti-malta32"). Here is the ``mti-malta32-le-standard.scc`` file::
+("mti-malta32"). Here is the ``mti-malta32-le-standard.scc`` file:
+
+.. code-block:: shell
 
    define KMACHINE mti-malta32-le
    define KMACHINE qemumipsel
@@ -570,7 +586,9 @@ Example
 Many real-world examples are more complex. Like any other ``.scc`` file,
 BSP descriptions can aggregate features. Consider the Minnow BSP
 definition given the ``linux-yocto-4.4`` branch of the
-``yocto-kernel-cache`` (i.e. ``yocto-kernel-cache/bsp/minnow/minnow.scc``)::
+``yocto-kernel-cache`` (i.e. ``yocto-kernel-cache/bsp/minnow/minnow.scc``):
+
+.. code-block:: shell
 
    include cfg/x86.scc
    include features/eg20t/eg20t.scc
@@ -605,7 +623,9 @@ found on the machine. This ``minnow.scc`` description file is then
 included in each of the three "minnow" description files for the
 supported kernel types (i.e. "standard", "preempt-rt", and "tiny").
 Consider the "minnow" description for the "standard" kernel type (i.e.
-``minnow-standard.scc``)::
+``minnow-standard.scc``):
+
+.. code-block:: shell
 
    define KMACHINE minnow
    define KTYPE standard
@@ -637,7 +657,9 @@ that defines all enabled hardware for the BSP that is common to all
 kernel types. Using this command significantly reduces duplication.
 
 Now consider the "minnow" description for the "tiny" kernel type (i.e.
-``minnow-tiny.scc``)::
+``minnow-tiny.scc``):
+
+.. code-block:: shell
 
    define KMACHINE minnow
    define KTYPE tiny
@@ -699,7 +721,9 @@ See the ":ref:`kernel-dev/common:modifying an existing recipe`"
 section for more information.
 
 Here is an example that shows a trivial tree of kernel Metadata stored
-in recipe-space within a BSP layer::
+in recipe-space within a BSP layer:
+
+.. code-block:: text
 
    meta-my_bsp_layer/
    `-- recipes-kernel
@@ -810,7 +834,9 @@ supplied as a fragment, its ``patch`` directives, and those of everything it
 If your BSP genuinely lives outside the kernel source history (the branch you
 build does **not** already contain the BSP commits, and the patches *must* be
 applied), the BSP description can opt back in to patch application by adding the
-following directive to the description itself::
+following directive to the description itself:
+
+.. code-block:: shell
 
    define KMETA_EXTERNAL_BSP 1
 
@@ -884,7 +910,7 @@ new branch as the :term:`KBRANCH` to use for the board as follows::
 Another method is to use the ``branch`` command in the BSP
 description:
 
-.. code-block::
+.. code-block:: shell
    :caption: mybsp.scc
 
    define KMACHINE mybsp
@@ -898,13 +924,17 @@ description:
 
 If you find yourself with numerous branches, you might consider using a
 hierarchical branching system similar to what the Yocto Linux Kernel Git
-repositories use::
+repositories use:
+
+.. code-block:: text
 
    common/kernel_type/machine
 
 If you had two kernel types, "standard" and "small" for instance, three
 machines, and common as ``mydir``, the branches in your Git repository
-might look like this::
+might look like this:
+
+.. code-block:: text
 
    mydir/base
    mydir/standard/base
@@ -938,7 +968,7 @@ provide for this with the ``git merge`` command.
 To merge a feature branch into a BSP, insert the ``git merge`` command
 after any ``branch`` commands:
 
-.. code-block::
+.. code-block:: shell
    :caption: mybsp.scc
 
    define KMACHINE mybsp
diff --git a/documentation/kernel-dev/common.rst b/documentation/kernel-dev/common.rst
index c478e64d6577..dd8d3cb79386 100644
--- a/documentation/kernel-dev/common.rst
+++ b/documentation/kernel-dev/common.rst
@@ -69,7 +69,9 @@ section:
 
 #. *Create a Layer for Patches:* You need to create a layer to hold
    patches created for the kernel image. You can use the
-   ``bitbake-layers create-layer`` command as follows::
+   ``bitbake-layers create-layer`` command as follows:
+
+   .. code-block:: console
 
       $ cd bitbake-builds/build
       $ bitbake-layers create-layer ../layers/meta-mylayer
@@ -92,14 +94,18 @@ section:
 #. *Inform the BitBake Build Environment About Your Layer:* As directed
    when you created your layer, you need to add the layer to the
    :term:`BBLAYERS` variable in the
-   :ref:`structure-build-conf-bblayers.conf` file as follows::
+   :ref:`structure-build-conf-bblayers.conf` file as follows:
+
+   .. code-block:: console
 
       $ cd bitbake-builds/build
       $ bitbake-layers add-layer ../../meta-mylayer
       NOTE: Starting bitbake server...
 
 #. *Build the Clean Image:* The final step in preparing to work on the
-   kernel is to build an initial image using ``bitbake``::
+   kernel is to build an initial image using ``bitbake``:
+
+   .. code-block:: console
 
       $ bitbake core-image-minimal
       Parsing recipes: 100% |##########################################| Time: 0:00:05
@@ -164,7 +170,9 @@ section:
 
 #. *Create a Layer for Patches:* You need to create a layer to hold
    patches created for the kernel image. You can use the
-   ``bitbake-layers create-layer`` command as follows::
+   ``bitbake-layers create-layer`` command as follows:
+
+   .. code-block:: console
 
       $ cd bitbake-builds/build
       $ bitbake-layers create-layer ../../meta-mylayer
@@ -187,7 +195,9 @@ section:
 #. *Inform the BitBake Build Environment About Your Layer:* As directed
    when you created your layer, you need to add the layer to the
    :term:`BBLAYERS` variable in the
-   :ref:`structure-build-conf-bblayers.conf` file as follows::
+   :ref:`structure-build-conf-bblayers.conf` file as follows:
+
+   .. code-block:: console
 
       $ cd bitbake-builds/build
       $ bitbake-layers add-layer ../../meta-mylayer
@@ -204,7 +214,9 @@ section:
    ``standard/base`` branch.
 
    The following commands show how to create a local copy of the
-   ``linux-yocto-4.12`` kernel and be in the ``standard/base`` branch::
+   ``linux-yocto-4.12`` kernel and be in the ``standard/base`` branch:
+
+   .. code-block:: console
 
       $ cd ~
       $ git clone https://git.yoctoproject.org/linux-yocto-4.12 --branch standard/base
@@ -230,7 +242,9 @@ section:
    the ``yocto-4.12`` branch.
 
    The following commands show how to create a local copy of the
-   ``yocto-kernel-cache`` and switch to the ``yocto-4.12`` branch::
+   ``yocto-kernel-cache`` and switch to the ``yocto-4.12`` branch:
+
+   .. code-block:: console
 
       $ cd ~
       $ git clone https://git.yoctoproject.org/yocto-kernel-cache --branch yocto-4.12
@@ -273,7 +287,9 @@ following section describes how to create a layer without the aid of
 tools. These steps assume creation of a layer named ``mylayer`` in your
 home directory:
 
-#. *Create Structure*: Create the layer's structure::
+#. *Create Structure*: Create the layer's structure:
+
+   .. code-block:: console
 
       $ mkdir -p meta-mylayer/conf meta-mylayer/recipes-kernel/linux/linux-yocto
 
@@ -362,7 +378,9 @@ The path ``${``\ :term:`THISDIR`\ ``}/${``\ :term:`PN`\ ``}``
 expands to "linux-yocto" in the current directory for this example. If
 you add any new files that modify the kernel recipe and you have
 extended :term:`FILESPATH` as described above, you must place the files in
-your layer in the following area::
+your layer in the following area:
+
+.. code-block:: text
 
    your-layer/recipes-kernel/linux/linux-yocto/
 
@@ -553,7 +571,9 @@ Generally speaking, the preferred approach is to determine the
 incremental change you want to make and add that as a configuration
 fragment. For example, if you want to add support for a basic serial
 console, create a file named ``8250.cfg`` in the ``${PN}`` directory
-with the following content (without indentation)::
+with the following content (without indentation):
+
+.. code-block:: ini
 
    CONFIG_SERIAL_8250=y
    CONFIG_SERIAL_8250_CONSOLE=y
@@ -650,7 +670,9 @@ the ":ref:`kernel-dev/common:getting ready to develop using ``devtool```" Sectio
       ":ref:`kernel-dev/common:getting ready to develop using ``devtool```"
       section for more information.
 
-   Use the following ``devtool`` command to check out the code::
+   Use the following ``devtool`` command to check out the code:
+
+   .. code-block:: console
 
       $ devtool modify linux-yocto
 
@@ -661,12 +683,16 @@ the ":ref:`kernel-dev/common:getting ready to develop using ``devtool```" Sectio
       noted where you can find the source files (e.g.
       ``build/workspace/sources/linux-yocto``). Change to where the
       kernel source code is before making your edits to the
-      ``calibrate.c`` file::
+      ``calibrate.c`` file:
+
+      .. code-block:: console
 
          $ cd build/workspace/sources/linux-yocto
 
    #. *Edit the source file*: Edit the ``init/calibrate.c`` file to have
-      the following changes::
+      the following changes:
+
+      .. code-block:: c
 
          void calibrate_delay(void)
          {
@@ -686,13 +712,17 @@ the ":ref:`kernel-dev/common:getting ready to develop using ``devtool```" Sectio
                     */
 
 #. *Build the Updated Kernel Source:* To build the updated kernel
-   source, use ``devtool``::
+   source, use ``devtool``:
+
+   .. code-block:: console
 
       $ devtool build linux-yocto
 
 #. *Create the Image With the New Kernel:* Use the
    ``devtool build-image`` command to create a new image that has the
-   new kernel::
+   new kernel:
+
+   .. code-block:: console
 
       $ cd ~
       $ devtool build-image core-image-minimal
@@ -709,7 +739,9 @@ the ":ref:`kernel-dev/common:getting ready to develop using ``devtool```" Sectio
    using QEMU to verify your changes:
 
    #. *Boot the image*: Boot the modified image in the QEMU emulator
-      using this command::
+      using this command:
+
+      .. code-block:: console
 
          $ runqemu qemux86
 
@@ -717,7 +749,7 @@ the ":ref:`kernel-dev/common:getting ready to develop using ``devtool```" Sectio
       password and then use the following shell command to scroll
       through the console's boot output.
 
-      .. code-block:: none
+      .. code-block:: console
 
          root@qemux86:~# dmesg | less
 
@@ -727,7 +759,9 @@ the ":ref:`kernel-dev/common:getting ready to develop using ``devtool```" Sectio
 
 #. *Stage and commit your changes*: Change
    your working directory to where you modified the ``calibrate.c`` file
-   and use these Git commands to stage and commit your changes::
+   and use these Git commands to stage and commit your changes:
+
+   .. code-block:: console
 
       $ cd build/workspace/sources/linux-yocto
       $ git status
@@ -736,7 +770,9 @@ the ":ref:`kernel-dev/common:getting ready to develop using ``devtool```" Sectio
 
 #. *Export the Patches and Create an Append File:* To export your
    commits as patches and create a ``.bbappend`` file, use the following
-   command. This example uses the previously established layer named ``meta-mylayer``::
+   command. This example uses the previously established layer named ``meta-mylayer``:
+
+   .. code-block:: console
 
       $ devtool finish linux-yocto ~/meta-mylayer
 
@@ -753,7 +789,9 @@ the ":ref:`kernel-dev/common:getting ready to develop using ``devtool```" Sectio
 #. *Build the Image With Your Modified Kernel:* You can now build an
    image that includes your kernel patches. Execute the following
    command from your :term:`Build Directory` in the terminal
-   set up to run BitBake::
+   set up to run BitBake:
+
+   .. code-block:: console
 
       $ cd bitbake-builds/build
       $ bitbake core-image-minimal
@@ -797,12 +835,16 @@ Section.
    #. *Change the working directory*: You need to locate the source
       files in the local copy of the kernel Git repository. Change to
       where the kernel source code is before making your edits to the
-      ``calibrate.c`` file::
+      ``calibrate.c`` file:
+
+      .. code-block:: console
 
          $ cd ~/linux-yocto-4.12/init
 
    #. *Edit the source file*: Edit the ``calibrate.c`` file to have the
-      following changes::
+      following changes:
+
+      .. code-block:: c
 
          void calibrate_delay(void)
          {
@@ -822,7 +864,9 @@ Section.
                     */
 
 #. *Stage and Commit Your Changes:* Use standard Git commands to stage
-   and commit the changes you just made::
+   and commit the changes you just made:
+
+   .. code-block:: console
 
       $ git add calibrate.c
       $ git commit -m "calibrate.c - Added some printk statements"
@@ -837,7 +881,9 @@ Section.
    updated kernel source files. Add
    :term:`SRC_URI` and
    :term:`SRCREV` statements similar
-   to the following to your :ref:`structure-build-conf-local.conf`::
+   to the following to your :ref:`structure-build-conf-local.conf`:
+
+   .. code-block:: console
 
       $ cd bitbake-builds/build/conf
 
@@ -857,14 +903,18 @@ Section.
 
 #. *Build the Image:* With the source modified, your changes staged and
    committed, and the :ref:`structure-build-conf-local.conf` file pointing to the kernel files,
-   you can now use BitBake to build the image::
+   you can now use BitBake to build the image:
+
+   .. code-block:: console
 
       $ cd bitbake-builds/build
       $ bitbake core-image-minimal
 
 #. *Boot the image*: Boot the modified image in the QEMU emulator using
    this command. When prompted to login to the QEMU console, use "root"
-   with no password::
+   with no password:
+
+   .. code-block:: console
 
       $ cd bitbake-builds/build
       $ runqemu qemux86
@@ -873,7 +923,7 @@ Section.
    changes rapidly scroll by. If not, use these commands to see your
    changes:
 
-   .. code-block:: none
+   .. code-block:: console
 
       root@qemux86:~# dmesg | less
 
@@ -883,7 +933,9 @@ Section.
 
 #. *Generate the Patch File:* Once you are sure that your patch works
    correctly, you can generate a ``*.patch`` file in the kernel source
-   repository::
+   repository:
+
+   .. code-block:: console
 
       $ cd ~/linux-yocto-4.12/init
       $ git format-patch -1
@@ -896,14 +948,18 @@ Section.
    ``meta-mylayer``. When the layer was created using the
    ``yocto-create`` script, no additional hierarchy was created to
    support patches. Before moving the patch file, you need to add
-   additional structure to your layer using the following commands::
+   additional structure to your layer using the following commands:
+
+   .. code-block:: console
 
       $ cd ~/meta-mylayer
       $ mkdir -p recipes-kernel recipes-kernel/linux/linux-yocto
 
    Once you have created this
    hierarchy in your layer, you can move the patch file using the
-   following command::
+   following command:
+
+   .. code-block:: console
 
       $ mv ~/linux-yocto-4.12/init/0001-calibrate.c-Added-some-printk-statements.patch ~/meta-mylayer/recipes-kernel/linux/linux-yocto
 
@@ -931,7 +987,9 @@ Section.
       To build ``core-image-minimal`` again and see the effects of your patch,
       you can essentially eliminate the temporary source files saved in
       ``bitbake-builds/build/tmp/work/...`` and residual effects of the build by entering
-      the following sequence of commands::
+      the following sequence of commands:
+
+      .. code-block:: console
 
          $ cd bitbake-builds/build
          $ bitbake -c cleanall linux-yocto
@@ -976,7 +1034,9 @@ environment, you must do the following:
 -  You must be sure of the state of your build's configuration in the
    :term:`Source Directory`.
 
--  Your build host must have the following two packages installed::
+-  Your build host must have the following two packages installed:
+
+   .. code-block:: text
 
       libncurses5-dev
       libtinfo-dev
@@ -984,7 +1044,9 @@ environment, you must do the following:
 The following commands initialize the BitBake environment, run the
 :ref:`ref-tasks-kernel_configme`
 task, and launch ``menuconfig``. These commands assume the Source
-Directory's top-level folder is ``work``::
+Directory's top-level folder is ``work``:
+
+.. code-block:: console
 
    $ cd work
    $ source layers/openembedded-core/oe-init-build-env
@@ -1046,7 +1108,9 @@ the ``.config`` file would be:
 
 Within the ``.config`` file, you can see the kernel settings. For
 example, the following entry shows that symmetric multi-processor
-support is not set::
+support is not set:
+
+.. code-block:: ini
 
    # CONFIG_SMP is not set
 
@@ -1136,7 +1200,9 @@ It is simple to create a configuration fragment. One method is to use
 shell commands. For example, issuing the following from the shell
 creates a configuration fragment file named ``my_changes.cfg`` that enables
 multi-processor support within the kernel and disables the FPGA
-Configuration Framework::
+Configuration Framework:
+
+.. code-block:: console
 
    $ echo "CONFIG_SMP=y" >> my_changes.cfg
    $ echo "# CONFIG_FPGA is not set" >> my_changes.cfg
@@ -1155,7 +1221,9 @@ To create a configuration fragment using this method, follow these
 steps:
 
 #. *Complete a Build Through Kernel Configuration:* Complete a build at
-   least through the kernel configuration task as follows::
+   least through the kernel configuration task as follows:
+
+   .. code-block:: console
 
       $ bitbake linux-yocto -c kernel_configme -f
 
@@ -1164,7 +1232,9 @@ steps:
    your build state might become unknown, it is best to run this task
    prior to starting ``menuconfig``.
 
-#. *Launch menuconfig:* Run the ``menuconfig`` command::
+#. *Launch menuconfig:* Run the ``menuconfig`` command:
+
+   .. code-block:: console
 
       $ bitbake linux-yocto -c menuconfig
 
@@ -1172,7 +1242,9 @@ steps:
    to prepare a configuration fragment. The resulting file
    ``fragment.cfg`` is placed in the
    ``${``\ :term:`WORKDIR`\ ``}``
-   directory::
+   directory:
+
+   .. code-block:: console
 
       $ bitbake linux-yocto -c diffconfig
 
@@ -1217,7 +1289,9 @@ Validating Configuration
 
 You can use the
 :ref:`ref-tasks-kernel_configcheck`
-task to provide configuration validation::
+task to provide configuration validation:
+
+.. code-block:: console
 
    $ bitbake linux-yocto -c kernel_configcheck -f
 
@@ -1344,7 +1418,9 @@ To streamline the configuration, do the following:
    successfully. Use this configuration file as your baseline.
 
 #. *Run Configure and Check Tasks:* Separately run the
-   :ref:`ref-tasks-kernel_configme` and :ref:`ref-tasks-kernel_configcheck` tasks::
+   :ref:`ref-tasks-kernel_configme` and :ref:`ref-tasks-kernel_configcheck` tasks:
+
+   .. code-block:: console
 
       $ bitbake linux-yocto -c kernel_configme -f
       $ bitbake linux-yocto -c kernel_configcheck -f
@@ -1377,7 +1453,9 @@ Expanding Variables
 
 Sometimes it is helpful to determine what a variable expands to during a
 build. You can examine the value of a variable by running the ``bitbake-getvar``
-command::
+command:
+
+.. code-block:: console
 
    $ bitbake-getvar -r virtual/kernel VARIABLE
 
@@ -1393,13 +1471,17 @@ source directory. Follow these steps to clean up the version string:
 
 #. *Discover the Uncommitted Changes:* Go to the kernel's locally cloned
    Git repository (source directory) and use the following Git command
-   to list the files that have been changed, added, or removed::
+   to list the files that have been changed, added, or removed:
+
+   .. code-block:: console
 
       $ git status
 
 #. *Commit the Changes:* You should commit those changes to the kernel
    source tree regardless of whether or not you will save, export, or
-   use the changes::
+   use the changes:
+
+   .. code-block:: console
 
       $ git add
       $ git commit -s -a -m "getting rid of -dirty"
@@ -1451,7 +1533,9 @@ Here are some basic steps you can use to work with your own sources:
    ``defconfig`` file or configuration fragment files in your layer.
    When you use the ``linux-yocto-custom.bb`` recipe, you must specify a
    configuration. If you do not have a ``defconfig`` file, you can run
-   the following::
+   the following:
+
+   .. code-block:: console
 
       $ make defconfig
 
@@ -1587,7 +1671,9 @@ Typically, you will need to set the following variables:
 
 Depending on the build system used by the module sources, you might need
 to make some adjustments. For example, a typical module ``Makefile``
-looks much like the one provided with the ``hello-mod`` template::
+looks much like the one provided with the ``hello-mod`` template:
+
+.. code-block:: make
 
    obj-m := hello.o
 
@@ -1666,26 +1752,36 @@ Here is an example that looks at what has changed in the ``emenlow``
 branch of the ``linux-yocto-3.19`` kernel. The lower commit range is the
 commit associated with the ``standard/base`` branch, while the upper
 commit range is the commit associated with the ``standard/emenlow``
-branch::
+branch:
+
+.. code-block:: console
 
    $ git whatchanged origin/standard/base..origin/standard/emenlow
 
-To see short, one line summaries of changes use the ``git log`` command::
+To see short, one line summaries of changes use the ``git log`` command:
+
+.. code-block:: console
 
    $ git log --oneline origin/standard/base..origin/standard/emenlow
 
-Use this command to see code differences for the changes::
+Use this command to see code differences for the changes:
+
+.. code-block:: console
 
    $ git diff origin/standard/base..origin/standard/emenlow
 
 Use this command to see the commit log messages and the text
-differences::
+differences:
+
+.. code-block:: console
 
    $ git show origin/standard/base..origin/standard/emenlow
 
 Use this command to create individual patches for each change. Here is
 an example that creates patch files for each commit and places them
-in your ``Documents`` directory::
+in your ``Documents`` directory:
+
+.. code-block:: console
 
    $ git format-patch -o $HOME/Documents origin/standard/base..origin/standard/emenlow
 
@@ -1694,13 +1790,17 @@ Showing a Particular Feature or Branch Change
 
 Tags in the Yocto Project kernel tree divide changes for significant
 features or branches. The ``git show`` tag command shows changes based
-on a tag. Here is an example that shows ``systemtap`` changes::
+on a tag. Here is an example that shows ``systemtap`` changes:
+
+.. code-block:: console
 
    $ git show systemtap
 
 You can use the ``git branch --contains`` tag command to
 show the branches that contain a particular feature. This command shows
-the branches that contain the ``systemtap`` feature::
+the branches that contain the ``systemtap`` feature:
+
+.. code-block:: console
 
    $ git branch --contains systemtap
 
@@ -1755,7 +1855,9 @@ build.
          searched during the build as potential feature directories.
 
    Continuing with the example, suppose the "test.scc" feature you are
-   adding has a ``test.scc`` file in the following directory::
+   adding has a ``test.scc`` file in the following directory:
+
+   .. code-block:: text
 
       my_recipe
       |
diff --git a/documentation/kernel-dev/concepts-appx.rst b/documentation/kernel-dev/concepts-appx.rst
index 34b5628b5b98..27cd2dbbd5ea 100644
--- a/documentation/kernel-dev/concepts-appx.rst
+++ b/documentation/kernel-dev/concepts-appx.rst
@@ -343,7 +343,9 @@ To determine whether or not a given option is "hardware" or
 "non-hardware", the kernel Metadata in ``yocto-kernel-cache`` contains
 files that classify individual or groups of options as either hardware
 or non-hardware. To better show this, consider a situation where the
-``yocto-kernel-cache`` contains the following files::
+``yocto-kernel-cache`` contains the following files:
+
+.. code-block:: text
 
    yocto-kernel-cache/features/drm-psb/hardware.cfg
    yocto-kernel-cache/features/kgdb/hardware.cfg
@@ -382,7 +384,9 @@ Here are explanations for the various files:
    (i.e. ``hardware.kcf`` or ``non-hardware.kcf``).
 
 Here is a specific example using the
-``kernel-cache/bsp/mti-malta32/hardware.cfg``::
+``kernel-cache/bsp/mti-malta32/hardware.cfg``:
+
+.. code-block:: text
 
    CONFIG_SERIAL_8250
    CONFIG_SERIAL_8250_CONSOLE
diff --git a/documentation/kernel-dev/maint-appx.rst b/documentation/kernel-dev/maint-appx.rst
index 36ce77e89074..f49e12b4ae08 100644
--- a/documentation/kernel-dev/maint-appx.rst
+++ b/documentation/kernel-dev/maint-appx.rst
@@ -28,7 +28,9 @@ in the Yocto Project Linux kernel in any clone of the Yocto Project
 Linux kernel source repository and ``yocto-kernel-cache`` Git trees. For
 example, the following commands clone the Yocto Project baseline Linux
 kernel that branches off ``linux.org`` version 4.12 and the
-``yocto-kernel-cache``, which contains stores of kernel Metadata::
+``yocto-kernel-cache``, which contains stores of kernel Metadata:
+
+.. code-block:: console
 
    $ git clone https://git.yoctoproject.org/linux-yocto-4.12
    $ git clone https://git.yoctoproject.org/yocto-kernel-cache
@@ -41,14 +43,18 @@ section.
 
 Once you have cloned the kernel Git repository and the cache of Metadata
 on your local machine, you can discover the branches that are available
-in the repository using the following Git command::
+in the repository using the following Git command:
+
+.. code-block:: console
 
    $ git branch -a
 
 Checking out a branch allows you to work with a particular Yocto Linux
 kernel. For example, the following commands check out the
 "standard/beagleboard" branch of the Yocto Linux kernel repository and
-the "yocto-4.12" branch of the ``yocto-kernel-cache`` repository::
+the "yocto-4.12" branch of the ``yocto-kernel-cache`` repository:
+
+.. code-block:: console
 
    $ cd ~/linux-yocto-4.12
    $ git checkout -b my-kernel-4.12 remotes/origin/standard/beagleboard
@@ -108,7 +114,9 @@ patch, or BSP:
 
    For a typical build, the target of the search is a feature
    description in an ``.scc`` file whose name follows this format (e.g.
-   ``beaglebone-standard.scc`` and ``beaglebone-preempt-rt.scc``)::
+   ``beaglebone-standard.scc`` and ``beaglebone-preempt-rt.scc``):
+
+   .. code-block:: text
 
       bsp_root_name-kernel_type.scc
 
@@ -218,7 +226,9 @@ build process generates a build tree that is separate from your kernel's
 local Git source repository tree. This build tree has a name that uses
 the following form, where ``${MACHINE}`` is the metadata name of the
 machine (BSP) and "kernel_type" is one of the Yocto Project supported
-kernel types (e.g. "standard")::
+kernel types (e.g. "standard"):
+
+.. code-block:: text
 
    linux-${MACHINE}-kernel_type-build
 
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 06/16] migration-guides: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (4 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 05/16] kernel-dev: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 07/16] overview-manual: " Trevor Woerner
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 .../migration-guides/migration-1.3.rst        |  4 +++-
 .../migration-guides/migration-1.4.rst        |  8 +++++--
 .../migration-guides/migration-1.7.rst        |  4 +++-
 .../migration-guides/migration-2.0.rst        |  4 +++-
 .../migration-guides/migration-2.1.rst        |  8 +++++--
 .../migration-guides/migration-2.2.rst        | 16 +++++++++----
 .../migration-guides/migration-2.3.rst        |  8 +++++--
 .../migration-guides/migration-2.5.rst        |  8 +++++--
 .../migration-guides/migration-2.6.rst        |  8 +++++--
 .../migration-guides/migration-3.4.rst        |  4 +++-
 .../migration-guides/migration-4.0.rst        |  8 +++++--
 .../migration-guides/migration-4.1.rst        |  8 +++++--
 .../migration-guides/migration-5.2.rst        | 12 +++++++---
 .../migration-guides/migration-5.3.rst        | 24 ++++++++++++++-----
 .../migration-guides/migration-6.0.rst        | 22 ++++++++++++-----
 .../migration-guides/migration-6.1.rst        |  8 +++++--
 .../migration-guides/release-notes-4.2.rst    |  4 +++-
 .../migration-guides/release-notes-5.1.rst    |  4 +++-
 .../migration-guides/release-notes-5.3.rst    | 16 +++++++++----
 19 files changed, 133 insertions(+), 45 deletions(-)

diff --git a/documentation/migration-guides/migration-1.3.rst b/documentation/migration-guides/migration-1.3.rst
index 0c378aabe83e..8f79ff74e6e6 100644
--- a/documentation/migration-guides/migration-1.3.rst
+++ b/documentation/migration-guides/migration-1.3.rst
@@ -184,7 +184,9 @@ include :term:`PE` as part of the filename::
 
 Because the :term:`PE` variable is not set by default, these binary files
 could result with names that include two dash characters. Here is an
-example::
+example:
+
+.. code-block:: text
 
    bzImage--3.10.9+git0+cd502a8814_7144bcc4b8-r0-qemux86-64-20130830085431.bin
 
diff --git a/documentation/migration-guides/migration-1.4.rst b/documentation/migration-guides/migration-1.4.rst
index 5d8d0ffde83b..e4856e2eabc9 100644
--- a/documentation/migration-guides/migration-1.4.rst
+++ b/documentation/migration-guides/migration-1.4.rst
@@ -42,7 +42,9 @@ Differences include the following:
 
 -  *Shared State Code:* The shared state code has been optimized to
    avoid running unnecessary tasks. For example, the following no longer
-   populates the target sysroot since that is not necessary::
+   populates the target sysroot since that is not necessary:
+
+   .. code-block:: console
 
       $ bitbake -c rootfs some-image
 
@@ -137,7 +139,9 @@ Target Package Management with RPM
 If runtime package management is enabled and the RPM backend is
 selected, Smart is now installed for package download, dependency
 resolution, and upgrades instead of Zypper. For more information on how
-to use Smart, run the following command on the target::
+to use Smart, run the following command on the target:
+
+.. code-block:: text
 
    smart --help
 
diff --git a/documentation/migration-guides/migration-1.7.rst b/documentation/migration-guides/migration-1.7.rst
index 8527213b80e4..1a4ba2eccb72 100644
--- a/documentation/migration-guides/migration-1.7.rst
+++ b/documentation/migration-guides/migration-1.7.rst
@@ -80,7 +80,9 @@ disable the scripts due to the scripts previously requiring error-prone
 path substitution. Software that links against these libraries using
 these scripts should use the much more robust ``pkg-config`` instead.
 The list of recipes changed in this version (and their configuration
-scripts) is as follows::
+scripts) is as follows:
+
+.. code-block:: text
 
    directfb (directfb-config)
    freetype (freetype-config)
diff --git a/documentation/migration-guides/migration-2.0.rst b/documentation/migration-guides/migration-2.0.rst
index b98f2277ed94..dc4008c691e8 100644
--- a/documentation/migration-guides/migration-2.0.rst
+++ b/documentation/migration-guides/migration-2.0.rst
@@ -92,7 +92,9 @@ unlikely to require any changes to Metadata. However, these minor
 changes in behavior exist:
 
 -  All potential overrides are now visible in the variable history as
-   seen when you run the following::
+   seen when you run the following:
+
+   .. code-block:: console
 
       $ bitbake -e
 
diff --git a/documentation/migration-guides/migration-2.1.rst b/documentation/migration-guides/migration-2.1.rst
index 987464f4d77f..f1c4e7880f26 100644
--- a/documentation/migration-guides/migration-2.1.rst
+++ b/documentation/migration-guides/migration-2.1.rst
@@ -44,7 +44,9 @@ defaulted to False if not specified. Now, however, no default exists so
 one must be specified. You must change any ``getVar()`` calls that do
 not specify the final expand parameter to calls that do specify the
 parameter. You can run the following ``sed`` command at the base of a
-layer to make this change::
+layer to make this change:
+
+.. code-block:: console
 
    $ sed -e 's:\(\.getVar([^,()]*\)):\1, False):g' -i `grep -ril getVar *`
    $ sed -e 's:\(\.getVarFlag([^,()]*,[^,()]*\)):\1, False):g' -i `grep -ril getVarFlag *`
@@ -367,7 +369,9 @@ These additional changes exist:
 -  Previously, the following list of packages were removed if
    package-management was not in
    :term:`IMAGE_FEATURES`, regardless of any
-   dependencies::
+   dependencies:
+
+   .. code-block:: text
 
       update-rc.d
       base-passwd
diff --git a/documentation/migration-guides/migration-2.2.rst b/documentation/migration-guides/migration-2.2.rst
index 9d50dc62022b..a85ce04df8af 100644
--- a/documentation/migration-guides/migration-2.2.rst
+++ b/documentation/migration-guides/migration-2.2.rst
@@ -145,7 +145,9 @@ The new ``runqemu`` is a Python script. Machine knowledge is no longer
 hardcoded into ``runqemu``. You can choose to use the ``qemuboot``
 configuration file to define the BSP's own arguments and to make it
 bootable with ``runqemu``. If you use a configuration file, use the
-following form::
+following form:
+
+.. code-block:: text
 
    image-name-machine.qemuboot.conf
 
@@ -160,7 +162,9 @@ rootfs). QEMU boot arguments can be set in BSP's configuration file and
 the ``qemuboot`` class will save them to ``qemuboot.conf``.
 
 If you want to use ``runqemu`` without a configuration file, use the
-following command form::
+following command form:
+
+.. code-block:: console
 
    $ runqemu machine rootfs kernel [options]
 
@@ -178,12 +182,16 @@ Supported machines are as follows:
 
 Consider the
 following example, which uses the ``qemux86-64`` machine, provides a
-root filesystem, provides an image, and uses the ``nographic`` option::
+root filesystem, provides an image, and uses the ``nographic`` option:
+
+.. code-block:: console
 
    $ runqemu qemux86-64 tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.ext4 tmp/deploy/images/qemux86-64/bzImage nographic
 
 Here is a list of variables that can be set in configuration files
-such as ``bsp.conf`` to enable the BSP to be booted by ``runqemu``::
+such as ``bsp.conf`` to enable the BSP to be booted by ``runqemu``:
+
+.. code-block:: text
 
    QB_SYSTEM_NAME: QEMU name (e.g. "qemu-system-i386")
    QB_OPT_APPEND: Options to append to QEMU (e.g. "-show-cursor")
diff --git a/documentation/migration-guides/migration-2.3.rst b/documentation/migration-guides/migration-2.3.rst
index 60340b9592f1..b67cbdd4e2a5 100644
--- a/documentation/migration-guides/migration-2.3.rst
+++ b/documentation/migration-guides/migration-2.3.rst
@@ -116,7 +116,9 @@ Changes to Scripts
 The following changes to scripts took place:
 
 -  ``oe-find-native-sysroot``: The usage for the
-   ``oe-find-native-sysroot`` script has changed to the following::
+   ``oe-find-native-sysroot`` script has changed to the following:
+
+   .. code-block:: console
 
       $ . oe-find-native-sysroot recipe
 
@@ -125,7 +127,9 @@ The following changes to scripts took place:
    was not necessary to provide the script with the command.
 
 -  ``oe-run-native``: The usage for the ``oe-run-native`` script has
-   changed to the following::
+   changed to the following:
+
+   .. code-block:: console
 
       $ oe-run-native native_recipe tool
 
diff --git a/documentation/migration-guides/migration-2.5.rst b/documentation/migration-guides/migration-2.5.rst
index 70946b5e11b4..8f9032d71f05 100644
--- a/documentation/migration-guides/migration-2.5.rst
+++ b/documentation/migration-guides/migration-2.5.rst
@@ -136,11 +136,15 @@ BitBake Changes
    tree" tasks have been removed (e.g. ``fetchall``, ``checkuriall``,
    and the ``*all`` tasks provided by the ``distrodata`` and
    :ref:`ref-classes-archiver` classes). There is a BitBake option to complete this for
-   any arbitrary task. For example::
+   any arbitrary task. For example:
+
+   .. code-block:: console
 
       $ bitbake <target> -c fetchall
 
-   should now be replaced with::
+   should now be replaced with:
+
+   .. code-block:: console
 
       $ bitbake <target> --runall=fetch
 
diff --git a/documentation/migration-guides/migration-2.6.rst b/documentation/migration-guides/migration-2.6.rst
index ecb559dd4c32..c30808a2f572 100644
--- a/documentation/migration-guides/migration-2.6.rst
+++ b/documentation/migration-guides/migration-2.6.rst
@@ -166,7 +166,9 @@ The following changes have been made:
 
       IMAGE_VERSION_SUFFIX = "-${DATETIME}"
 
--  Several variables have changed names for consistency::
+-  Several variables have changed names for consistency:
+
+   .. code-block:: text
 
       Old Variable Name             New Variable Name
       ========================================================
@@ -288,7 +290,9 @@ avoids the ``systemd`` recipe from becoming machine-specific for cases
 where machine-specific configurations need to be applied (e.g. for
 ``qemu*`` machines).
 
-Currently, the new recipe packages the following files::
+Currently, the new recipe packages the following files:
+
+.. code-block:: text
 
    ${sysconfdir}/machine-id
    ${sysconfdir}/systemd/coredump.conf
diff --git a/documentation/migration-guides/migration-3.4.rst b/documentation/migration-guides/migration-3.4.rst
index e9cb3a109ea9..279c9b56425e 100644
--- a/documentation/migration-guides/migration-3.4.rst
+++ b/documentation/migration-guides/migration-3.4.rst
@@ -67,7 +67,9 @@ may be the same as a :term:`DISTRO` override causing some confusion. We do
 plan to try and improve consistency as these issues are identified.
 
 To help with migration of layers, a script has been provided in OE-Core.
-Once configured with the overrides used by a layer, this can be run as::
+Once configured with the overrides used by a layer, this can be run as:
+
+.. code-block:: text
 
    <oe-core>/scripts/contrib/convert-overrides.py <layerdir>
 
diff --git a/documentation/migration-guides/migration-4.0.rst b/documentation/migration-guides/migration-4.0.rst
index 31ce15a9cafc..0a3766a8a76d 100644
--- a/documentation/migration-guides/migration-4.0.rst
+++ b/documentation/migration-guides/migration-4.0.rst
@@ -65,7 +65,9 @@ A :oe_git:`convert-variable-renames.py
 script is provided to convert your recipes and configuration,
 and also warns you about the use of problematic words. The script performs
 changes and you need to review them before committing. An example warning
-looks like::
+looks like:
+
+.. code-block:: text
 
     poky/scripts/lib/devtool/upgrade.py needs further work at line 275 since it contains abort
 
@@ -254,7 +256,9 @@ Miscellaneous changes
   these with ``cortexa72`` and ``cortexa72-crypto`` respectively.
 
 - The Python development shell (previously known as ``devpyshell``) feature has been
-  renamed to ``pydevshell``. To start it you should now run::
+  renamed to ``pydevshell``. To start it you should now run:
+
+  .. code-block:: console
 
      $ bitbake <target> -c pydevshell
 
diff --git a/documentation/migration-guides/migration-4.1.rst b/documentation/migration-guides/migration-4.1.rst
index 2daaffb1db31..f607babb8efe 100644
--- a/documentation/migration-guides/migration-4.1.rst
+++ b/documentation/migration-guides/migration-4.1.rst
@@ -166,11 +166,15 @@ Miscellaneous changes
   :ref:`ref-classes-archiver` class then you may need to adjust it to
   the new structure.
 - If you are not using `systemd` then udev is now configured to use labels
-  (``LABEL`` or ``PARTLABEL``) to set the mount point for the device. For example::
+  (``LABEL`` or ``PARTLABEL``) to set the mount point for the device. For example:
+
+  .. code-block:: text
 
     /run/media/rootfs-sda2
 
-  instead of::
+  instead of:
+
+  .. code-block:: text
 
     /run/media/sda2
 
diff --git a/documentation/migration-guides/migration-5.2.rst b/documentation/migration-guides/migration-5.2.rst
index 0c888136494e..522a234af771 100644
--- a/documentation/migration-guides/migration-5.2.rst
+++ b/documentation/migration-guides/migration-5.2.rst
@@ -85,7 +85,9 @@ systemd changes
    the other service files were automatically added to the :term:`FILES` variable of
    the same package. Example:
 
-   a.service contains::
+   a.service contains:
+
+   .. code-block:: ini
 
       [Install]
       Also=b.service
@@ -130,7 +132,9 @@ key toolchain providers listed in ``BB_VIRTUAL_RECIPE_PROVIDERS``. As part of
 that support, the ``cross`` providers were simplified to remove the triplet
 prefix (:term:`TARGET_PREFIX`, :term:`SDK_PREFIX` and :term:`HOST_PREFIX`) and
 generalise the naming. Here are examples of how references to these variables
-can be changed to use the new ``cross`` syntax::
+can be changed to use the new ``cross`` syntax:
+
+.. code-block:: text
 
    virtual/${HOST_PREFIX}binutils -> virtual/cross-binutils
    virtual/${TARGET_PREFIX}binutils -> virtual/cross-binutils
@@ -145,7 +149,9 @@ can be changed to use the new ``cross`` syntax::
 
    virtual/${TARGET_PREFIX}g++ -> virtual/cross-c++
 
-A :term:`PREFERRED_PROVIDER` assignment can be transformed as follows::
+A :term:`PREFERRED_PROVIDER` assignment can be transformed as follows:
+
+.. code-block:: text
 
    PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils -> PREFERRED_PROVIDER_virtual/cross-binutils
    PREFERRED_PROVIDER_virtual/${SDK_PREFIX}binutils -> PREFERRED_PROVIDER_virtual/cross-binutils:class-nativesdk
diff --git a/documentation/migration-guides/migration-5.3.rst b/documentation/migration-guides/migration-5.3.rst
index e5521d94b59f..ec5ae049908c 100644
--- a/documentation/migration-guides/migration-5.3.rst
+++ b/documentation/migration-guides/migration-5.3.rst
@@ -81,16 +81,22 @@ How to make those adjustments without tedious manual editing
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 The following sed command can be used to remove S = "${WORKDIR}/git
-across a whole layer::
+across a whole layer:
+
+.. code-block:: console
 
    $ sed -i "/^S = \"\${WORKDIR}\/git\"/d" `find . -name '*.bb' -o -name '*.inc' -o -name '*.bbclass'`
 
 Then, the following command can tweak the remaining :term:`S` assignments to
-refer to :term:`UNPACKDIR` instead of :term:`WORKDIR`::
+refer to :term:`UNPACKDIR` instead of :term:`WORKDIR`:
+
+.. code-block:: console
 
    $ sed -i "s/^S = \"\${WORKDIR}\//S = \"\${UNPACKDIR}\//g" `find . -name '*.bb' -o -name '*.inc' -o -name '*.bbclass'`
 
-The first change can introduce a lot of consecutive empty lines, so those can be removed with::
+The first change can introduce a lot of consecutive empty lines, so those can be removed with:
+
+.. code-block:: console
 
    $ sed -i -z -E 's/([ \t\f\v\r]*\n){3,}/\n\n/g' `find . -name '*.bb' -o -name '*.inc'`
 
@@ -108,7 +114,9 @@ Space around equal assignment
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 A new warning is now printed when there are no whitespaces around an ``=``
-assignment in recipes::
+assignment in recipes:
+
+.. code-block:: text
 
    <filename>:<line number> has a lack of whitespace around the assignment: '<assignment>'
 
@@ -310,11 +318,15 @@ The following classes have been removed in this release:
          KERNEL_CLASSES += "kernel-fit-extra-artifacts"
 
    #. Use the specific FIT image recipe rather than the base kernel recipe.
-      For example, instead of::
+      For example, instead of:
+
+      .. code-block:: console
 
          $ bitbake linux-yocto
 
-      the FIT image is now build by::
+      the FIT image is now build by:
+
+      .. code-block:: console
 
          $ bitbake linux-yocto-fitimage
 
diff --git a/documentation/migration-guides/migration-6.0.rst b/documentation/migration-guides/migration-6.0.rst
index 5ad284600002..2eb6de90c684 100644
--- a/documentation/migration-guides/migration-6.0.rst
+++ b/documentation/migration-guides/migration-6.0.rst
@@ -261,12 +261,16 @@ See commit :oecore_rev:`68d2d38483efada7bc2409e10508b03a7431caff` for more infor
 Image recipes that inherit the :ref:`ref-classes-vex` class have an extra JSON
 document generated which was previously ending with the ``.json`` suffix. For
 example, a build for the ``core-image-minimal`` image recipe with this class
-inherited would have resulted in a file named::
+inherited would have resulted in a file named:
+
+.. code-block:: text
 
    core-image-minimal-qemuarm64.rootfs.json
 
 The suffix of this file is now ``.vex.json``. Taking the above example, the same
-file is now named::
+file is now named:
+
+.. code-block:: text
 
    core-image-minimal-qemuarm64.rootfs.vex.json
 
@@ -276,7 +280,7 @@ Support for SPDX 2.2 removed
 Support for generating SPDX 2.2 document through the ``create-spdx-2.2`` class
 was removed:
 
-.. code-block::
+.. code-block:: text
 
    Removes SPDX 2.2 support in favor of SPDX 3 support being the only
    option. The SPDX 3 data is far superior to SPDX 2.2 and thus more useful
@@ -388,7 +392,9 @@ size of the partitions generated by the :doc:`WIC </dev-manual/wic>` tool. The
 replaces this variable.
 
 While this variable can still be used in recipes, a warning is now printed on
-the console when used::
+the console when used:
+
+.. code-block:: text
 
    DEPRECATED: WIC_SECTOR_SIZE is deprecated, use the --sector-size command-line argument instead.
 
@@ -414,13 +420,17 @@ files) should be moved to the ``files/wic/`` directory of the layer containing
 them.
 
 If not done, the build will fail with errors indicating how to move these files,
-for example::
+for example:
+
+.. code-block:: text
 
    wic/wks files at ../meta-custom/wic need to be moved to files/wic within the layer to be found/used
    wic/wks files at ../meta-custom/scripts/lib/wic/canned-wks need to be moved to files/wic within the layer to be found/used
 
 For example, here is the content of the :term:`OpenEmbedded-Core (OE-Core)`
-"meta" layer as of writing::
+"meta" layer as of writing:
+
+.. code-block:: text
 
    meta/files/wic
    ├── common.wks.inc
diff --git a/documentation/migration-guides/migration-6.1.rst b/documentation/migration-guides/migration-6.1.rst
index 43a02e90cb40..410567c8c8fc 100644
--- a/documentation/migration-guides/migration-6.1.rst
+++ b/documentation/migration-guides/migration-6.1.rst
@@ -65,11 +65,15 @@ The ``oe.utils.all_distro_features()`` and ``oe.utils.any_distro_features()``
 functions have been removed from :term:`OpenEmbedded-Core (OE-Core)`.
 
 Those can be replaced by ``bb.utils.contains()`` and ``bb.utils.contains_any()``
-calls::
+calls:
+
+.. code-block:: text
 
    oe.utils.all_distro_features("x y", ...) -> bb.utils.contains("DISTRO_FEATURES", "x y", ...)
 
-And::
+And:
+
+.. code-block:: text
 
    oe.utils.any_distro_features("x y", ...) -> bb.utils.contains_any("DISTRO_FEATURES", "x y", ...)
 
diff --git a/documentation/migration-guides/release-notes-4.2.rst b/documentation/migration-guides/release-notes-4.2.rst
index 3586622edca9..68bfa41656cd 100644
--- a/documentation/migration-guides/release-notes-4.2.rst
+++ b/documentation/migration-guides/release-notes-4.2.rst
@@ -171,7 +171,9 @@ New Features / Enhancements in 4.2
       which is a thin wrapper over :oe_git:`resulttool
       </openembedded-core/tree/scripts/resulttool>`. Here is an example
       command, which allowed to spot and fix a regression in the
-      ``quilt`` ptest::
+      ``quilt`` ptest:
+
+      .. code-block:: console
 
          $ yocto_testresults_query.py regression-report 4.2_M1 4.2_M2
 
diff --git a/documentation/migration-guides/release-notes-5.1.rst b/documentation/migration-guides/release-notes-5.1.rst
index dc770ebc39b6..01bef9234e76 100644
--- a/documentation/migration-guides/release-notes-5.1.rst
+++ b/documentation/migration-guides/release-notes-5.1.rst
@@ -166,7 +166,9 @@ New Features / Enhancements in 5.1
 
    -  ``fetcher2``: remote name for ``git://`` is now ``origin`` by default.
 
-   -  Codeparser now supports shell substitution in quotes, for example::
+   -  Codeparser now supports shell substitution in quotes, for example:
+
+      .. code-block:: shell
 
          var1="$(cmd1 ...)"
 
diff --git a/documentation/migration-guides/release-notes-5.3.rst b/documentation/migration-guides/release-notes-5.3.rst
index 311a9a94718a..8a5554d88ae9 100644
--- a/documentation/migration-guides/release-notes-5.3.rst
+++ b/documentation/migration-guides/release-notes-5.3.rst
@@ -85,7 +85,9 @@ New Features / Enhancements in |yocto-ver|
       Listing these built-in fragments can be done with
       :oe_git:`bitbake-config-build
       list-fragments</bitbake/tree/bin/bitbake-config-build>`, which could
-      list::
+      list:
+
+      .. code-block:: text
 
          Available built-in fragments:
          machine/...     Sets MACHINE = ...
@@ -257,7 +259,9 @@ New Features / Enhancements in |yocto-ver|
       https://web.archive.org/web/20240420122324/https://www.linuxkernelcves.com/).
 
    -  ``kernel-yocto``: allow annotated options to be modified. For example if
-      the following kernel configuration is set::
+      the following kernel configuration is set:
+
+      .. code-block:: ini
 
          CONFIG_INET_TUNNEL=y # OVERRIDE:$MODULE_OR_Y
 
@@ -464,7 +468,9 @@ New Features / Enhancements in |yocto-ver|
    -  ``runqemu``:
 
       -  The script can now run compressed images with snapshot mode. For
-         example, with :term:`IMAGE_FSTYPES` containing ``ext4.zst``, you can run::
+         example, with :term:`IMAGE_FSTYPES` containing ``ext4.zst``, you can run:
+
+         .. code-block:: console
 
             $ runqemu snapshot ext4.zst <image-recipe>
 
@@ -704,7 +710,9 @@ New Features / Enhancements in |yocto-ver|
    -  When using the ``ipk`` and ``rpm`` package managers, give out more possible
       reasons about unmatched packages.
 
-      For example::
+      For example:
+
+      .. code-block:: text
 
          E: Package 'catch2' has no installation candidate
          catch2 is a recipe. Its generated packages are: ['catch2-src', 'catch2-dbg', 'catch2-staticdev', 'catch2-dev', 'catch2-doc']
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 07/16] overview-manual: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (5 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 06/16] migration-guides: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 08/16] profile-manual: " Trevor Woerner
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/overview-manual/concepts.rst    | 48 ++++++++++++++-----
 .../development-environment.rst               |  8 +++-
 2 files changed, 42 insertions(+), 14 deletions(-)

diff --git a/documentation/overview-manual/concepts.rst b/documentation/overview-manual/concepts.rst
index 1e9c6d3a6f0b..007d4ec8c6ce 100644
--- a/documentation/overview-manual/concepts.rst
+++ b/documentation/overview-manual/concepts.rst
@@ -63,7 +63,9 @@ This section briefly introduces BitBake. If you want more information on
 BitBake, see the :doc:`BitBake User Manual <bitbake:index>`.
 
 To see a list of the options BitBake supports, use either of the
-following commands::
+following commands:
+
+.. code-block:: console
 
    $ bitbake -h
    $ bitbake --help
@@ -73,7 +75,9 @@ The most common usage for BitBake is ``bitbake recipename``, where
 to as the "target"). The target often equates to the first part of a
 recipe's filename (e.g. "foo" for a recipe file named ``foo_1.3.0.bb``).
 So, to process the ``matchbox-desktop_1.2.3.bb`` recipe file, you might
-type the following::
+type the following:
+
+.. code-block:: console
 
    $ bitbake matchbox-desktop
 
@@ -913,7 +917,9 @@ list of files for ``${PN}-dev``, also defined in :oe_git:`bitbake.conf
 
 The paths in this list must be *absolute* paths from the point of view of the
 root filesystem on the target, and must *not* make a reference to the variable
-:term:`D` or any :term:`WORKDIR` related variable. A correct example would be::
+:term:`D` or any :term:`WORKDIR` related variable. A correct example would be:
+
+.. code-block:: text
 
   ${sysconfdir}/foo.conf
 
@@ -930,7 +936,9 @@ package.
 .. note::
 
   To find out which package installs a file, the ``oe-pkgdata-util``
-  command-line utility can be used::
+  command-line utility can be used:
+
+  .. code-block:: console
 
     $ oe-pkgdata-util find-path '/etc/fstab'
     base-files: /etc/fstab
@@ -1057,13 +1065,17 @@ the image. The formats used for the root filesystem depend on the
 support compression.
 
 As an example, a dynamically created task when creating a particular
-image type would take the following form::
+image type would take the following form:
+
+.. code-block:: text
 
    do_image_type
 
 So, if the type
 as specified by the :term:`IMAGE_FSTYPES` were ``ext4``, the dynamically
-generated task would be as follows::
+generated task would be as follows:
+
+.. code-block:: text
 
    do_image_ext4
 
@@ -1456,7 +1468,9 @@ compiler is what BitBake uses to compile source files when creating the target
 image. You can think of it simply as an automatically generated
 cross-compiler that is used internally within BitBake only.
 
-The chain of events that occurs when the standard toolchain is bootstrapped::
+The chain of events that occurs when the standard toolchain is bootstrapped:
+
+.. code-block:: text
 
    gcc -> virtual/cross-binutils -> linux-libc-headers -> virtual/cross-cc -> libgcc-initial -> virtual/libc -> libgcc -> virtual/compilerlibs
 
@@ -1505,7 +1519,9 @@ Host.
    can take advantage of pre-built images that ship with the Yocto
    Project and already contain cross-development toolchain installers.
 
-Here is the bootstrap process for the relocatable toolchain::
+Here is the bootstrap process for the relocatable toolchain:
+
+.. code-block:: text
 
    gcc -> virtual/cross-binutils -> linux-libc-headers -> virtual/cross-cc -> libgcc-initial -> virtual/libc -> gcc-cross-canadian/clang-cross-canadian
 
@@ -2252,7 +2268,9 @@ which is integrating ``sayhello`` in our root file system:
 #.  Add ``sayhello`` to :term:`IMAGE_INSTALL` to integrate it into
     the root file system
 
-The contents of ``libhello/Makefile`` are::
+The contents of ``libhello/Makefile`` are:
+
+.. code-block:: make
 
    LIB=libhello.so
 
@@ -2280,7 +2298,9 @@ The contents of ``libhello/Makefile`` are::
    and ``CFLAGS`` as BitBake will set them as environment variables according
    to your build configuration.
 
-The contents of ``libhello/hellolib.h`` are::
+The contents of ``libhello/hellolib.h`` are:
+
+.. code-block:: c
 
    #ifndef HELLOLIB_H
    #define HELLOLIB_H
@@ -2289,7 +2309,9 @@ The contents of ``libhello/hellolib.h`` are::
 
    #endif
 
-The contents of ``libhello/hellolib.c`` are::
+The contents of ``libhello/hellolib.c`` are:
+
+.. code-block:: c
 
    #include <stdio.h>
 
@@ -2312,7 +2334,9 @@ The contents of ``sayhello/Makefile`` are:
    clean:
       rm -rf $(EXEC) *.o
 
-The contents of ``sayhello/sayhello.c`` are::
+The contents of ``sayhello/sayhello.c`` are:
+
+.. code-block:: c
 
    #include <hellolib.h>
 
diff --git a/documentation/overview-manual/development-environment.rst b/documentation/overview-manual/development-environment.rst
index 920908577cc4..bdfeaf3b528c 100644
--- a/documentation/overview-manual/development-environment.rst
+++ b/documentation/overview-manual/development-environment.rst
@@ -400,7 +400,9 @@ local working area (also called a branch) that tracks a specific
 development branch from the upstream source Git repository. In other
 words, you can define your local Git environment to work on any
 development branch in the repository. To help illustrate, consider the
-following example Git commands::
+following example Git commands:
+
+.. code-block:: console
 
    $ cd ~
    $ git clone https://git.yoctoproject.org/yocto-docs -b &DISTRO_NAME_NO_CAP;
@@ -439,7 +441,9 @@ create and check out a local working Git branch based on a tag name. When
 you do this, you get a snapshot of the Git repository that reflects the
 state of the files when the change was made associated with that tag.
 The most common use is to check out a working branch that matches a
-specific Yocto Project release. Here is an example::
+specific Yocto Project release. Here is an example:
+
+.. code-block:: console
 
    $ cd ~
    $ git clone https://git.yoctoproject.org/yocto-docs
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 08/16] profile-manual: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (6 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 07/16] overview-manual: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 09/16] ref-manual: " Trevor Woerner
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/profile-manual/intro.rst |   8 +-
 documentation/profile-manual/usage.rst | 384 ++++++++++++++++++-------
 2 files changed, 294 insertions(+), 98 deletions(-)

diff --git a/documentation/profile-manual/intro.rst b/documentation/profile-manual/intro.rst
index e0c7fd5e5caa..fdc8e23f7d75 100644
--- a/documentation/profile-manual/intro.rst
+++ b/documentation/profile-manual/intro.rst
@@ -36,7 +36,9 @@ after adding ``tools-profile`` to the :term:`EXTRA_IMAGE_FEATURES` variable.
 
 So, in order to be able
 to access all of the tools described here, you can build and boot
-an ``sdk`` image, perhaps one of::
+an ``sdk`` image, perhaps one of:
+
+.. code-block:: console
 
    $ bitbake core-image-sato-sdk
    $ bitbake core-image-weston-sdk
@@ -48,7 +50,9 @@ your :ref:`structure-build-conf-local.conf` file::
    EXTRA_IMAGE_FEATURES:append = " tools-profile"
 
 If you use the ``tools-profile`` method, you don't need to build an sdk image ---
-the tracing and profiling tools will be included in non-sdk images as well e.g.::
+the tracing and profiling tools will be included in non-sdk images as well e.g.:
+
+.. code-block:: console
 
    $ bitbake core-image-sato
 
diff --git a/documentation/profile-manual/usage.rst b/documentation/profile-manual/usage.rst
index 7fdbe41da5e7..c9397816f973 100644
--- a/documentation/profile-manual/usage.rst
+++ b/documentation/profile-manual/usage.rst
@@ -62,7 +62,9 @@ Basic perf Usage
 
 The perf tool is pretty much self-documenting. To remind yourself of the
 available commands, just type ``perf``, which will show you basic usage
-along with the available perf subcommands::
+along with the available perf subcommands:
+
+.. code-block:: console
 
    root@crownbay:~# perf
 
@@ -102,7 +104,9 @@ which is a minimally interesting case because it has both file and
 network I/O aspects, and at least in the case of standard Yocto images,
 it's implemented as part of BusyBox, so the methods we use to analyze it
 can be used in a similar way to the whole host of supported BusyBox
-applets in Yocto::
+applets in Yocto:
+
+.. code-block:: console
 
    root@crownbay:~# rm linux-2.6.19.2.tar.bz2; \
                     wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2
@@ -110,7 +114,9 @@ applets in Yocto::
 The quickest and easiest way to get some basic overall data about what's
 going on for a particular workload is to profile it using ``perf stat``.
 This command basically profiles using a few default counters and displays
-the summed counts at the end of the run::
+the summed counts at the end of the run:
+
+.. code-block:: console
 
    root@crownbay:~# perf stat wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2
    Connecting to downloads.yoctoproject.org (140.211.169.59:80)
@@ -139,7 +145,9 @@ Also, note that ``perf stat`` isn't restricted to a fixed set of counters
 --- basically any event listed in the output of ``perf list`` can be tallied
 by ``perf stat``. For example, suppose we wanted to see a summary of all
 the events related to kernel memory allocation/freeing along with cache
-hits and misses::
+hits and misses:
+
+.. code-block:: console
 
    root@crownbay:~# perf stat -e kmem:* -e cache-references -e cache-misses wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2
    Connecting to downloads.yoctoproject.org (140.211.169.59:80)
@@ -179,7 +187,9 @@ record``, handing it the workload we want to profile (everything after
 ``perf record`` and any perf options we hand it --- here none, will be
 executed in a new shell). perf collects samples until the process exits
 and records them in a file named ``perf.data`` in the current working
-directory::
+directory:
+
+.. code-block:: console
 
    root@crownbay:~# perf record wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2
 
@@ -191,7 +201,9 @@ directory::
 To see the results in a
 "text-based UI" (tui), just run ``perf report``, which will read the
 perf.data file in the current working directory and display the results
-in an interactive UI::
+in an interactive UI:
+
+.. code-block:: console
 
    root@crownbay:~# perf report
 
@@ -218,7 +230,9 @@ Before we do that, however, let's try running a different profile, one
 which shows something a little more interesting. The only difference
 between the new profile and the previous one is that we'll add the ``-g``
 option, which will record not just the address of a sampled function,
-but the entire call chain to the sampled function as well::
+but the entire call chain to the sampled function as well:
+
+.. code-block:: console
 
    root@crownbay:~# perf record -g wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2
    Connecting to downloads.yoctoproject.org (140.211.169.59:80)
@@ -320,12 +334,16 @@ in a :term:`configuration file`::
 Once we've done that, we can install the debugging information for BusyBox. The
 debug packages once built can be found in ``build/tmp/deploy/rpm/*``
 on the host system. Find the ``busybox-dbg-...rpm`` file and copy it
-to the target. For example::
+to the target. For example:
+
+.. code-block:: console
 
    $ scp /home/user/yocto/crownbay-tracing-dbg/build/tmp/deploy/rpm/core2_32/busybox-dbg-1.20.2-r2.core2_32.rpm root@192.168.1.31:
    busybox-dbg-1.20.2-r2.core2_32.rpm                     100% 1826KB   1.8MB/s   00:01
 
-Now install the debug RPM on the target::
+Now install the debug RPM on the target:
+
+.. code-block:: console
 
    root@crownbay:~# rpm -i busybox-dbg-1.20.2-r2.core2_32.rpm
 
@@ -392,7 +410,9 @@ traditional tools can now actually make use of the expanded possibilities now
 available to them, and in some cases have, as mentioned previously).
 
 We can get a list of the available events that can be used to profile a
-workload via ``perf list``::
+workload via ``perf list``:
+
+.. code-block:: console
 
    root@crownbay:~# perf list
 
@@ -535,7 +555,9 @@ workload via ``perf list``::
 Only a subset of these would be of interest to us when looking at this
 workload, so let's choose the most likely subsystems (identified by the
 string before the colon in the ``Tracepoint`` events) and do a ``perf stat``
-run using only those subsystem wildcards::
+run using only those subsystem wildcards:
+
+.. code-block:: console
 
    root@crownbay:~# perf stat -e skb:* -e net:* -e napi:* -e sched:* -e workqueue:* -e irq:* -e syscalls:* wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2
    Performance counter stats for 'wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2':
@@ -597,7 +619,9 @@ run using only those subsystem wildcards::
 
 
 Let's pick one of these tracepoints
-and tell perf to do a profile using it as the sampling event::
+and tell perf to do a profile using it as the sampling event:
+
+.. code-block:: console
 
    root@crownbay:~# perf record -g -e sched:sched_wakeup wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2
 
@@ -655,14 +679,18 @@ individual steps that go into the higher-level behavior exposed by the
 coarse-grained profiling data.
 
 As a concrete example, we can trace all the events we think might be
-applicable to our workload::
+applicable to our workload:
+
+.. code-block:: console
 
    root@crownbay:~# perf record -g -e skb:* -e net:* -e napi:* -e sched:sched_switch -e sched:sched_wakeup -e irq:*
     -e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write
     wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2
 
 We can look at the raw trace output using ``perf script`` with no
-arguments::
+arguments:
+
+.. code-block:: console
 
    root@crownbay:~# perf script
 
@@ -746,7 +774,9 @@ two programming language bindings, one for Python and one for Perl.
 
 Now that we have the trace data in ``perf.data``, we can use ``perf script
 -g`` to generate a skeleton script with handlers for the read / write
-entry / exit events we recorded::
+entry / exit events we recorded:
+
+.. code-block:: console
 
    root@crownbay:~# perf script -g python
    generated Python script: perf-script.py
@@ -766,7 +796,9 @@ with its parameters. For example:
                   print "skbaddr=%u, len=%u, name=%s\n" % (skbaddr, len, name),
 
 We can run that script directly to print all of the events contained in the
-``perf.data`` file::
+``perf.data`` file:
+
+.. code-block:: console
 
    root@crownbay:~# perf script -s perf-script.py
 
@@ -844,7 +876,9 @@ result of all the per-event tallies. For that, we use the special
             for event_name, count in counts.iteritems():
                     print "%-40s %10s\n" % (event_name, count)
 
-The end result is a summary of all the events recorded in the trace::
+The end result is a summary of all the events recorded in the trace:
+
+.. code-block:: text
 
    skb__skb_copy_datagram_iovec                  13148
    irq__softirq_entry                             4796
@@ -888,13 +922,17 @@ To do system-wide profiling or tracing, you typically use the ``-a`` flag to
 ``perf record``.
 
 To demonstrate this, open up one window and start the profile using the
-``-a`` flag (press ``Ctrl-C`` to stop tracing)::
+``-a`` flag (press ``Ctrl-C`` to stop tracing):
+
+.. code-block:: console
 
    root@crownbay:~# perf record -g -a
    ^C[ perf record: Woken up 6 times to write data ]
    [ perf record: Captured and wrote 1.400 MB perf.data (~61172 samples) ]
 
-In another window, run the ``wget`` test::
+In another window, run the ``wget`` test:
+
+.. code-block:: console
 
    root@crownbay:~# wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2
    Connecting to downloads.yoctoproject.org (140.211.169.59:80)
@@ -915,7 +953,9 @@ unresolvable symbols in the expanded ``Xorg`` call chain).
 Note also that we have both kernel and user space entries in the above
 snapshot. We can also tell perf to focus on user space but providing a
 modifier, in this case ``u``, to the ``cycles`` hardware counter when we
-record a profile::
+record a profile:
+
+.. code-block:: console
 
    root@crownbay:~# perf record -g -a -e cycles:u
    ^C[ perf record: Woken up 2 times to write data ]
@@ -937,13 +977,17 @@ the entries associated with the ``libc-xxx.so`` DSO.
    :width: 70%
 
 We can also use the system-wide ``-a`` switch to do system-wide tracing.
-Here we'll trace a couple of scheduler events::
+Here we'll trace a couple of scheduler events:
+
+.. code-block:: console
 
    root@crownbay:~# perf record -a -e sched:sched_switch -e sched:sched_wakeup
    ^C[ perf record: Woken up 38 times to write data ]
    [ perf record: Captured and wrote 9.780 MB perf.data (~427299 samples) ]
 
-We can look at the raw output using ``perf script`` with no arguments::
+We can look at the raw output using ``perf script`` with no arguments:
+
+.. code-block:: console
 
    root@crownbay:~# perf script
 
@@ -966,7 +1010,9 @@ do with what we're interested in, namely events that schedule ``perf``
 itself in and out or that wake perf up. We can get rid of those by using
 the ``--filter`` option --- for each event we specify using ``-e``, we can add a
 ``--filter`` after that to filter out trace events that contain fields with
-specific values::
+specific values:
+
+.. code-block:: console
 
    root@crownbay:~# perf record -a -e sched:sched_switch --filter 'next_comm != perf && prev_comm != perf' -e sched:sched_wakeup --filter 'comm != perf'
    ^C[ perf record: Woken up 38 times to write data ]
@@ -1031,7 +1077,9 @@ perf isn't restricted to the fixed set of static tracepoints listed by
 ``perf list``. Users can also add their own "dynamic" tracepoints anywhere
 in the kernel. For example, suppose we want to define our own
 tracepoint on ``do_fork()``. We can do that using the ``perf probe`` perf
-subcommand::
+subcommand:
+
+.. code-block:: console
 
    root@crownbay:~# perf probe do_fork
    Added new event:
@@ -1045,7 +1093,9 @@ Adding a new tracepoint via
 ``perf probe`` results in an event with all the expected files and format
 in ``/sys/kernel/debug/tracing/events``, just the same as for static
 tracepoints (as discussed in more detail in the trace events subsystem
-section::
+section:
+
+.. code-block:: console
 
    root@crownbay:/sys/kernel/debug/tracing/events/probe/do_fork# ls -al
    drwxr-xr-x    2 root     root             0 Oct 28 11:42 .
@@ -1070,7 +1120,9 @@ section::
    print fmt: "(%lx)", REC->__probe_ip
 
 We can list all dynamic tracepoints currently in
-existence::
+existence:
+
+.. code-block:: console
 
    root@crownbay:~# perf probe -l
     probe:do_fork (on do_fork)
@@ -1078,13 +1130,17 @@ existence::
 
 Let's record system-wide (``sleep 30`` is a
 trick for recording system-wide but basically do nothing and then wake
-up after 30 seconds)::
+up after 30 seconds):
+
+.. code-block:: console
 
    root@crownbay:~# perf record -g -a -e probe:do_fork sleep 30
    [ perf record: Woken up 1 times to write data ]
    [ perf record: Captured and wrote 0.087 MB perf.data (~3812 samples) ]
 
-Using ``perf script`` we can see each ``do_fork`` event that fired::
+Using ``perf script`` we can see each ``do_fork`` event that fired:
+
+.. code-block:: console
 
    root@crownbay:~# perf script
 
@@ -1175,7 +1231,9 @@ configuration as follows::
    DISTRO_FEATURES:append = " api-documentation"
 
 The manual pages in text form, along with some other files, such as a set
-of examples, can also be found in the ``perf`` directory of the kernel tree::
+of examples, can also be found in the ``perf`` directory of the kernel tree:
+
+.. code-block:: text
 
    tools/perf/Documentation
 
@@ -1209,7 +1267,9 @@ Basic ftrace usage
 "ftrace" essentially refers to everything included in the ``/tracing``
 directory of the mounted debugfs filesystem (Yocto follows the standard
 convention and mounts it at ``/sys/kernel/debug``). All the files found in
-``/sys/kernel/debug/tracing`` on a Yocto system are::
+``/sys/kernel/debug/tracing`` on a Yocto system are:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing# ls
    README                      kprobe_events               trace
@@ -1234,12 +1294,16 @@ the ftrace documentation.
 
 We'll start by looking at some of the available built-in tracers.
 
-The ``available_tracers`` file lists the set of available tracers::
+The ``available_tracers`` file lists the set of available tracers:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing# cat available_tracers
    blk function_graph function nop
 
-The ``current_tracer`` file contains the tracer currently in effect::
+The ``current_tracer`` file contains the tracer currently in effect:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing# cat current_tracer
    nop
@@ -1249,7 +1313,9 @@ The above listing of ``current_tracer`` shows that the
 there's actually no tracer currently in effect.
 
 Writing one of the available tracers into ``current_tracer`` makes the
-specified tracer the current tracer::
+specified tracer the current tracer:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing# echo function > current_tracer
    root@sugarbay:/sys/kernel/debug/tracing# cat current_tracer
@@ -1259,7 +1325,9 @@ The above sets the current tracer to be the ``function`` tracer. This tracer
 traces every function call in the kernel and makes it available as the
 contents of the ``trace`` file. Reading the ``trace`` file lists the
 currently buffered function calls that have been traced by the function
-tracer::
+tracer:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing# cat trace | less
 
@@ -1318,7 +1386,9 @@ great way to learn about how the kernel code works in a dynamic sense.
 
 It is a little more difficult to follow the call chains than it needs to
 be --- luckily there's a variant of the function tracer that displays the
-call chains explicitly, called the ``function_graph`` tracer::
+call chains explicitly, called the ``function_graph`` tracer:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing# echo function_graph > current_tracer
    root@sugarbay:/sys/kernel/debug/tracing# cat trace | less
@@ -1454,7 +1524,9 @@ One especially important directory contained within the
 ``/sys/kernel/debug/tracing`` directory is the ``events`` subdirectory, which
 contains representations of every tracepoint in the system. Listing out
 the contents of the ``events`` subdirectory, we see mainly another set of
-subdirectories::
+subdirectories:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing# cd events
    root@sugarbay:/sys/kernel/debug/tracing/events# ls -al
@@ -1503,7 +1575,9 @@ subdirectories::
 Each one of these subdirectories
 corresponds to a "subsystem" and contains yet again more subdirectories,
 each one of those finally corresponding to a tracepoint. For example,
-here are the contents of the ``kmem`` subsystem::
+here are the contents of the ``kmem`` subsystem:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing/events# cd kmem
    root@sugarbay:/sys/kernel/debug/tracing/events/kmem# ls -al
@@ -1525,7 +1599,9 @@ here are the contents of the ``kmem`` subsystem::
    drwxr-xr-x    2 root     root             0 Nov 14 23:19 mm_page_pcpu_drain
 
 Let's see what's inside the subdirectory for a
-specific tracepoint, in this case the one for ``kmalloc``::
+specific tracepoint, in this case the one for ``kmalloc``:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing/events/kmem# cd kmalloc
    root@sugarbay:/sys/kernel/debug/tracing/events/kmem/kmalloc# ls -al
@@ -1541,7 +1617,9 @@ tracepoint describes the event in memory, which is used by the various
 tracing tools that now make use of these tracepoint to parse the event
 and make sense of it, along with a ``print fmt`` field that allows tools
 like ftrace to display the event as text. The format of the
-``kmalloc`` event looks like::
+``kmalloc`` event looks like:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing/events/kmem/kmalloc# cat format
    name: kmalloc
@@ -1580,20 +1658,26 @@ The ``enable`` file
 in the tracepoint directory is what allows the user (or tools such as
 ``trace-cmd``) to actually turn the tracepoint on and off. When enabled, the
 corresponding tracepoint will start appearing in the ftrace ``trace`` file
-described previously. For example, this turns on the ``kmalloc`` tracepoint::
+described previously. For example, this turns on the ``kmalloc`` tracepoint:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing/events/kmem/kmalloc# echo 1 > enable
 
 At the moment, we're not interested in the function tracer or
 some other tracer that might be in effect, so we first turn it off, but
 if we do that, we still need to turn tracing on in order to see the
-events in the output buffer::
+events in the output buffer:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing# echo nop > current_tracer
    root@sugarbay:/sys/kernel/debug/tracing# echo 1 > tracing_on
 
 Now, if we look at the ``trace`` file, we see nothing
-but the ``kmalloc`` events we just turned on::
+but the ``kmalloc`` events we just turned on:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing# cat trace | less
    # tracer: nop
@@ -1639,7 +1723,9 @@ but the ``kmalloc`` events we just turned on::
             <idle>-0     [000] ..s3 18156.400660: kmalloc: call_site=ffffffff81619b36 ptr=ffff88006d554800 bytes_req=512 bytes_alloc=512 gfp_flags=GFP_ATOMIC
    matchbox-termin-1361  [001] ...1 18156.552800: kmalloc: call_site=ffffffff81614050 ptr=ffff88006db34800 bytes_req=576 bytes_alloc=1024 gfp_flags=GFP_KERNEL|GFP_REPEAT
 
-To again disable the ``kmalloc`` event, we need to send ``0`` to the ``enable`` file::
+To again disable the ``kmalloc`` event, we need to send ``0`` to the ``enable`` file:
+
+.. code-block:: console
 
    root@sugarbay:/sys/kernel/debug/tracing/events/kmem/kmalloc# echo 0 > enable
 
@@ -1681,11 +1767,15 @@ a per-CPU graphical display. It directly uses trace-cmd as the
 plumbing that accomplishes all that underneath the covers (and actually
 displays the trace-cmd command it uses, as we'll see).
 
-To start a trace using KernelShark, first start this tool::
+To start a trace using KernelShark, first start this tool:
+
+.. code-block:: console
 
    root@sugarbay:~# kernelshark
 
-Then open up the ``Capture`` dialog by choosing from the KernelShark menu::
+Then open up the ``Capture`` dialog by choosing from the KernelShark menu:
+
+.. code-block:: text
 
    Capture | Record
 
@@ -1739,12 +1829,16 @@ ftrace Documentation
 --------------------
 
 The documentation for ftrace can be found in the kernel Documentation
-directory::
+directory:
+
+.. code-block:: text
 
    Documentation/trace/ftrace.txt
 
 The documentation for the trace event subsystem can also be found in the kernel
-Documentation directory::
+Documentation directory:
+
+.. code-block:: text
 
    Documentation/trace/events.txt
 
@@ -1799,7 +1893,9 @@ extracts from the argument string (``argstr``) of the ``open`` system call.
 Normally, to execute this
 probe, you'd just install SystemTap on the system you want to probe,
 and directly run the probe on that system e.g. assuming the name of the
-file containing the above text is ``trace_open.stp``::
+file containing the above text is ``trace_open.stp``:
+
+.. code-block:: console
 
    root@machine:~# stap trace_open.stp
 
@@ -1840,7 +1936,9 @@ target, with arguments if necessary.
 In order to do this from a remote host, however, you need to have access
 to the build for the image you booted. The ``crosstap`` script provides
 details on how to do this if you run the script on the host without
-having done a build::
+having done a build:
+
+.. code-block:: console
 
    $ crosstap root@192.168.1.88 trace_open.stp
 
@@ -1863,19 +1961,25 @@ Practically speaking, that means you need to do the following:
    the BSP README and/or the widely available basic documentation
    that discusses how to build images).
 
--  Build an ``-sdk`` version of the image e.g.::
+-  Build an ``-sdk`` version of the image e.g.:
+
+   .. code-block:: console
 
       $ bitbake core-image-sato-sdk
 
 -  Or build a non-SDK image but include the profiling tools
    (add ``tools-profile`` to the :term:`EXTRA_IMAGE_FEATURES`
-   variable)::
+   variable):
+
+   .. code-block:: console
 
       $ bitbake core-image-sato
 
    Once you've build the image on the host system, you're ready to
    boot it (or the equivalent pre-built image) and use ``crosstap``
-   to probe it (you need to source the environment as usual first)::
+   to probe it (you need to source the environment as usual first):
+
+   .. code-block:: console
 
       $ source oe-init-build-env
       $ cd ~/my/systemtap/scripts
@@ -1904,7 +2008,9 @@ Running a Script on a Target
 ----------------------------
 
 Once you've done that, you should be able to run a SystemTap script on
-the target::
+the target:
+
+.. code-block:: console
 
    $ cd /path/to/yocto
    $ source oe-init-build-env
@@ -1922,17 +2028,23 @@ the target::
    You can also run generated QEMU images with a command like 'runqemu qemux86-64'
 
 Once you've done that, you can ``cd`` to whatever
-directory contains your scripts and use ``crosstap`` to run the script::
+directory contains your scripts and use ``crosstap`` to run the script:
+
+.. code-block:: console
 
    $ cd /path/to/my/systemap/script
    $ crosstap root@192.168.7.2 trace_open.stp
 
-If you get an error connecting to the target e.g.::
+If you get an error connecting to the target e.g.:
+
+.. code-block:: console
 
    $ crosstap root@192.168.7.2 trace_open.stp
    error establishing ssh connection on remote 'root@192.168.7.2'
 
-Try connecting to the target through SSH and see what happens::
+Try connecting to the target through SSH and see what happens:
+
+.. code-block:: console
 
    $ ssh root@192.168.7.2
 
@@ -2058,7 +2170,9 @@ tracing.
 Collecting and viewing a trace on the target (inside a shell)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-First, from the host, connect to the target through SSH::
+First, from the host, connect to the target through SSH:
+
+.. code-block:: console
 
    $ ssh -l root 192.168.1.47
    The authenticity of host '192.168.1.47 (192.168.1.47)' can't be established.
@@ -2067,30 +2181,40 @@ First, from the host, connect to the target through SSH::
    Warning: Permanently added '192.168.1.47' (RSA) to the list of known hosts.
    root@192.168.1.47's password:
 
-Once on the target, use these steps to create a trace::
+Once on the target, use these steps to create a trace:
+
+.. code-block:: console
 
    root@crownbay:~# lttng create
    Spawning a session daemon
    Session auto-20121015-232120 created.
    Traces will be written in /home/root/lttng-traces/auto-20121015-232120
 
-Enable the events you want to trace (in this case all kernel events)::
+Enable the events you want to trace (in this case all kernel events):
+
+.. code-block:: console
 
    root@crownbay:~# lttng enable-event --kernel --all
    All kernel events are enabled in channel channel0
 
-Start the trace::
+Start the trace:
+
+.. code-block:: console
 
    root@crownbay:~# lttng start
    Tracing started for session auto-20121015-232120
 
 And then stop the trace after awhile or after running a particular workload that
-you want to trace::
+you want to trace:
+
+.. code-block:: console
 
    root@crownbay:~# lttng stop
    Tracing stopped for session auto-20121015-232120
 
-You can now view the trace in text form on the target::
+You can now view the trace in text form on the target:
+
+.. code-block:: console
 
    root@crownbay:~# lttng view
    [23:21:56.989270399] (+?.?????????) sys_geteuid: { 1 }, { }
@@ -2136,14 +2260,18 @@ You can now view the trace in text form on the target::
 
 You can now safely destroy the trace
 session (note that this doesn't delete the trace --- it's still there in
-``~/lttng-traces``)::
+``~/lttng-traces``):
+
+.. code-block:: console
 
    root@crownbay:~# lttng destroy
    Session auto-20121015-232120 destroyed at /home/root
 
 Note that the trace is saved in a directory of the same name as returned by
 ``lttng create``, under the ``~/lttng-traces`` directory (note that you can change this by
-supplying your own name to ``lttng create``)::
+supplying your own name to ``lttng create``):
+
+.. code-block:: console
 
    root@crownbay:~# ls -al ~/lttng-traces
    drwxrwx---    3 root     root          1024 Oct 15 23:21 .
@@ -2159,18 +2287,24 @@ generated by the ``lttng-ust`` build.
 
 The ``hello`` test program isn't installed on the root filesystem by the ``lttng-ust``
 build, so we need to copy it over manually. First ``cd`` into the build
-directory that contains the ``hello`` executable::
+directory that contains the ``hello`` executable:
+
+.. code-block:: console
 
    $ cd build/tmp/work/core2_32-poky-linux/lttng-ust/2.0.5-r0/git/tests/hello/.libs
 
-Copy that over to the target machine::
+Copy that over to the target machine:
+
+.. code-block:: console
 
    $ scp hello root@192.168.1.20:
 
 You now have the instrumented LTTng "hello world" test program on the
 target, ready to test.
 
-First, from the host, connect to the target through SSH::
+First, from the host, connect to the target through SSH:
+
+.. code-block:: console
 
    $ ssh -l root 192.168.1.47
    The authenticity of host '192.168.1.47 (192.168.1.47)' can't be established.
@@ -2179,35 +2313,47 @@ First, from the host, connect to the target through SSH::
    Warning: Permanently added '192.168.1.47' (RSA) to the list of known hosts.
    root@192.168.1.47's password:
 
-Once on the target, use these steps to create a trace::
+Once on the target, use these steps to create a trace:
+
+.. code-block:: console
 
    root@crownbay:~# lttng create
    Session auto-20190303-021943 created.
    Traces will be written in /home/root/lttng-traces/auto-20190303-021943
 
-Enable the events you want to trace (in this case all user space events)::
+Enable the events you want to trace (in this case all user space events):
+
+.. code-block:: console
 
    root@crownbay:~# lttng enable-event --userspace --all
    All UST events are enabled in channel channel0
 
-Start the trace::
+Start the trace:
+
+.. code-block:: console
 
    root@crownbay:~# lttng start
    Tracing started for session auto-20190303-021943
 
-Run the instrumented "hello world" program::
+Run the instrumented "hello world" program:
+
+.. code-block:: console
 
    root@crownbay:~# ./hello
    Hello, World!
    Tracing... done.
 
 And then stop the trace after awhile or after running a particular workload
-that you want to trace::
+that you want to trace:
+
+.. code-block:: console
 
    root@crownbay:~# lttng stop
    Tracing stopped for session auto-20190303-021943
 
-You can now view the trace in text form on the target::
+You can now view the trace in text form on the target:
+
+.. code-block:: console
 
    root@crownbay:~# lttng view
    [02:31:14.906146544] (+?.?????????) hello:1424 ust_tests_hello:tptest: { cpu_id = 1 }, { intfield = 0, intfield2 = 0x0, longfield = 0, netintfield = 0, netintfieldhex = 0x0, arrfield1 = [ [0] = 1, [1] = 2, [2] = 3 ], arrfield2 = "test", _seqfield1_length = 4, seqfield1 = [ [0] = 116, [1] = 101, [2] = 115, [3] = 116 ], _seqfield2_length = 4,  seqfield2 = "test", stringfield = "test", floatfield = 2222, doublefield = 2, boolfield = 1 }
@@ -2219,7 +2365,9 @@ You can now view the trace in text form on the target::
    .
 
 You can now safely destroy the trace session (note that this doesn't delete the
-trace --- it's still there in ``~/lttng-traces``)::
+trace --- it's still there in ``~/lttng-traces``):
+
+.. code-block:: console
 
    root@crownbay:~# lttng destroy
    Session auto-20190303-021943 destroyed at /home/root
@@ -2264,11 +2412,15 @@ Basic blktrace Usage
 --------------------
 
 To record a trace, just run the ``blktrace`` command, giving it the name
-of the block device you want to trace activity on::
+of the block device you want to trace activity on:
+
+.. code-block:: console
 
    root@crownbay:~# blktrace /dev/sdc
 
-In another shell, execute a workload you want to trace::
+In another shell, execute a workload you want to trace:
+
+.. code-block:: console
 
    root@crownbay:/media/sdc# rm linux-2.6.19.2.tar.bz2; wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2; sync
    Connecting to downloads.yoctoproject.org (140.211.169.59:80)
@@ -2277,7 +2429,9 @@ In another shell, execute a workload you want to trace::
 Press ``Ctrl-C`` in the blktrace shell to stop the trace. It
 will display how many events were logged, along with the per-cpu file
 sizes (blktrace records traces in per-cpu kernel buffers and just
-dumps them to user space for blkparse to merge and sort later)::
+dumps them to user space for blkparse to merge and sort later):
+
+.. code-block:: text
 
    ^C=== sdc ===
     CPU  0:                 7082 events,      332 KiB data
@@ -2285,7 +2439,9 @@ dumps them to user space for blkparse to merge and sort later)::
     Total:                  8660 events (dropped 0),      406 KiB data
 
 If you examine the files saved to disk, you see multiple files, one per CPU and
-with the device name as the first part of the filename::
+with the device name as the first part of the filename:
+
+.. code-block:: console
 
    root@crownbay:~# ls -al
    drwxr-xr-x    6 root     root          1024 Oct 27 22:39 .
@@ -2295,7 +2451,9 @@ with the device name as the first part of the filename::
 
 To view the trace events, just call ``blkparse`` in the directory
 containing the trace files, giving it the device name that forms the
-first part of the filenames::
+first part of the filenames:
+
+.. code-block:: console
 
    root@crownbay:~# blkparse sdc
 
@@ -2393,7 +2551,9 @@ Live Mode
 
 blktrace and blkparse are designed from the ground up to be able to
 operate together in a "pipe mode" where the standard output of blktrace can be
-fed directly into the standard input of blkparse::
+fed directly into the standard input of blkparse:
+
+.. code-block:: console
 
    root@crownbay:~# blktrace /dev/sdc -o - | blkparse -i -
 
@@ -2406,7 +2566,9 @@ identify and capture conditions of interest.
 
 There's actually another blktrace command that implements the above
 pipeline as a single command, so the user doesn't have to bother typing
-in the above command sequence::
+in the above command sequence:
+
+.. code-block:: console
 
    root@crownbay:~# btrace /dev/sdc
 
@@ -2421,31 +2583,41 @@ the traced device at all by providing native support for sending all
 trace data over the network.
 
 To have blktrace operate in this mode, start blktrace in server mode on the
-host system, which is going to store the captured data::
+host system, which is going to store the captured data:
+
+.. code-block:: console
 
    $ blktrace -l
    server: waiting for connections...
 
 On the target system that is going to be traced, start blktrace in client
 mode with the -h option to connect to the host system, also passing it the
-device to trace::
+device to trace:
+
+.. code-block:: console
 
    root@crownbay:~# blktrace -d /dev/sdc -h 192.168.1.43
    blktrace: connecting to 192.168.1.43
    blktrace: connected!
 
-On the host system, you should see this::
+On the host system, you should see this:
+
+.. code-block:: text
 
    server: connection from 192.168.1.43
 
-In another shell, execute a workload you want to trace::
+In another shell, execute a workload you want to trace:
+
+.. code-block:: console
 
    root@crownbay:/media/sdc# rm linux-2.6.19.2.tar.bz2; wget &YOCTO_DL_URL;/mirror/sources/linux-2.6.19.2.tar.bz2; sync
    Connecting to downloads.yoctoproject.org (140.211.169.59:80)
    linux-2.6.19.2.tar.b 100% \|*******************************\| 41727k 0:00:00 ETA
 
 When it's done, do a ``Ctrl-C`` on the target system to stop the
-trace::
+trace:
+
+.. code-block:: text
 
    ^C=== sdc ===
     CPU  0:                 7691 events,      361 KiB data
@@ -2453,7 +2625,9 @@ trace::
     Total:                 11800 events (dropped 0),      554 KiB data
 
 On the host system, you should also see a trace summary for the trace
-just ended::
+just ended:
+
+.. code-block:: text
 
    server: end of run for 192.168.1.43:sdc
    === sdc ===
@@ -2462,20 +2636,26 @@ just ended::
     Total:                 11800 events (dropped 0),      554 KiB data
 
 The blktrace instance on the host will
-save the target output inside a ``<hostname>-<timestamp>`` directory::
+save the target output inside a ``<hostname>-<timestamp>`` directory:
+
+.. code-block:: console
 
    $ ls -al
    drwxr-xr-x   10 root     root          1024 Oct 28 02:40 .
    drwxr-sr-x    4 root     root          1024 Oct 26 18:24 ..
    drwxr-xr-x    2 root     root          1024 Oct 28 02:40 192.168.1.43-2012-10-28-02:40:56
 
-``cd`` into that directory to see the output files::
+``cd`` into that directory to see the output files:
+
+.. code-block:: console
 
    $ ls -l
    -rw-r--r--    1 root     root        369193 Oct 28 02:44 sdc.blktrace.0
    -rw-r--r--    1 root     root        197278 Oct 28 02:44 sdc.blktrace.1
 
-And run blkparse on the host system using the device name::
+And run blkparse on the host system using the device name:
+
+.. code-block:: console
 
    $ blkparse sdc
 
@@ -2538,25 +2718,33 @@ user space tools.
 
 To enable tracing for a given device, use ``/sys/block/xxx/trace/enable``,
 where ``xxx`` is the device name. This for example enables tracing for
-``/dev/sdc``::
+``/dev/sdc``:
+
+.. code-block:: console
 
    root@crownbay:/sys/kernel/debug/tracing# echo 1 > /sys/block/sdc/trace/enable
 
 Once you've selected the device(s) you want
-to trace, selecting the ``blk`` tracer will turn the blk tracer on::
+to trace, selecting the ``blk`` tracer will turn the blk tracer on:
+
+.. code-block:: console
 
    root@crownbay:/sys/kernel/debug/tracing# cat available_tracers
    blk function_graph function nop
 
    root@crownbay:/sys/kernel/debug/tracing# echo blk > current_tracer
 
-Execute the workload you're interested in::
+Execute the workload you're interested in:
+
+.. code-block:: console
 
    root@crownbay:/sys/kernel/debug/tracing# cat /media/sdc/testfile.txt
 
 And look at the output (note here that we're using ``trace_pipe`` instead of
 trace to capture this trace --- this allows us to wait around on the pipe
-for data to appear)::
+for data to appear):
+
+.. code-block:: console
 
    root@crownbay:/sys/kernel/debug/tracing# cat trace_pipe
                cat-3587  [001] d..1  3023.276361:   8,32   Q   R 1699848 + 8 [cat]
@@ -2575,7 +2763,9 @@ for data to appear)::
                cat-3587  [001] d..1  3023.276497:   8,32   m   N cfq3587 activate rq, drv=1
                cat-3587  [001] d..2  3023.276500:   8,32   D   R 1699848 + 8 [cat]
 
-And this turns off tracing for the specified device::
+And this turns off tracing for the specified device:
+
+.. code-block:: console
 
    root@crownbay:/sys/kernel/debug/tracing# echo 0 > /sys/block/sdc/trace/enable
 
@@ -2593,6 +2783,8 @@ section can be found here:
 
 The above manual pages, along with manuals for the other blktrace utilities
 (``btt``, ``blkiomon``, etc) can be found in the ``/doc`` directory of the blktrace
-tools git repository::
+tools git repository:
+
+.. code-block:: console
 
    $ git clone https://git.kernel.org/pub/scm/linux/kernel/git/axboe/blktrace.git
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 09/16] ref-manual: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (7 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 08/16] profile-manual: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 10/16] security-manual: " Trevor Woerner
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/ref-manual/classes.rst          |  68 ++++++--
 .../ref-manual/devtool-reference.rst          |  80 ++++++---
 documentation/ref-manual/faq.rst              |  20 ++-
 documentation/ref-manual/features.rst         |   4 +-
 documentation/ref-manual/fragments.rst        |  32 +++-
 documentation/ref-manual/images.rst           |   4 +-
 documentation/ref-manual/qa-checks.rst        |  24 ++-
 documentation/ref-manual/structure.rst        |  28 +++-
 .../ref-manual/system-requirements.rst        |  64 ++++++--
 documentation/ref-manual/tasks.rst            |  44 +++--
 documentation/ref-manual/terms.rst            |  16 +-
 .../ubuntu-debian-host-packages-nodocs.rst    |  16 +-
 documentation/ref-manual/variables.rst        | 152 +++++++++++++-----
 13 files changed, 414 insertions(+), 138 deletions(-)

diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 7b67ae8cc6b3..130cbea321e1 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -364,7 +364,9 @@ by reading the ``Cargo.lock`` file in the source tree.
 To do so, create a recipe for your program, for example using
 :doc:`devtool </ref-manual/devtool-reference>`,
 make it inherit the :ref:`ref-classes-cargo` and
-:ref:`ref-classes-cargo-update-recipe-crates` and run::
+:ref:`ref-classes-cargo-update-recipe-crates` and run:
+
+.. code-block:: console
 
    $ bitbake -c update_crates recipe
 
@@ -454,7 +456,9 @@ involves a certain risk, which is also the reason why this feature is not part o
 the main :ref:`ref-classes-cmake` class by default.
 
 One use case is the execution of cross-compiled unit tests with CTest on the build
-machine. If ``CMAKE_CROSSCOMPILING_EMULATOR`` is configured::
+machine. If ``CMAKE_CROSSCOMPILING_EMULATOR`` is configured:
+
+.. code-block:: text
 
    cmake --build --target test
 
@@ -749,7 +753,9 @@ By default, this class expects the source code to support recipe builds
 that use the :term:`B` variable to point to the directory in
 which the OpenEmbedded build system places the generated objects built
 from the recipes. By default, the :term:`B` directory is set to the
-following, which is separate from the source directory (:term:`S`)::
+following, which is separate from the source directory (:term:`S`):
+
+.. code-block:: text
 
    ${WORKDIR}/${BPN}-{PV}/
 
@@ -795,7 +801,9 @@ Here is an example that uses this class in an image recipe::
        "
 
 Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
-passwords. First on host, create the (escaped) password hash::
+passwords. First on host, create the (escaped) password hash:
+
+.. code-block:: text
 
    printf "%q" $(mkpasswd -m sha256crypt tester01)
 
@@ -1370,7 +1378,9 @@ The simplest example for building a FIT image is to add::
 
    KERNEL_CLASSES += "kernel-fit-extra-artifacts"
 
-to the machine :term:`configuration file` and to execute::
+to the machine :term:`configuration file` and to execute:
+
+.. code-block:: console
 
    $ bitbake linux-yocto-fitimage
 
@@ -1384,7 +1394,9 @@ lines to the machine configuration file::
    KERNEL_CLASSES += "kernel-fit-extra-artifacts"
    PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
 
-The FIT image, this time including the RT kernel, is built again by calling::
+The FIT image, this time including the RT kernel, is built again by calling:
+
+.. code-block:: console
 
    $ bitbake linux-yocto-fitimage
 
@@ -1757,7 +1769,9 @@ a couple different ways:
    .. note::
 
       When creating a recipe this way, the recipe name must follow this
-      naming convention::
+      naming convention:
+
+      .. code-block:: text
 
          myrecipe-native.bb
 
@@ -1799,7 +1813,9 @@ couple different ways:
 
    .. note::
 
-      When creating a recipe, you must follow this naming convention::
+      When creating a recipe, you must follow this naming convention:
+
+      .. code-block:: text
 
               nativesdk-myrecipe.bb
 
@@ -1913,7 +1929,9 @@ To achieve that :ref:`ref-classes-overlayfs` provides a ``systemd``
 helper service for mounting overlays. This helper service is named
 ``${PN}-overlays.service`` and can be depended on in your application recipe
 (named ``application`` in the following example) ``systemd`` unit by adding
-to the unit the following::
+to the unit the following:
+
+.. code-block:: ini
 
   [Unit]
   After=application-overlays.service
@@ -2356,7 +2374,9 @@ established and then populates the SDK. After populating the SDK, the
 contains the cross-compiler and associated tooling, and the target,
 which contains a target root filesystem that is configured for the SDK
 usage. These two images reside in :term:`SDK_OUTPUT`,
-which consists of the following::
+which consists of the following:
+
+.. code-block:: text
 
    ${SDK_OUTPUT}/${SDK_ARCH}-nativesdk-pkgs
    ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/target-pkgs
@@ -2531,11 +2551,15 @@ paths. This is occasionally used in some recipes that create wrong symbolic
 links when their :ref:`ref-classes-native` version is built, and/or would cause
 breakage in the :ref:`overview-manual/concepts:shared state cache`.
 
-For example, if the following symbolic link is found in :term:`D`::
+For example, if the following symbolic link is found in :term:`D`:
+
+.. code-block:: text
 
    /usr/bin/foo -> /sbin/bar
 
-It is replaced by::
+It is replaced by:
+
+.. code-block:: text
 
    /usr/bin/foo -> ../../sbin/bar
 
@@ -3152,7 +3176,9 @@ The tests are commands that run on the target system over ``ssh``. Each
 test is written in Python and makes use of the ``unittest`` module.
 
 The :ref:`ref-classes-testimage` class runs tests on an image when called using the
-following::
+following:
+
+.. code-block:: console
 
    $ bitbake -c testimage image
 
@@ -3172,7 +3198,9 @@ section in the Yocto Project Test Environment Manual.
 
 This class supports running automated tests against software development
 kits (SDKs). The :ref:`ref-classes-testsdk` class runs tests on an SDK when called
-using the following::
+using the following:
+
+.. code-block:: console
 
    $ bitbake -c testsdk image
 
@@ -3378,7 +3406,9 @@ There are three ways to configure the recipe for your machine:
 
    -  ``UBOOT_CONFIG_BINARY[config]``: binary to select as the one to deploy in
       :term:`DEPLOY_DIR_IMAGE`. The output of a U-Boot build may be more than
-      one binary, for example::
+      one binary, for example:
+
+      .. code-block:: text
 
          u-boot.bin
          u-boot-with-spl.bin
@@ -3445,7 +3475,9 @@ There are three ways to configure the recipe for your machine:
 
    -  ``binary``: binary to select as the one to deploy in
       :term:`DEPLOY_DIR_IMAGE`. The output of a U-Boot build may be more than
-      one binary, for example::
+      one binary, for example:
+
+      .. code-block:: text
 
          u-boot.bin
          u-boot-with-spl.bin
@@ -3862,7 +3894,9 @@ If an image is built it will generate a report in :term:`DEPLOY_DIR_IMAGE` for
 all the packages used, it will also generate a file for all recipes used in the
 build.
 
-Example usage::
+Example usage:
+
+.. code-block:: console
 
    $ bitbake -c generate_vex openssl
 
diff --git a/documentation/ref-manual/devtool-reference.rst b/documentation/ref-manual/devtool-reference.rst
index 3445d1b4e8f6..79450b7dd456 100644
--- a/documentation/ref-manual/devtool-reference.rst
+++ b/documentation/ref-manual/devtool-reference.rst
@@ -22,7 +22,9 @@ Getting Help
 
 The ``devtool`` command line is organized similarly to Git in that it
 has a number of sub-commands for each function. You can run
-``devtool --help`` to see all the commands::
+``devtool --help`` to see all the commands:
+
+.. code-block:: console
 
    $ devtool --help
    NOTE: Starting bitbake server...
@@ -73,7 +75,9 @@ has a number of sub-commands for each function. You can run
 
 As directed in the general help output, you can
 get more syntax on a specific command by providing the command name and
-using ``--help``::
+using ``--help``:
+
+.. code-block:: console
 
    $ devtool add --help
    NOTE: Starting bitbake server...
@@ -165,7 +169,9 @@ you. The source files the recipe uses should exist in an external area.
 
 The following example creates and adds a new recipe named ``jackson`` to
 a workspace layer the tool creates. The source code built by the recipes
-resides in ``/home/user/sources/jackson``::
+resides in ``/home/user/sources/jackson``:
+
+.. code-block:: console
 
    $ devtool add jackson /home/user/sources/jackson
 
@@ -193,7 +199,9 @@ unpacking files from a remote URI. In some cases, you might want to
 specify a source revision by branch, tag, or commit hash. You can
 specify these options when using the ``devtool add`` command:
 
--  To specify a source branch, use the ``--srcbranch`` option::
+-  To specify a source branch, use the ``--srcbranch`` option:
+
+   .. code-block:: console
 
       $ devtool add --srcbranch &DISTRO_NAME_NO_CAP; jackson /home/user/sources/jackson
 
@@ -201,7 +209,9 @@ specify these options when using the ``devtool add`` command:
    branch.
 
 -  To specify a specific tag or commit hash, use the ``--srcrev``
-   option::
+   option:
+
+   .. code-block:: console
 
       $ devtool add --srcrev &DISTRO_REL_TAG; jackson /home/user/sources/jackson
       $ devtool add --srcrev some_commit_hash /home/user/sources/jackson
@@ -259,7 +269,9 @@ The ``devtool modify`` command extracts the source for a recipe, sets it
 up as a Git repository if the source had not already been fetched from
 Git, checks out a branch for development, and applies any patches from
 the recipe as commits on top. You can use the following command to
-checkout the source files::
+checkout the source files:
+
+.. code-block:: console
 
    $ devtool modify recipe
 
@@ -295,7 +307,9 @@ compile, and test the code.
 
 When you are satisfied with the results and you have committed your
 changes to the Git repository, you can then run the
-``devtool update-recipe`` to create the patches and update the recipe::
+``devtool update-recipe`` to create the patches and update the recipe:
+
+.. code-block:: console
 
    $ devtool update-recipe recipe
 
@@ -306,7 +320,9 @@ Often, you might want to apply customizations made to your software in
 your own layer rather than apply them to the original recipe. If so, you
 can use the ``-a`` or ``--append`` option with the
 ``devtool update-recipe`` command. These options allow you to specify
-the layer into which to write an append file::
+the layer into which to write an append file:
+
+.. code-block:: console
 
    $ devtool update-recipe recipe -a base-layer-directory
 
@@ -356,7 +372,9 @@ variables in package recipes.
       in the recipe).
 
 As with all ``devtool`` commands, you can get help on the individual
-command::
+command:
+
+.. code-block:: console
 
    $ devtool check-upgrade-status -h
    NOTE: Starting bitbake server...
@@ -374,7 +392,9 @@ command::
 Unless you provide a specific recipe name on the command line, the
 command checks all recipes in all configured layers.
 
-Here is a partial example table that reports on all the recipes::
+Here is a partial example table that reports on all the recipes:
+
+.. code-block:: console
 
    $ devtool check-upgrade-status
    ...
@@ -456,7 +476,9 @@ files have been modified, the command preserves the modified files in a
 separate "attic" subdirectory under the workspace layer.
 
 Here is an example that resets the workspace directory that contains the
-``mtr`` recipe::
+``mtr`` recipe:
+
+.. code-block:: console
 
    $ devtool reset mtr
    NOTE: Cleaning sysroot for recipe mtr...
@@ -472,7 +494,9 @@ specified recipe in the specified layer and remove it from your workspace.
 
 This is roughly equivalent to the ``devtool update-recipe`` command followed by
 the ``devtool reset`` command. The changes must have been committed to the git
-repository created by ``devtool``. Here is an example::
+repository created by ``devtool``. Here is an example:
+
+.. code-block:: console
 
   $ devtool finish <recipe> <path/to/custom/layer>
 
@@ -488,7 +512,9 @@ Use the ``devtool build`` command to build your recipe. The
 When you use the ``devtool build`` command, you must supply the root
 name of the recipe (i.e. do not provide versions, paths, or extensions).
 You can use either the ``-s`` or the ``--disable-parallel-make`` options to
-disable parallel makes during the build. Here is an example::
+disable parallel makes during the build. Here is an example:
+
+.. code-block:: console
 
    $ devtool build recipe
 
@@ -504,7 +530,9 @@ device for testing. For proper integration into a final image, you need
 to edit your custom image recipe appropriately.
 
 When you use the ``devtool build-image`` command, you must supply the
-name of the image. This command has no command line options::
+name of the image. This command has no command line options:
+
+.. code-block:: console
 
    $ devtool build-image image
 
@@ -514,7 +542,9 @@ Deploying Your Software on the Target Machine
 =============================================
 
 Use the ``devtool deploy-target`` command to deploy the recipe's build
-output to the live target machine::
+output to the live target machine:
+
+.. code-block:: console
 
    $ devtool deploy-target recipe target
 
@@ -585,7 +615,9 @@ Use the ``devtool undeploy-target`` command to remove deployed build
 output from the target machine. For the ``devtool undeploy-target``
 command to work, you must have previously used the
 ":ref:`devtool deploy-target <ref-manual/devtool-reference:deploying your software on the target machine>`"
-command::
+command:
+
+.. code-block:: console
 
    $ devtool undeploy-target recipe target
 
@@ -604,13 +636,17 @@ new workspace layer, it is populated with the ``README`` file and the
 ``conf`` directory only.
 
 The following example creates a new workspace layer in your current
-working and by default names the workspace layer "workspace"::
+working and by default names the workspace layer "workspace":
+
+.. code-block:: console
 
    $ devtool create-workspace
 
 You can create a workspace layer anywhere by supplying a pathname with
 the command. The following command creates a new workspace layer named
-"new-workspace"::
+"new-workspace":
+
+.. code-block:: console
 
    $ devtool create-workspace /home/user/new-workspace
 
@@ -623,13 +659,17 @@ Use the ``devtool status`` command to list the recipes currently in your
 workspace. Information includes the paths to their respective external
 source trees.
 
-The ``devtool status`` command has no command-line options::
+The ``devtool status`` command has no command-line options:
+
+.. code-block:: console
 
    $ devtool status
 
 Here is sample output after using
 :ref:`devtool add <ref-manual/devtool-reference:adding a new recipe to the workspace layer>`
-to create and add the ``mtr_0.86.bb`` recipe to the ``workspace`` directory::
+to create and add the ``mtr_0.86.bb`` recipe to the ``workspace`` directory:
+
+.. code-block:: console
 
    $ devtool status
    mtr:/home/user/bitbake-builds/build/workspace/sources/mtr (/home/user/bitbake-builds/build/workspace/recipes/mtr/mtr_0.86.bb)
diff --git a/documentation/ref-manual/faq.rst b/documentation/ref-manual/faq.rst
index 7dec928827d5..e9b47e26efb2 100644
--- a/documentation/ref-manual/faq.rst
+++ b/documentation/ref-manual/faq.rst
@@ -237,7 +237,9 @@ file.
 
 Here is the applicable code for setting various proxy types in the
 ``.wgetrc`` file. By default, these settings are disabled with comments.
-To use them, remove the comments::
+To use them, remove the comments:
+
+.. code-block:: text
 
    # You can set the default proxies for Wget to use for http, https, and ftp.
    # They will override the value in the environment.
@@ -312,7 +314,9 @@ Why does the build fail with ``iconv.h`` problems?
 
 When you try to build a native recipe, you may get an error message that
 indicates that GNU ``libiconv`` is not in use but ``iconv.h`` has been
-included from ``libiconv``::
+included from ``libiconv``:
+
+.. code-block:: text
 
    #error GNU libiconv not in use but included iconv.h is from libiconv
 
@@ -514,7 +518,9 @@ directly to the build machine's root file system. Consequently, the build
 system uses paths within the Build Directory for ``DESTDIR``, ``bindir``
 and related variables. To better understand this, consider the following
 two paths (artificially broken across lines for readability) where the
-first is relatively normal and the second is not::
+first is relatively normal and the second is not:
+
+.. code-block:: text
 
    /home/user/poky-bootchart2/build/tmp/work/i586-poky-linux/zlib/
       1.2.8-r0/sysroot-destdir/usr/bin
@@ -578,7 +584,9 @@ How do I disable the cursor on my touchscreen device?
 You need to create a form factor file as described in the
 ":ref:`bsp-manual/bsp:miscellaneous bsp-specific recipe files`" section in
 the Yocto Project Board Support Packages (BSP) Developer's Guide. Set
-the ``HAVE_TOUCHSCREEN`` variable equal to one as follows::
+the ``HAVE_TOUCHSCREEN`` variable equal to one as follows:
+
+.. code-block:: shell
 
    HAVE_TOUCHSCREEN=1
 
@@ -592,7 +600,9 @@ to add a BSP-specific netbase that includes an interfaces file. See the
 the Yocto Project Board Support Packages (BSP) Developer's Guide for
 information on creating these types of miscellaneous recipe files.
 
-For example, add the following files to your layer::
+For example, add the following files to your layer:
+
+.. code-block:: text
 
    meta-MACHINE/recipes-bsp/netbase/netbase/MACHINE/interfaces
    meta-MACHINE/recipes-bsp/netbase/netbase_5.0.bbappend
diff --git a/documentation/ref-manual/features.rst b/documentation/ref-manual/features.rst
index 89143344a841..e26062df3742 100644
--- a/documentation/ref-manual/features.rst
+++ b/documentation/ref-manual/features.rst
@@ -26,7 +26,9 @@ One method you can use to determine which recipes are checking to see if
 a particular feature is contained or not is to ``grep`` through the
 :term:`Metadata` for the feature. Here is an example that
 discovers the recipes whose build is potentially changed based on a
-given feature::
+given feature:
+
+.. code-block:: console
 
    $ cd openembedded-core
    $ git grep 'contains.*MACHINE_FEATURES.*feature'
diff --git a/documentation/ref-manual/fragments.rst b/documentation/ref-manual/fragments.rst
index c5640b826eae..5be08a5cdfb0 100644
--- a/documentation/ref-manual/fragments.rst
+++ b/documentation/ref-manual/fragments.rst
@@ -70,25 +70,33 @@ From the list obtained with the :ref:`ref-bitbake-config-build-list-fragments`
 command, you can determine which fragments can be enabled for your build.
 
 For example, the following command would enable the
-:ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment::
+:ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment:
+
+.. code-block:: console
 
    $ bitbake-config-build enable-fragment core/yocto/sstate-mirror-cdn
 
 .. note::
 
-   Multiple fragments can be enabled at once with the same command::
+   Multiple fragments can be enabled at once with the same command:
+
+   .. code-block:: console
 
       $ bitbake-config-build enable-fragment <fragment1> <fragment2> ...
 
 :term:`Built-in fragments <Built-in Fragment>` are enabled the same way, and
 their values are defined from the command-line directly. For example, the
 following command sets the ``qemuarm64`` :term:`MACHINE` through the
-:ref:`ref-fragments-builtin-core-machine` fragment::
+:ref:`ref-fragments-builtin-core-machine` fragment:
+
+.. code-block:: console
 
    $ bitbake-config-build enable-fragment machine/qemuarm64
 
 This fragment can be overridden from the command-line by setting it to another
-value, for example::
+value, for example:
+
+.. code-block:: console
 
    $ bitbake-config-build enable-fragment machine/qemux86-64
 
@@ -116,18 +124,24 @@ command. The list of enabled fragments can be obtained with
 :ref:`ref-bitbake-config-build-list-fragments`.
 
 For example, the following command disables the
-:ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment::
+:ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment:
+
+.. code-block:: console
 
    $ bitbake-config-build disable-fragment core/yocto/sstate-mirror-cdn
 
 Likewise, :term:`Built-in Fragments <Built-in Fragment>` are disabled the
-same way. For example, this would disable the ``machine/qemuarm64`` fragment::
+same way. For example, this would disable the ``machine/qemuarm64`` fragment:
+
+.. code-block:: console
 
    $ bitbake-config-build disable-fragment machine/qemuarm64
 
 .. note::
 
-   Multiple fragments can be disabled at once with the same command::
+   Multiple fragments can be disabled at once with the same command:
+
+   .. code-block:: console
 
       $ bitbake-config-build disable-fragment <fragment1> <fragment2>
 
@@ -140,7 +154,9 @@ The :ref:`ref-bitbake-config-build-disable-all-fragments` command disables all o
 currently enabled fragments.  The list of enabled fragments can be obtained with
 :ref:`ref-bitbake-config-build-list-fragments`.
 
-This command is run without arguments::
+This command is run without arguments:
+
+.. code-block:: console
 
    $ bitbake-config-build disable-all-fragments
 
diff --git a/documentation/ref-manual/images.rst b/documentation/ref-manual/images.rst
index 8b287505c8f3..72fbdd61b9c8 100644
--- a/documentation/ref-manual/images.rst
+++ b/documentation/ref-manual/images.rst
@@ -28,7 +28,9 @@ image you want.
        INCOMPATIBLE_LICENSE:pn-your-image-name = "GPL-3.0* LGPL-3.0*"
 
 From within the :term:`OpenEmbedded-Core (OE-Core)` Git repository, you can use the following
-command to display the list of directories that contain image recipe files::
+command to display the list of directories that contain image recipe files:
+
+.. code-block:: console
 
    $ ls meta*/recipes*/images/*.bb
 
diff --git a/documentation/ref-manual/qa-checks.rst b/documentation/ref-manual/qa-checks.rst
index 14e3632ce6b8..586eda09c791 100644
--- a/documentation/ref-manual/qa-checks.rst
+++ b/documentation/ref-manual/qa-checks.rst
@@ -354,7 +354,9 @@ see the section describing the
 
 The ``/usr/share/info/dir`` should not be packaged. Add the following
 line to your :ref:`ref-tasks-install` task or to your
-``do_install:append`` within the recipe as follows::
+``do_install:append`` within the recipe as follows:
+
+.. code-block:: text
 
    rm ${D}${infodir}/dir
 
@@ -530,7 +532,9 @@ This check looks for evidence of "fuzz" when applying patches within the :ref:`r
 task. Patch fuzz is a situation when the ``patch`` tool ignores some of the context
 lines in order to apply the patch. Consider this example:
 
-Patch to be applied::
+Patch to be applied:
+
+.. code-block:: diff
 
    --- filename
    +++ filename
@@ -542,7 +546,9 @@ Patch to be applied::
     context line 5
     context line 6
 
-Original source code::
+Original source code:
+
+.. code-block:: text
 
    different context line 1
    different context line 2
@@ -551,7 +557,9 @@ Original source code::
    different context line 5
    different context line 6
 
-Outcome (after applying patch with fuzz)::
+Outcome (after applying patch with fuzz):
+
+.. code-block:: text
 
    different context line 1
    different context line 2
@@ -571,14 +579,18 @@ patched file to still compile without errors.
 *How to eliminate patch fuzz warnings*
 
 Use the ``devtool`` command as explained by the warning. First, unpack the
-source into devtool workspace::
+source into devtool workspace:
+
+.. code-block:: console
 
    $ devtool modify <recipe>
 
 This will apply all of the patches, and create new commits out of them in
 the workspace --- with the patch context updated.
 
-Then, replace the patches in the recipe layer::
+Then, replace the patches in the recipe layer:
+
+.. code-block:: console
 
    $ devtool finish --force-patch-refresh <recipe> <layer_path>
 
diff --git a/documentation/ref-manual/structure.rst b/documentation/ref-manual/structure.rst
index 676d274c9af3..b8266b228503 100644
--- a/documentation/ref-manual/structure.rst
+++ b/documentation/ref-manual/structure.rst
@@ -156,7 +156,9 @@ When you run this script, your Yocto Project environment is set up, a
 :term:`Build Directory` is created, your working directory becomes the
 :term:`Build Directory`, and you are presented with some simple
 suggestions as to what to do next, including a list of some possible
-targets to build. Here is an example::
+targets to build. Here is an example:
+
+.. code-block:: console
 
    $ source oe-init-build-env
 
@@ -200,7 +202,9 @@ you provide a :term:`Build Directory` argument when you ``source`` the script,
 you direct the OpenEmbedded build system to create a :term:`Build Directory` of
 your choice. For example, the following command creates a
 :term:`Build Directory` named ``mybuilds/`` that is outside of the
-:term:`Source Directory`::
+:term:`Source Directory`:
+
+.. code-block:: console
 
    $ source oe-init-build-env ~/mybuilds
 
@@ -321,7 +325,9 @@ The source ``local.conf.sample`` file used depends on the
 Because the script variable points to the source of the
 ``local.conf.sample`` file, this implies that you can configure your
 build environment from any layer by setting the variable in the
-top-level build environment setup script as follows::
+top-level build environment setup script as follows:
+
+.. code-block:: shell
 
    TEMPLATECONF=your_layer/conf/templates/your_template_name
 
@@ -355,7 +361,9 @@ file used depends on the :term:`TEMPLATECONF` script variable, which
 defaults to :oecore_path:`meta/conf/templates/default` . Because the script
 variable points to the source of the ``bblayers.conf.sample`` file, this
 implies that you can base your build from any layer by setting the
-variable in the top-level build environment setup script as follows::
+variable in the top-level build environment setup script as follows:
+
+.. code-block:: shell
 
    TEMPLATECONF=your_layer/conf/templates/your_template_name
 
@@ -382,7 +390,9 @@ want to access downloaded files (:term:`DL_DIR`).
 This file can be shared for multiple build directories. For example,
 :doc:`bitbake-setup <bitbake:bitbake-user-manual/bitbake-user-manual-environment-setup>`
 makes the :ref:`structure-build-conf-site.conf` file a symbolic link to a common
-:ref:`structure-build-conf-auto.conf` file::
+:ref:`structure-build-conf-auto.conf` file:
+
+.. code-block:: text
 
    ├── poky-master-poky-distro_poky-machine_qemux86-64/
    │   └── build/
@@ -571,7 +581,9 @@ image again.
 If you do accidentally delete files here, you will need to force them to
 be re-created. In order to do that, you will need to know the target
 that produced them. For example, these commands rebuild and re-create
-the kernel files::
+the kernel files:
+
+.. code-block:: console
 
    $ bitbake -c clean virtual/kernel
    $ bitbake virtual/kernel
@@ -666,7 +678,9 @@ recipe-specific :term:`WORKDIR` directories. Thus, the
 This directory holds information that BitBake uses for accounting
 purposes to track what tasks have run and when they have run. The
 directory is sub-divided by architecture, package name, and version.
-Here is an example::
+Here is an example:
+
+.. code-block:: text
 
       stamps/all-poky-linux/distcc-config/1.0-r0.do_build-2fdd....2do
 
diff --git a/documentation/ref-manual/system-requirements.rst b/documentation/ref-manual/system-requirements.rst
index 71abdd62fae7..b41b7a9f6c1b 100644
--- a/documentation/ref-manual/system-requirements.rst
+++ b/documentation/ref-manual/system-requirements.rst
@@ -478,7 +478,9 @@ The ``install-buildtools`` script is the easiest of the three methods by
 which you can get these tools. It downloads a pre-built :term:`buildtools`
 installer and automatically installs the tools for you:
 
-#. Execute the ``install-buildtools`` script. Here is an example::
+#. Execute the ``install-buildtools`` script. Here is an example:
+
+   .. code-block:: console
 
       $ cd /path/to/bitbake-builds
       $ ./layers/openembedded-core/scripts/install-buildtools \
@@ -493,26 +495,34 @@ installer and automatically installs the tools for you:
    installation is functional.
 
    To avoid the need of ``sudo`` privileges, the ``install-buildtools``
-   script will by default tell the installer to install in::
+   script will by default tell the installer to install in:
+
+   .. code-block:: text
 
       /path/to/bitbake-builds/buildtools
 
    If your host development system needs the additional tools provided
    in the :term:`buildtools-extended` tarball, you can instead execute the
-   ``install-buildtools`` script with the default parameters::
+   ``install-buildtools`` script with the default parameters:
+
+   .. code-block:: console
 
       $ cd /path/to/bitbake-builds
       $ ./layers/openembedded-core/scripts/install-buildtools
 
    Alternatively if your host development system has a broken ``make``
    version such that you only need a known good version of ``make``,
-   you can use the ``--make-only`` option::
+   you can use the ``--make-only`` option:
+
+   .. code-block:: console
 
       $ cd /path/to/bitbake-builds
       $ ./layers/openembedded-core/scripts/install-buildtools --make-only
 
 #. Source the tools environment setup script by using a command like the
-   following::
+   following:
+
+   .. code-block:: console
 
       $ source /path/to/bitbake-builds/buildtools/environment-setup-x86_64-pokysdk-linux
 
@@ -536,15 +546,21 @@ steps:
    and to :term:`buildtools`, :term:`buildtools-extended` or :term:`buildtools-make`.
 
 #. Execute the installation script. Here is an example for the
-   traditional installer::
+   traditional installer:
+
+   .. code-block:: console
 
       $ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
 
-   Here is an example for the extended installer::
+   Here is an example for the extended installer:
+
+   .. code-block:: console
 
       $ sh ~/Downloads/x86_64-buildtools-extended-nativesdk-standalone-&DISTRO;.sh
 
-   An example for the make-only installer::
+   An example for the make-only installer:
+
+   .. code-block:: console
 
       $ sh ~/Downloads/x86_64-buildtools-make-nativesdk-standalone-&DISTRO;.sh
 
@@ -553,7 +569,9 @@ steps:
    ``/home/your-username/buildtools``
 
 #. As instructed by the installer script, you will have to source the tools
-   environment setup script::
+   environment setup script:
+
+   .. code-block:: console
 
       $ source /home/your_username/buildtools/environment-setup-x86_64-pokysdk-linux
 
@@ -581,15 +599,21 @@ installer:
    your build environment with the setup script
    (:ref:`structure-core-script`).
 
-#. Run the BitBake command to build the tarball::
+#. Run the BitBake command to build the tarball:
+
+   .. code-block:: console
 
       $ bitbake buildtools-tarball
 
-   or to build the extended tarball::
+   or to build the extended tarball:
+
+   .. code-block:: console
 
       $ bitbake buildtools-extended-tarball
 
-   or to build the make-only tarball::
+   or to build the make-only tarball:
+
+   .. code-block:: console
 
       $ bitbake buildtools-make-tarball
 
@@ -607,15 +631,21 @@ installer:
    does not meet the Git, tar, or Python (or gcc) requirements.
 
 #. On this machine, run the ``.sh`` file to install the tools. Here is an
-   example for the traditional installer::
+   example for the traditional installer:
+
+   .. code-block:: console
 
       $ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
 
-   For the extended installer::
+   For the extended installer:
+
+   .. code-block:: console
 
       $ sh ~/Downloads/x86_64-buildtools-extended-nativesdk-standalone-&DISTRO;.sh
 
-   And for the make-only installer::
+   And for the make-only installer:
+
+   .. code-block:: console
 
       $ sh ~/Downloads/x86_64-buildtools-make-nativesdk-standalone-&DISTRO;.sh
 
@@ -624,7 +654,9 @@ installer:
    ``/home/your_username/buildtools``
 
 #. Source the tools environment setup script by using a command like the
-   following::
+   following:
+
+   .. code-block:: console
 
       $ source /home/your_username/buildtools/environment-setup-x86_64-poky-linux
 
diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst
index ca6d30ca8ca8..82148eb384ef 100644
--- a/documentation/ref-manual/tasks.rst
+++ b/documentation/ref-manual/tasks.rst
@@ -316,11 +316,15 @@ Patch files, by default, are ``*.patch`` and ``*.diff`` files created
 and kept in a subdirectory of the directory holding the recipe file. For
 example, consider the
 :oe_git:`bluez5 </openembedded-core/tree/meta/recipes-connectivity/bluez5>`
-recipe from the :term:`OpenEmbedded-Core (OE-Core)` layer::
+recipe from the :term:`OpenEmbedded-Core (OE-Core)` layer:
+
+.. code-block:: text
 
    meta/recipes-connectivity/bluez5
 
-This recipe has two patch files located here::
+This recipe has two patch files located here:
+
+.. code-block:: text
 
    meta/recipes-connectivity/bluez5/bluez5
 
@@ -497,7 +501,9 @@ Removes all output files for a target from the
 :ref:`ref-tasks-install`, and
 :ref:`ref-tasks-package`).
 
-You can run this task using BitBake as follows::
+You can run this task using BitBake as follows:
+
+.. code-block:: console
 
    $ bitbake -c clean recipe
 
@@ -522,20 +528,26 @@ downloaded source files for a target (i.e. the contents of
 identical to the :ref:`ref-tasks-cleansstate` task
 with the added removal of downloaded source files.
 
-You can run this task using BitBake as follows::
+You can run this task using BitBake as follows:
+
+.. code-block:: console
 
    $ bitbake -c cleanall recipe
 
 You should never use the :ref:`ref-tasks-cleanall` task in a normal
 scenario. If you want to start fresh with the :ref:`ref-tasks-fetch` task,
-use instead::
+use instead:
+
+.. code-block:: console
 
   $ bitbake -f -c fetch recipe
 
 .. note::
 
    The reason to prefer ``bitbake -f -c fetch`` is that the
-   :ref:`ref-tasks-cleanall` task would break in some cases, such as::
+   :ref:`ref-tasks-cleanall` task would break in some cases, such as:
+
+   .. code-block:: console
 
       $ bitbake -c fetch    recipe
       $ bitbake -c cleanall recipe-native
@@ -562,7 +574,9 @@ target. Essentially, the :ref:`ref-tasks-cleansstate` task is identical to the
 shared state (:ref:`sstate <overview-manual/concepts:shared state cache>`)
 cache.
 
-You can run this task using BitBake as follows::
+You can run this task using BitBake as follows:
+
+.. code-block:: console
 
    $ bitbake -c cleansstate recipe
 
@@ -586,7 +600,9 @@ scratch is guaranteed.
 
    The :ref:`ref-tasks-cleansstate` task cannot remove sstate from a remote sstate
    mirror. If you need to build a target from scratch using remote mirrors, use
-   the "-f" option as follows::
+   the "-f" option as follows:
+
+   .. code-block:: console
 
       $ bitbake -f -c do_cleansstate target
 
@@ -725,7 +741,9 @@ changes made by the user with other methods (i.e. using
 (:ref:`ref-tasks-menuconfig`). Once the
 file of differences is created, it can be used to create a config
 fragment that only contains the differences. You can invoke this task
-from the command line as follows::
+from the command line as follows:
+
+.. code-block:: console
 
    $ bitbake linux-yocto -c diffconfig
 
@@ -755,7 +773,9 @@ Validates the configuration produced by the
 configuration does not appear in the final ``.config`` file or when you
 override a policy configuration in a hardware configuration fragment.
 You can run this task explicitly and view the output by using the
-following command::
+following command:
+
+.. code-block:: console
 
    $ bitbake linux-yocto -c kernel_configcheck -f
 
@@ -817,7 +837,9 @@ instead of the default defconfig. The saved defconfig contains the
 differences between the default defconfig and the changes made by the
 user using other methods (i.e. the
 :ref:`ref-tasks-menuconfig` task. You
-can invoke the task using the following command::
+can invoke the task using the following command:
+
+.. code-block:: console
 
    $ bitbake linux-yocto -c savedefconfig
 
diff --git a/documentation/ref-manual/terms.rst b/documentation/ref-manual/terms.rst
index 7ace5a0f96a6..2af9290e3581 100644
--- a/documentation/ref-manual/terms.rst
+++ b/documentation/ref-manual/terms.rst
@@ -26,7 +26,9 @@ universal, the list includes them just in case:
 
       When you name an append file, you can use the "``%``" wildcard character
       to allow for matching recipe names. For example, suppose you have an
-      append file named as follows::
+      append file named as follows:
+
+      .. code-block:: text
 
          busybox_1.21.%.bbappend
 
@@ -144,7 +146,9 @@ universal, the list includes them just in case:
       </bitbake/tree/bin/bitbake-config-build>` command-line utility.
 
       When declared, a built-in fragment follows the following naming
-      convention::
+      convention:
+
+      .. code-block:: text
 
          <fragment>:<variable name>
 
@@ -154,7 +158,9 @@ universal, the list includes them just in case:
       -  ``<variable name>`` is the name of the variable to be modified by this
          fragment.
 
-      For example::
+      For example:
+
+      .. code-block:: text
 
          machine:MACHINE
 
@@ -162,7 +168,9 @@ universal, the list includes them just in case:
       the :term:`MACHINE` variable.
 
       Setting the :term:`MACHINE` variable through this fragment must follow
-      this syntax::
+      this syntax:
+
+      .. code-block:: text
 
          machine/qemux86-64
 
diff --git a/documentation/ref-manual/ubuntu-debian-host-packages-nodocs.rst b/documentation/ref-manual/ubuntu-debian-host-packages-nodocs.rst
index 1c99a9e35124..0ec7677d2b18 100644
--- a/documentation/ref-manual/ubuntu-debian-host-packages-nodocs.rst
+++ b/documentation/ref-manual/ubuntu-debian-host-packages-nodocs.rst
@@ -4,12 +4,16 @@ with a supported Ubuntu or Debian Linux distribution:
 .. literalinclude:: ../tools/host_packages_scripts/ubuntu_essential.sh
    :language: shell
 
-You also need to ensure you have the ``en_US.UTF-8`` locale enabled::
+You also need to ensure you have the ``en_US.UTF-8`` locale enabled:
+
+.. code-block:: console
 
    $ locale --all-locales | grep en_US.utf8
 
 If this is not the case, you can reconfigure the ``locales`` package to add it
-(requires an interactive shell)::
+(requires an interactive shell):
+
+.. code-block:: console
 
    $ sudo dpkg-reconfigure locales
 
@@ -18,7 +22,9 @@ If this is not the case, you can reconfigure the ``locales`` package to add it
    -  If you are not in an interactive shell, ``dpkg-reconfigure`` will
       not work as expected. To add the locale you will need to edit
       ``/etc/locale.gen`` file to add/uncomment the ``en_US.UTF-8`` locale.
-      A simple way to do this as root is::
+      A simple way to do this as root is:
+
+      .. code-block:: console
 
          $ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
          $ locale-gen
@@ -26,7 +32,9 @@ If this is not the case, you can reconfigure the ``locales`` package to add it
    -  If your build system has the ``oss4-dev`` package installed, you
       might experience QEMU build failures due to the package installing
       its own custom ``/usr/include/linux/soundcard.h`` on the Debian
-      system. If you run into this situation, try either of these solutions::
+      system. If you run into this situation, try either of these solutions:
+
+      .. code-block:: console
 
          $ sudo apt build-dep qemu
          $ sudo apt remove oss4-dev
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 88438fd5210a..2a14a663bf51 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -203,7 +203,9 @@ system and gives an overview of their function and contents.
       system. Separate multiple entries using spaces.
 
       As an example, use the following form to add an ``shlib`` provider of
-      shlibname in packagename with the optional version::
+      shlibname in packagename with the optional version:
+
+      .. code-block:: text
 
          shlibname:packagename[_version]
 
@@ -978,7 +980,9 @@ system and gives an overview of their function and contents.
       BitBake remote server.
 
       Use the following format to export the variable to the BitBake
-      environment::
+      environment:
+
+      .. code-block:: console
 
          $ export BBSERVER=localhost:$port
 
@@ -1031,7 +1035,9 @@ system and gives an overview of their function and contents.
    :term:`BP`
       The base recipe name and version but without any special recipe name
       suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
-      comprised of the following::
+      comprised of the following:
+
+      .. code-block:: text
 
          ${BPN}-${PV}
 
@@ -2152,7 +2158,9 @@ system and gives an overview of their function and contents.
       The destination directory. The location in the :term:`Build Directory`
       where components are installed by the
       :ref:`ref-tasks-install` task. This location defaults
-      to::
+      to:
+
+      .. code-block:: text
 
          ${WORKDIR}/image
 
@@ -2646,7 +2654,9 @@ system and gives an overview of their function and contents.
       You can set this directory by defining the :term:`DL_DIR` variable in the
       :ref:`structure-build-conf-local.conf` file. This directory is self-maintaining and you
       should not have to touch it. By default, the directory is
-      ``downloads`` in the :term:`Build Directory`::
+      ``downloads`` in the :term:`Build Directory`:
+
+      .. code-block:: text
 
          #DL_DIR ?= "${TOPDIR}/downloads"
 
@@ -3044,7 +3054,9 @@ system and gives an overview of their function and contents.
       The set list of commands you can configure using the
       :term:`EXTRA_USERS_PARAMS` is shown in the
       :ref:`ref-classes-extrausers` class. These commands map to the normal
-      Unix commands of the same names::
+      Unix commands of the same names:
+
+      .. code-block:: text
 
          # EXTRA_USERS_PARAMS = "\
          # useradd -p '' tester; \
@@ -3059,7 +3071,9 @@ system and gives an overview of their function and contents.
       ``useradd`` or ``usermod``, but only hashed.
 
       Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
-      passwords. First on host, create the (escaped) password hash::
+      passwords. First on host, create the (escaped) password hash:
+
+      .. code-block:: text
 
          printf "%q" $(mkpasswd -m sha256crypt tester01)
 
@@ -3337,7 +3351,9 @@ system and gives an overview of their function and contents.
 
       You can take advantage of this searching behavior in useful ways. For
       example, consider a case where there is the following directory structure
-      for general and machine-specific configurations::
+      for general and machine-specific configurations:
+
+      .. code-block:: text
 
          files/defconfig
          files/MACHINEA/defconfig
@@ -3808,7 +3824,9 @@ system and gives an overview of their function and contents.
 
       -  Use the script file from the U-Boot shell. The name of the script in
          FIT image is ``bootscr-${FIT_UBOOT_ENV}``. This example loads the FIT
-         image from a TFTP server::
+         image from a TFTP server:
+
+         .. code-block:: shell
 
             tftp $loadaddr $fit_tftp_path
             source $loadaddr#bootscr-boot.cmd
@@ -4510,7 +4528,9 @@ system and gives an overview of their function and contents.
    :term:`IMAGE_MANIFEST`
       The manifest file for the image. This file lists all the installed
       packages that make up the image. The file contains package
-      information on a line-per-package basis as follows::
+      information on a line-per-package basis as follows:
+
+      .. code-block:: text
 
           packagename packagearch version
 
@@ -4701,7 +4721,9 @@ system and gives an overview of their function and contents.
       the generated image, a requested size for the image, and requested
       additional free disk space to be added to the image. Programatically,
       the build system determines the final size of the generated image as
-      follows::
+      follows:
+
+      .. code-block:: text
 
          if (image-du * overhead) < rootfs-size:
              internal-rootfs-size = rootfs-size + xspace
@@ -5826,7 +5848,9 @@ system and gives an overview of their function and contents.
       Provides a short description of a configuration fragment. You use
       this variable in the ``.scc`` file that describes a configuration
       fragment file. Here is the variable used in a file named ``smp.scc``
-      to describe SMP being enabled::
+      to describe SMP being enabled:
+
+      .. code-block:: text
 
           define KFEATURE_DESCRIPTION "Enable SMP"
 
@@ -5878,7 +5902,9 @@ system and gives an overview of their function and contents.
 
       -  ``prefer-modules``: prefer a kernel configuration to be set as ``m``
          instead of the default value ``y`` if the kernel configuration was
-         defined as follows::
+         defined as follows:
+
+         .. code-block:: ini
 
             CONFIG_FOO=y # OVERRIDE:$MODULE_OR_Y
 
@@ -6099,7 +6125,9 @@ system and gives an overview of their function and contents.
          LICENSE_FLAGS_DETAILS[FooBar-EULA] = "For further details, see https://example.com/eula."
 
       If ``Foobar-EULA`` isn't in :term:`LICENSE_FLAGS_ACCEPTED`, the
-      error message is more useful::
+      error message is more useful:
+
+      .. code-block:: text
 
         Has a restricted license 'FooBar-EULA' which is not listed in your LICENSE_FLAGS_ACCEPTED.
         For further details, see https://example.com/eula.
@@ -6153,7 +6181,9 @@ system and gives an overview of their function and contents.
       Defining this variable essentially sets the Linux kernel
       configuration item ``CONFIG_LOCALVERSION``, which is visible through
       the ``uname`` command. Here is an example that shows the extension
-      assuming it was set as previously shown::
+      assuming it was set as previously shown:
+
+      .. code-block:: console
 
          $ uname -r
          3.7.0-rc8-custom
@@ -6577,7 +6607,9 @@ system and gives an overview of their function and contents.
       target systems to be put into different subdirectories of the same
       output directory.
 
-      The default value of this variable is::
+      The default value of this variable is:
+
+      .. code-block:: text
 
          ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
 
@@ -6937,7 +6969,9 @@ system and gives an overview of their function and contents.
          Project Development Tasks Manual for more information.
 
    :term:`P`
-      The recipe name and version. :term:`P` is comprised of the following::
+      The recipe name and version. :term:`P` is comprised of the following:
+
+      .. code-block:: text
 
          ${PN}-${PV}
 
@@ -7291,7 +7325,9 @@ system and gives an overview of their function and contents.
       recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
       recipes when you specify features and then arguments that define
       feature behaviors. Here is the basic block structure (broken over
-      multiple lines for readability)::
+      multiple lines for readability):
+
+      .. code-block:: text
 
          PACKAGECONFIG ??= "f1 f2 f3 ..."
          PACKAGECONFIG[f1] = "\
@@ -7375,13 +7411,17 @@ system and gives an overview of their function and contents.
 
       Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
       in which :term:`PACKAGECONFIG` is used to transform the systemd service
-      into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
+      into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`:
+
+      .. code-block:: text
 
          example.c
          example.service
          CMakeLists.txt
 
-      The ``CMakeLists.txt`` file contains::
+      The ``CMakeLists.txt`` file contains:
+
+      .. code-block:: cmake
 
          if(WITH_SYSTEMD)
             install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
@@ -7431,7 +7471,9 @@ system and gives an overview of their function and contents.
 
    :term:`PACKAGES`
       The list of packages the recipe creates. The default value is the
-      following::
+      following:
+
+      .. code-block:: text
 
          ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
 
@@ -7619,7 +7661,9 @@ system and gives an overview of their function and contents.
    :term:`PKGD`
       Points to the destination directory for files to be packaged before
       they are split into individual packages. This directory defaults to
-      the following::
+      the following:
+
+      .. code-block:: text
 
          ${WORKDIR}/package
 
@@ -7631,7 +7675,9 @@ system and gives an overview of their function and contents.
       :ref:`ref-tasks-packagedata` task packages data
       for each recipe and installs it into this shared area.
       This directory defaults to the following, which you should not
-      change::
+      change:
+
+      .. code-block:: text
 
          ${TMPDIR}/pkgdata/${MACHINE}
 
@@ -7644,7 +7690,9 @@ system and gives an overview of their function and contents.
    :term:`PKGDEST`
       Points to the parent directory for files to be packaged after they
       have been split into individual packages. This directory defaults to
-      the following::
+      the following:
+
+      .. code-block:: text
 
          ${WORKDIR}/packages-split
 
@@ -7655,7 +7703,9 @@ system and gives an overview of their function and contents.
    :term:`PKGDESTWORK`
       Points to a temporary work area where the
       :ref:`ref-tasks-package` task saves package metadata.
-      The :term:`PKGDESTWORK` location defaults to the following::
+      The :term:`PKGDESTWORK` location defaults to the following:
+
+      .. code-block:: text
 
          ${WORKDIR}/pkgdata
 
@@ -8912,7 +8962,9 @@ system and gives an overview of their function and contents.
       As an example, assume a :term:`Source Directory`
       top-level folder named ``bitbake-builds`` and a default :term:`Build Directory` at
       ``bitbake-builds/build``. In this case, the work directory the build system
-      uses to keep the unpacked recipe for ``db`` is the following::
+      uses to keep the unpacked recipe for ``db`` is the following:
+
+      .. code-block:: text
 
          bitbake-builds/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/sources/db-5.1.19
 
@@ -9067,7 +9119,9 @@ system and gives an overview of their function and contents.
       The manifest file for the host part of the SDK. This file lists all
       the installed packages that make up the host part of the SDK. The
       file contains package information on a line-per-package basis as
-      follows::
+      follows:
+
+      .. code-block:: text
 
          packagename packagearch version
 
@@ -9198,7 +9252,9 @@ system and gives an overview of their function and contents.
       The manifest file for the target part of the SDK. This file lists all
       the installed packages that make up the target part of the SDK. The
       file contains package information on a line-per-package basis as
-      follows::
+      follows:
+
+      .. code-block:: text
 
          packagename packagearch version
 
@@ -9278,7 +9334,9 @@ system and gives an overview of their function and contents.
 
    :term:`SDKIMAGE_FEATURES`
       Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
-      the SDK generated from an image using the following command::
+      the SDK generated from an image using the following command:
+
+      .. code-block:: console
 
          $ bitbake -c populate_sdk imagename
 
@@ -9406,7 +9464,9 @@ system and gives an overview of their function and contents.
 
        SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
 
-     You can obtain the signature of all the tasks for the recipe ``bc`` using::
+     You can obtain the signature of all the tasks for the recipe ``bc`` using:
+
+     .. code-block:: console
 
        $ bitbake -S none bc
 
@@ -9556,14 +9616,18 @@ system and gives an overview of their function and contents.
 
          The recommended way to do that is by setting the following parameters
          in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
-         directory)::
+         directory):
+
+         .. code-block:: text
 
             machine example.com
             login <user>
             password <password>
 
          This file requires permissions set to ``400`` or ``600`` to prevent
-         other users from reading the file::
+         other users from reading the file:
+
+         .. code-block:: console
 
             $ chmod 600 "$HOME/.netrc"
 
@@ -9637,7 +9701,9 @@ system and gives an overview of their function and contents.
          ANNOTATION2 = "Second annotation for recipe"
          SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
 
-      This will add a new block to the recipe ``.sdpx.json`` output::
+      This will add a new block to the recipe ``.sdpx.json`` output:
+
+      .. code-block:: json
 
          "annotations": [
            {
@@ -10080,7 +10146,9 @@ system and gives an overview of their function and contents.
 
       To make such a change, it is recommended to customize the
       ``psplash`` recipe in a custom layer. Here is an example structure for
-      an ``ACME`` board::
+      an ``ACME`` board:
+
+      .. code-block:: text
 
           meta-acme/recipes-core/psplash
           ├── files
@@ -11347,7 +11415,9 @@ system and gives an overview of their function and contents.
       packages specified by this variable are part of the toolchain set
       that runs on the :term:`SDKMACHINE`, and each
       package should usually have the prefix ``nativesdk-``. For example,
-      consider the following command when building an SDK::
+      consider the following command when building an SDK:
+
+      .. code-block:: console
 
          $ bitbake -c populate_sdk imagename
 
@@ -11612,7 +11682,9 @@ system and gives an overview of their function and contents.
          UBOOT_CONFIG_BINARY[bar] = "binary2"
 
       It specifies the binary to select as the one to deploy in :term:`DEPLOY_DIR_IMAGE`.
-      The output of a U-Boot build may be more than one binary, for example::
+      The output of a U-Boot build may be more than one binary, for example:
+
+      .. code-block:: text
 
          u-boot.bin
          u-boot-with-spl.bin
@@ -12855,7 +12927,9 @@ system and gives an overview of their function and contents.
       :term:`TMPDIR` directory structure and is specific to
       the recipe being built and the system for which it is being built.
 
-      The :term:`WORKDIR` directory is defined as follows::
+      The :term:`WORKDIR` directory is defined as follows:
+
+      .. code-block:: text
 
          ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
 
@@ -12874,7 +12948,9 @@ system and gives an overview of their function and contents.
       ``qemux86-poky-linux`` machine target system. Furthermore, suppose
       your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
       directory the build system uses to build the package would be as
-      follows::
+      follows:
+
+      .. code-block:: text
 
          bitbake-builds/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
 
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 10/16] security-manual: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (8 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 09/16] ref-manual: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 11/16] test-manual: " Trevor Woerner
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/security-manual/vulnerabilities.rst | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/documentation/security-manual/vulnerabilities.rst b/documentation/security-manual/vulnerabilities.rst
index 38fbd2c7e358..8525464b90a5 100644
--- a/documentation/security-manual/vulnerabilities.rst
+++ b/documentation/security-manual/vulnerabilities.rst
@@ -224,7 +224,9 @@ Modify the patch adding OE-related metadata. We will follow the example of the
 ``CVE-2022-3341.patch``.
 
 The original `commit message <https://github.com/FFmpeg/FFmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e.patch/>`__
-is::
+is:
+
+.. code-block:: diff
 
    From 9cf652cef49d74afe3d454f27d49eb1a1394951e Mon Sep 17 00:00:00 2001
    From: Jiasheng Jiang <jiasheng@iscas.ac.cn>
@@ -242,7 +244,9 @@ is::
 
 For the correct operations of :ref:`ref-classes-sbom-cve-check`, it requires the CVE
 identification in a ``CVE:`` tag of the patch file commit message using
-the format::
+the format:
+
+.. code-block:: text
 
    CVE: CVE-2022-3341
 
@@ -251,7 +255,9 @@ to the original patch and sign-off by people working on the backport.
 If there are any modifications to the original patch, note them in
 the ``Comments:`` tag.
 
-With the additional information, the header of the patch file in OE-core becomes::
+With the additional information, the header of the patch file in OE-core becomes:
+
+.. code-block:: diff
 
    From 9cf652cef49d74afe3d454f27d49eb1a1394951e Mon Sep 17 00:00:00 2001
    From: Jiasheng Jiang <jiasheng@iscas.ac.cn>
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 11/16] test-manual: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (9 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 10/16] security-manual: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 12/16] toaster-manual: " Trevor Woerner
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/test-manual/intro.rst           | 72 ++++++++++++++-----
 documentation/test-manual/ptest.rst           | 12 +++-
 .../test-manual/reproducible-builds.rst       |  4 +-
 documentation/test-manual/runtime-testing.rst | 36 +++++++---
 .../test-manual/understand-autobuilder.rst    | 20 ++++--
 5 files changed, 108 insertions(+), 36 deletions(-)

diff --git a/documentation/test-manual/intro.rst b/documentation/test-manual/intro.rst
index 2512db79e26e..14c007b6976e 100644
--- a/documentation/test-manual/intro.rst
+++ b/documentation/test-manual/intro.rst
@@ -113,7 +113,9 @@ the following types of tests:
    ensure we have no single point of failure and can ensure the
    different distros work effectively.
 
--  *eSDK Testing:* Image tests initiated through the following command::
+-  *eSDK Testing:* Image tests initiated through the following command:
+
+   .. code-block:: console
 
       $ bitbake image -c testsdkext
 
@@ -124,7 +126,9 @@ the following types of tests:
    :ref:`OpenEmbedded Self test (oe-selftest) <ref-manual/release-process:Testing and Quality Assurance>`. We test oe-selftest on each of the main distributions
    we support.
 
--  *Image Testing:* Image tests initiated through the following command::
+-  *Image Testing:* Image tests initiated through the following command:
+
+   .. code-block:: console
 
       $ bitbake image -c testimage
 
@@ -146,7 +150,9 @@ the following types of tests:
    ":yocto_wiki:`Ptest </Ptest>`" Wiki page for more
    information on Ptest.
 
--  *SDK Testing:* Image tests initiated through the following command::
+-  *SDK Testing:* Image tests initiated through the following command:
+
+   .. code-block:: console
 
       $ bitbake image -c testsdk
 
@@ -175,21 +181,29 @@ Tests map into the codebase as follows:
 
    Some of these tests run the ``bitbake`` command, so ``bitbake/bin``
    must be added to the ``PATH`` before running ``bitbake-selftest``.
-   From within the BitBake repository, run the following::
+   From within the BitBake repository, run the following:
+
+   .. code-block:: console
 
       $ export PATH=$PWD/bin:$PATH
 
-   After that, you can run the selftest script::
+   After that, you can run the selftest script:
+
+   .. code-block:: console
 
       $ bitbake-selftest
 
    The default output is quiet and just prints a summary of what was
-   run. To see more information, there is a verbose option::
+   run. To see more information, there is a verbose option:
+
+   .. code-block:: console
 
       $ bitbake-selftest -v
 
    To skip tests that access the Internet, use the ``BB_SKIP_NETTESTS``
-   variable when running ``bitbake-selftest`` as follows::
+   variable when running ``bitbake-selftest`` as follows:
+
+   .. code-block:: console
 
       $ BB_SKIP_NETTESTS=yes bitbake-selftest
 
@@ -197,12 +211,16 @@ Tests map into the codebase as follows:
    which are mostly necessary to test the fetcher modules. To specify
    individual test modules to run, append the test module name to the
    ``bitbake-selftest`` command. For example, to specify the tests for
-   ``bb.tests.data.DataExpansions``, run::
+   ``bb.tests.data.DataExpansions``, run:
+
+   .. code-block:: console
 
       $ bitbake-selftest bb.tests.data.DataExpansions
 
    You can also specify individual tests by defining the full name and module
-   plus the class path of the test, for example::
+   plus the class path of the test, for example:
+
+   .. code-block:: console
 
       $ bitbake-selftest bb.tests.data.DataExpansions.test_one_var
 
@@ -226,23 +244,31 @@ Tests map into the codebase as follows:
    -  The code for the tests resides in
       ``meta/lib/oeqa/selftest/cases/``.
 
-   -  To run all the tests, enter the following command::
+   -  To run all the tests, enter the following command:
+
+      .. code-block:: console
 
          $ oe-selftest -a
 
    -  To run a specific test, use the following command form where
-      ``testname`` is the name of the specific test::
+      ``testname`` is the name of the specific test:
+
+      .. code-block:: console
 
          $ oe-selftest -r <testname>
 
       For example, the following command would run the ``tinfoil``
-      ``getVar`` API test::
+      ``getVar`` API test:
+
+      .. code-block:: console
 
          $ oe-selftest -r tinfoil.TinfoilTests.test_getvar
 
       It is also possible to run a set
       of tests. For example the following command will run all of the
-      ``tinfoil`` tests::
+      ``tinfoil`` tests:
+
+      .. code-block:: console
 
          $ oe-selftest -r tinfoil
 
@@ -257,7 +283,9 @@ Tests map into the codebase as follows:
 
          IMAGE_CLASSES += "testimage"
 
-   -  Run the tests using the following command form::
+   -  Run the tests using the following command form:
+
+      .. code-block:: console
 
          $ bitbake image -c testimage
 
@@ -268,7 +296,9 @@ Tests map into the codebase as follows:
 
    -  The code for these tests resides in ``meta/lib/oeqa/sdk/cases/``.
 
-   -  Run the test using the following command form::
+   -  Run the test using the following command form:
+
+      .. code-block:: console
 
          $ bitbake image -c testsdk
 
@@ -279,7 +309,9 @@ Tests map into the codebase as follows:
 
    -  The code for these tests resides in ``meta/lib/oeqa/sdkext/cases/``.
 
-   -  To run the tests, use the following command form::
+   -  To run the tests, use the following command form:
+
+      .. code-block:: console
 
          $ bitbake image -c testsdkext
 
@@ -290,7 +322,9 @@ Tests map into the codebase as follows:
 
    -  The code for these tests resides in ``meta/lib/oeqa/buildperf``.
 
-   -  To run the tests, use the following command form::
+   -  To run the tests, use the following command form:
+
+      .. code-block:: console
 
          $ oe-build-perf-test <options>
 
@@ -492,7 +526,9 @@ working correctly. The test would only run if Python3 is installed in the SDK.
 
 The performance tests usually measure how long operations take and the
 resource utilization as that happens. An example from
-``meta/lib/oeqa/buildperf/test_basic.py`` contains the following::
+``meta/lib/oeqa/buildperf/test_basic.py`` contains the following:
+
+.. code-block:: python
 
    class Test3(BuildPerfTestCase):
       def test3(self):
diff --git a/documentation/test-manual/ptest.rst b/documentation/test-manual/ptest.rst
index 2b86722145da..7b097c606a8b 100644
--- a/documentation/test-manual/ptest.rst
+++ b/documentation/test-manual/ptest.rst
@@ -13,7 +13,9 @@ hand, the test can be anything from a simple shell script that runs a
 binary and checks the output to an elaborate system of test binaries and
 data files.
 
-The test generates output in the format used by Automake::
+The test generates output in the format used by Automake:
+
+.. code-block:: text
 
    result: testname
 
@@ -117,7 +119,9 @@ test. Here is what you have to do for each recipe:
    script where you will refer to it using
    :term:`SRC_URI`. Be sure ``run-ptest`` exits with 0 to mark it
    as successfully executed otherwise will be marked as fail.
-   Here is an example that starts a test for ``dbus``::
+   Here is an example that starts a test for ``dbus``:
+
+   .. code-block:: shell
 
       #!/bin/sh
       cd test
@@ -129,7 +133,9 @@ test. Here is what you have to do for each recipe:
 
 -  *Make sure the test prints at least one test result*: The execution of the
    ``run-ptest`` script must result in at least one test result output on the
-   console, with the following format::
+   console, with the following format:
+
+   .. code-block:: text
 
       result: testname
 
diff --git a/documentation/test-manual/reproducible-builds.rst b/documentation/test-manual/reproducible-builds.rst
index 4e39cf3f79d8..f3ea8c3a7666 100644
--- a/documentation/test-manual/reproducible-builds.rst
+++ b/documentation/test-manual/reproducible-builds.rst
@@ -87,7 +87,9 @@ it always depends upon the paths it is built in.
    classes, etc.
 
 To run our automated selftest, as we use in our CI on the Autobuilder, you can
-run::
+run:
+
+.. code-block:: console
 
    $ oe-selftest -r reproducible.ReproducibleTests.test_reproducible_builds
 
diff --git a/documentation/test-manual/runtime-testing.rst b/documentation/test-manual/runtime-testing.rst
index 5a7193f015b4..1102a683e15e 100644
--- a/documentation/test-manual/runtime-testing.rst
+++ b/documentation/test-manual/runtime-testing.rst
@@ -56,7 +56,9 @@ In order to run tests, you need to do the following:
          -  Ensure that your host has the package ``iptables`` installed.
 
          -  The package recipe ``qemu-helper-native`` is required to run
-            this script. Build the package using the following command::
+            this script. Build the package using the following command:
+
+            .. code-block:: console
 
                $ bitbake qemu-helper-native
 
@@ -230,7 +232,9 @@ The final thing you need to do when setting :term:`TEST_TARGET` to
       TEST_TARGET = "SystemdbootTarget"
       TEST_TARGET_IP = "192.168.2.3"
 
-#. *Build your test image:* Use BitBake to build the image::
+#. *Build your test image:* Use BitBake to build the image:
+
+   .. code-block:: console
 
       $ bitbake core-image-sato
 
@@ -324,7 +328,9 @@ You can start the tests automatically or manually:
       TESTIMAGE_AUTO = "1"
 
    Next, build your image. If the image successfully builds, the
-   tests run::
+   tests run:
+
+   .. code-block:: console
 
       $ bitbake core-image-sato
 
@@ -334,7 +340,9 @@ You can start the tests automatically or manually:
 
       IMAGE_CLASSES += "testimage"
 
-   Next, use BitBake to run the tests::
+   Next, use BitBake to run the tests:
+
+   .. code-block:: console
 
       $ bitbake -c testimage image
 
@@ -408,7 +416,9 @@ If your image is already built, make sure the following are set in your
    TEST_SERVER_IP = "IP-address-for-the-test-server"
 
 You can then export the tests with the
-following BitBake command form::
+following BitBake command form:
+
+.. code-block:: console
 
    $ bitbake image -c testexport
 
@@ -416,7 +426,9 @@ Exporting the tests places them in the :term:`Build Directory` in
 ``tmp/testimage/``\ image, which is controlled by the :term:`TEST_EXPORT_DIR`
 variable.
 
-You can now run the tests outside of the build environment::
+You can now run the tests outside of the build environment:
+
+.. code-block:: console
 
    $ cd tmp/testimage/image
    $ ./oe-test runtime
@@ -433,12 +445,16 @@ Here is a complete example that shows IP addresses and uses the
    TEST_TARGET_IP = "192.168.7.2"
    TEST_SERVER_IP = "192.168.7.1"
 
-Use BitBake to export the tests::
+Use BitBake to export the tests:
+
+.. code-block:: console
 
    $ bitbake core-image-sato -c testexport
 
 Run the tests outside of
-the build environment using the following::
+the build environment using the following:
+
+.. code-block:: console
 
    $ cd tmp/testimage/core-image-sato
    $ ./oe-test runtime
@@ -580,7 +596,9 @@ data:
 
 Here is an example JSON file that handles test "foo" installing
 package "bar" and test "foobar" installing packages "foo" and "bar".
-Once the test is complete, the packages are removed from the DUT::
+Once the test is complete, the packages are removed from the DUT:
+
+.. code-block:: json
 
      {
          "foo": {
diff --git a/documentation/test-manual/understand-autobuilder.rst b/documentation/test-manual/understand-autobuilder.rst
index e6549060765b..c05198f43105 100644
--- a/documentation/test-manual/understand-autobuilder.rst
+++ b/documentation/test-manual/understand-autobuilder.rst
@@ -20,7 +20,9 @@ each of those targets on a separate buildbot worker. To understand the
 configuration, you need to look at the entry on ``config.json`` file
 within the :yocto_git:`yocto-autobuilder-helper </yocto-autobuilder-helper>`
 repository. The targets are defined in the ``overrides`` section, a quick
-example could be ``qemux86-64`` which looks like::
+example could be ``qemux86-64`` which looks like:
+
+.. code-block:: text
 
    "qemux86-64" : {
          "MACHINE" : "qemux86-64",
@@ -33,7 +35,9 @@ example could be ``qemux86-64`` which looks like::
    },
 
 And to expand that, you need the ``arch-qemu`` entry from
-the ``templates`` section, which looks like::
+the ``templates`` section, which looks like:
+
+.. code-block:: text
 
    "arch-qemu" : {
          "BUILDINFO" : true,
@@ -276,18 +280,24 @@ The standard ``config.json`` minimally attempts to allow substitution of
 the paths. The Helper script repository includes a
 ``local-example.json`` file to show how you could override these from a
 separate configuration file. Pass the following into the environment of
-the Autobuilder::
+the Autobuilder:
+
+.. code-block:: console
 
    $ ABHELPER_JSON="config.json local-example.json"
 
 As another example, you could also pass the following into the
-environment::
+environment:
+
+.. code-block:: console
 
    $ ABHELPER_JSON="config.json /some/location/local.json"
 
 One issue users often run into is validation of the ``config.json`` files. A
 tip for minimizing issues from invalid JSON files is to use a Git
 ``pre-commit-hook.sh`` script to verify the JSON file before committing
-it. Create a symbolic link as follows::
+it. Create a symbolic link as follows:
+
+.. code-block:: console
 
    $ ln -s ../../scripts/pre-commit-hook.sh .git/hooks/pre-commit
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 12/16] toaster-manual: state the language of the blocks that are not BitBake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (10 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 11/16] test-manual: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 13/16] docs: show the examples the BitBake lexer misreads as text Trevor Woerner
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals are moving to a default of bitbake for code blocks, so a
BitBake block needs no language and every other block needs one. This
gives the blocks in this manual that are not BitBake their language.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/toaster-manual/reference.rst    |  26 +++-
 .../toaster-manual/setup-and-use.rst          | 132 +++++++++++++-----
 documentation/toaster-manual/start.rst        |  16 ++-
 3 files changed, 130 insertions(+), 44 deletions(-)

diff --git a/documentation/toaster-manual/reference.rst b/documentation/toaster-manual/reference.rst
index d0c63a084fc8..01052b34f792 100644
--- a/documentation/toaster-manual/reference.rst
+++ b/documentation/toaster-manual/reference.rst
@@ -89,7 +89,9 @@ Use the Administration Interface
 Access the administration interface through a browser by entering the
 URL of your Toaster instance and adding "``/admin``" to the end of the
 URL. As an example, if you are running Toaster locally, use the
-following URL::
+following URL:
+
+.. code-block:: text
 
    http://127.0.0.1:8000/admin
 
@@ -380,7 +382,9 @@ Checking Health
 
 Before you use remote Toaster monitoring, you should do a health check.
 To do this, ping the Toaster server using the following call to see if
-it is still alive::
+it is still alive:
+
+.. code-block:: text
 
    http://host:port/health
 
@@ -399,7 +403,9 @@ Determining Status of Builds in Progress
 ----------------------------------------
 
 Sometimes it is useful to determine the status of a build in progress.
-To get the status of pending builds, use the following call::
+To get the status of pending builds, use the following call:
+
+.. code-block:: text
 
    http://host:port/toastergui/api/building
 
@@ -434,7 +440,9 @@ Checking Status of Builds Completed
 -----------------------------------
 
 Once a build is completed, you get the status when you use the following
-call::
+call:
+
+.. code-block:: text
 
    http://host:port/toastergui/api/builds
 
@@ -468,7 +476,9 @@ Determining Status of a Specific Build
 --------------------------------------
 
 Sometimes it is useful to determine the status of a specific build. To
-get the status of a specific build, use the following call::
+get the status of a specific build, use the following call:
+
+.. code-block:: text
 
    http://host:port/toastergui/api/build/ID
 
@@ -556,7 +566,9 @@ example that assumes default repository and :term:`Build Directory` names:
 
 If your Toaster database had only one build, the above
 :ref:`toaster-manual/reference:``buildslist```
-command would return something like the following::
+command would return something like the following:
+
+.. code-block:: text
 
    1: qemux86 poky core-image-minimal
 
@@ -566,7 +578,7 @@ command would return something like the following::
 The ``builddelete`` command deletes data associated with a build. Access
 the command as follows:
 
-.. code-block::
+.. code-block:: console
 
    $ bitbake/lib/toaster/manage.py builddelete build_id
 
diff --git a/documentation/toaster-manual/setup-and-use.rst b/documentation/toaster-manual/setup-and-use.rst
index c8ec8e91ee38..66469434dbd5 100644
--- a/documentation/toaster-manual/setup-and-use.rst
+++ b/documentation/toaster-manual/setup-and-use.rst
@@ -15,16 +15,22 @@ Toaster`" chapter, you are ready to start
 Toaster.
 
 Navigate to the root of your
-:term:`Source Directory` (e.g. ``poky``)::
+:term:`Source Directory` (e.g. ``poky``):
+
+.. code-block:: console
 
    $ cd poky
 
-Once in that directory, source the build environment script::
+Once in that directory, source the build environment script:
+
+.. code-block:: console
 
    $ source oe-init-build-env
 
 Next, from the :term:`Build Directory` (e.g. ``poky/build``), start Toaster
-using this command::
+using this command:
+
+.. code-block:: console
 
    $ source toaster start
 
@@ -33,7 +39,9 @@ as explained in section
 ":ref:`toaster-manual/setup-and-use:using the toaster web interface`".
 
 To access the Toaster web interface, open your favorite browser and
-enter the following::
+enter the following:
+
+.. code-block:: text
 
    http://127.0.0.1:8000
 
@@ -42,7 +50,9 @@ Setting a Different Port
 
 By default, Toaster starts on port 8000. You can use the ``WEBPORT``
 parameter to set a different port. For example, the following command
-sets the port to "8400"::
+sets the port to "8400":
+
+.. code-block:: console
 
    $ source toaster start webport=8400
 
@@ -69,7 +79,9 @@ Toaster environment. Before closing the environment, however, you should
 allow a few minutes to ensure the complete transfer of its BitBake build
 statistics to the Toaster database. If you have a separate Toaster web
 server instance running, you can watch this command-line build's
-progress and examine the results as soon as they are posted::
+progress and examine the results as soon as they are posted:
+
+.. code-block:: console
 
    $ source toaster start noweb
    $ bitbake target
@@ -87,7 +99,9 @@ disabled. Doing so is useful for the following:
 -  Allowing only local command-line builds to be captured into the
    Toaster database.
 
-Use the following command to set up Toaster without a build server::
+Use the following command to set up Toaster without a build server:
+
+.. code-block:: console
 
    $ source toaster start nobuild webport=port
 
@@ -101,11 +115,15 @@ to the network, specifically the IP address that your NIC uses to
 connect to the network. You can also bind to all IP addresses the
 computer supports by using the shortcut "0.0.0.0:port".
 
-The following example binds to all IP addresses on the host::
+The following example binds to all IP addresses on the host:
+
+.. code-block:: console
 
    $ source toaster start webport=0.0.0.0:8400
 
-This example binds to a specific IP address on the host's NIC::
+This example binds to a specific IP address on the host's NIC:
+
+.. code-block:: console
 
    $ source toaster start webport=192.168.1.1:8400
 
@@ -147,13 +165,17 @@ superuser by following these steps:
 #. If you used ``pip3``, which is recommended, to set up the Toaster
    system dependencies, you need be sure the local user path is in your
    ``PATH`` list. To append the pip3 local user path, use the following
-   command::
+   command:
+
+   .. code-block:: console
 
       $ export PATH=$PATH:$HOME/.local/bin
 
 #. From the directory containing the Toaster database, which by default
    is the :term:`Build Directory`, invoke the ``createsuperuser`` command from
-   ``manage.py``::
+   ``manage.py``:
+
+   .. code-block:: console
 
       $ cd poky/build
       $ ../bitbake/lib/toaster/manage.py createsuperuser
@@ -167,14 +189,18 @@ superuser by following these steps:
 #. Django prompts you to re-enter your password for verification.
 
 After completing these steps, the following confirmation message
-appears::
+appears:
+
+.. code-block:: text
 
    Superuser created successfully.
 
 Creating a superuser allows you to access the Django administration
 interface through a browser. The URL for this interface is the same as
 the URL used for the Toaster instance with "/admin" on the end. For
-example, if you are running Toaster locally, use the following URL::
+example, if you are running Toaster locally, use the following URL:
+
+.. code-block:: text
 
    http://127.0.0.1:8000/admin
 
@@ -209,16 +235,22 @@ Be sure you meet the following requirements:
 
 -  Use the Mysql database server.
 
--  If you are using Ubuntu, run the following::
+-  If you are using Ubuntu, run the following:
+
+   .. code-block:: console
 
       $ sudo apt install apache2 libapache2-mod-wsgi-py3 mysql-server python3-pip libmysqlclient-dev
 
 -  If you are using Fedora or a RedHat distribution, run the
-   following::
+   following:
+
+   .. code-block:: console
 
       $ sudo dnf install httpd python3-mod_wsgi python3-pip mariadb-server mariadb-devel python3-devel
 
--  If you are using openSUSE, run the following::
+-  If you are using openSUSE, run the following:
+
+   .. code-block:: console
 
       $ sudo zypper install apache2 apache2-mod_wsgi-python3 python3-pip mariadb mariadb-client python3-devel
 
@@ -228,19 +260,25 @@ Installation
 Perform the following steps to install Toaster:
 
 #.  Create toaster user and set its home directory to
-    ``/var/www/toaster``::
+    ``/var/www/toaster``:
+
+    .. code-block:: console
 
       $ sudo /usr/sbin/useradd toaster -md /var/www/toaster -s /bin/false
       $ sudo su - toaster -s /bin/bash
 
 #.  Checkout a copy of ``poky`` into the web server directory. You will
-    be using ``/var/www/toaster``::
+    be using ``/var/www/toaster``:
+
+    .. code-block:: console
 
       $ git clone https://git.yoctoproject.org/poky
       $ git checkout &DISTRO_NAME_NO_CAP;
 
 #.  Install Toaster dependencies using the ``--user`` flag which keeps the
-    Python packages isolated from your system-provided packages::
+    Python packages isolated from your system-provided packages:
+
+    .. code-block:: console
 
       $ cd /var/www/toaster/
       $ pip3 install --user -r ./poky/bitbake/toaster-requirements.txt
@@ -287,7 +325,9 @@ Perform the following steps to install Toaster:
 
          STATIC_ROOT = '/var/www/toaster/static_files/'
 
-#.  Add the database and user to the ``mysql`` server defined earlier::
+#.  Add the database and user to the ``mysql`` server defined earlier:
+
+    .. code-block:: console
 
       $ mysql -u root -p
       mysql> CREATE DATABASE toaster_data;
@@ -296,7 +336,9 @@ Perform the following steps to install Toaster:
       mysql> quit
 
 #.  Get Toaster to create the database schema, default data, and gather
-    the statically-served files::
+    the statically-served files:
+
+    .. code-block:: console
 
       $ cd /var/www/toaster/poky/
       $ ./bitbake/lib/toaster/manage.py migrate
@@ -320,12 +362,16 @@ Perform the following steps to install Toaster:
     the location of the Toaster :term:`Build Directory`. The Toaster
     root directory ``TOASTER_DIR`` determines where the Toaster build
     directory is created on the file system. In the example above,
-    ``TOASTER_DIR`` is set as follows::
+    ``TOASTER_DIR`` is set as follows:
+
+    .. code-block:: text
 
        /var/www/toaster/poky
 
 
-    This setting causes the Toaster :term:`Build Directory` to be::
+    This setting causes the Toaster :term:`Build Directory` to be:
+
+    .. code-block:: text
 
        /var/www/toaster/poky/build
 
@@ -341,7 +387,9 @@ Perform the following steps to install Toaster:
     from the Layer Index is complete.
 
     To start the default Toaster Django web server with the Toaster
-    database now in Mysql, use the standard start commands::
+    database now in Mysql, use the standard start commands:
+
+    .. code-block:: console
 
       $ source oe-init-build-env
       $ source toaster start
@@ -352,16 +400,22 @@ Perform the following steps to install Toaster:
 
 #.  Add an Apache configuration file for Toaster to your Apache web
     server's configuration directory. If you are using Ubuntu or Debian,
-    put the file here::
+    put the file here:
+
+    .. code-block:: text
 
       /etc/apache2/conf-available/toaster.conf
 
 
-    If you are using Fedora or RedHat, put it here::
+    If you are using Fedora or RedHat, put it here:
+
+    .. code-block:: text
 
       /etc/httpd/conf.d/toaster.conf
 
-    If you are using openSUSE, put it here::
+    If you are using openSUSE, put it here:
+
+    .. code-block:: text
 
       /etc/apache2/conf.d/toaster.conf
 
@@ -394,18 +448,24 @@ Perform the following steps to install Toaster:
 
 
     If you are using Ubuntu or Debian, you will need to enable the config and
-    module for Apache::
+    module for Apache:
+
+    .. code-block:: console
 
       $ sudo a2enmod wsgi
       $ sudo a2enconf toaster
       $ chmod +x bitbake/lib/toaster/toastermain/wsgi.py
 
     Finally, restart Apache to make sure all new configuration is loaded. For Ubuntu,
-    Debian, and openSUSE use::
+    Debian, and openSUSE use:
+
+    .. code-block:: console
 
       $ sudo service apache2 restart
 
-    For Fedora and RedHat use::
+    For Fedora and RedHat use:
+
+    .. code-block:: console
 
       $ sudo service httpd restart
 
@@ -429,7 +489,9 @@ Perform the following steps to install Toaster:
 
     Prepare the ``runbuilds-service.sh`` script that you need to place in the
     ``/var/www/toaster/poky/bitbake/lib/toaster/`` directory by setting
-    up executable permissions::
+    up executable permissions:
+
+    .. code-block:: shell
 
       #!/bin/bash
 
@@ -441,12 +503,16 @@ Perform the following steps to install Toaster:
       source ../bitbake/bin/toaster $1 noweb
       [ "$1" == 'start' ] && /bin/bash
 
-#.  Run the service::
+#.  Run the service:
+
+    .. code-block:: console
 
        $ sudo service runbuilds start
 
     Since the service is running in a detached screen session, you can
-    attach to it using this command::
+    attach to it using this command:
+
+    .. code-block:: console
 
        $ sudo su - toaster
        $ screen -rS runbuilds
diff --git a/documentation/toaster-manual/start.rst b/documentation/toaster-manual/start.rst
index 2d6474852a89..bb42f296b585 100644
--- a/documentation/toaster-manual/start.rst
+++ b/documentation/toaster-manual/start.rst
@@ -16,7 +16,9 @@ Before you can use Toaster, you need to first set up your build system
 to run the Yocto Project. To do this, follow the instructions in the
 ":ref:`dev-manual/start:preparing the build host`" section of
 the Yocto Project Development Tasks Manual. For Ubuntu/Debian, you might
-also need to do an additional install of pip3. ::
+also need to do an additional install of pip3.
+
+.. code-block:: console
 
    $ sudo apt install python3-pip
 
@@ -35,17 +37,23 @@ Install Toaster Packages
 ------------------------
 
 You need to install the packages that Toaster requires. Use this
-command::
+command:
+
+.. code-block:: console
 
    $ pip3 install --user -r bitbake/toaster-requirements.txt
 
 The previous command installs the necessary Toaster modules into a local
 Python 3 cache in your ``$HOME`` directory. The caches is actually
 located in ``$HOME/.local``. To see what packages have been installed
-into your ``$HOME`` directory, do the following::
+into your ``$HOME`` directory, do the following:
+
+.. code-block:: console
 
    $ pip3 list installed --local
 
-If you need to remove something, the following works::
+If you need to remove something, the following works:
+
+.. code-block:: console
 
    $ pip3 uninstall PackageNameToUninstall
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 13/16] docs: show the examples the BitBake lexer misreads as text
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (11 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 12/16] toaster-manual: " Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 14/16] docs: drop the file-wide highlight directives Trevor Woerner
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

Pygments' BitBake lexer reports errors in a few valid BitBake examples,
which would fail the build once BitBake is the default highlight
language. Show them as text, each with a comment saying why, so they can
be switched back once the lexer reads them.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/ref-manual/classes.rst   |  6 +++++-
 documentation/ref-manual/variables.rst | 30 +++++++++++++++++++++-----
 2 files changed, 30 insertions(+), 6 deletions(-)

diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 130cbea321e1..49c48b5e5990 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -679,7 +679,11 @@ See :oe_git:`devicetree.bbclass sources
 for further variables controlling this class.
 
 Here is an excerpt of an example ``recipes-kernel/linux/devicetree-acme.bb``
-recipe inheriting this class::
+recipe inheriting this class:
+
+.. Shown as text: the Pygments BitBake lexer misreads this block.
+
+.. code-block:: text
 
    inherit devicetree
    COMPATIBLE_MACHINE = "^mymachine$"
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 2a14a663bf51..9e956a42f0f0 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -1690,7 +1690,11 @@ system and gives an overview of their function and contents.
       with the current machine.
 
       If one wants to have a recipe only available for some architectures
-      (here ``aarch64`` and ``mips64``), the following can be used::
+      (here ``aarch64`` and ``mips64``), the following can be used:
+
+      .. Shown as text: the Pygments BitBake lexer misreads this block.
+
+      .. code-block:: text
 
          COMPATIBLE_MACHINE = "^$"
          COMPATIBLE_MACHINE:arch64 = "^(aarch64)$"
@@ -1705,7 +1709,11 @@ system and gives an overview of their function and contents.
       The third is for matching all machines whose :term:`MACHINEOVERRIDES`
       contains one override which is exactly ``mips64``.
 
-      The same could be achieved with::
+      The same could be achieved with:
+
+      .. Shown as text: the Pygments BitBake lexer misreads this block.
+
+      .. code-block:: text
 
          COMPATIBLE_MACHINE = "^(aarch64|mips64)$"
 
@@ -9728,7 +9736,11 @@ system and gives an overview of their function and contents.
 
       By default this variable is empty, meaning no files are excluded.
 
-      Example usage::
+      Example usage:
+
+      .. Shown as text: the Pygments BitBake lexer misreads this block.
+
+      .. code-block:: text
 
          SPDX_FILE_EXCLUDE_PATTERNS = "\\.patch$ \\.diff$ /test/ \\.pyc$ \\.o$"
 
@@ -11580,7 +11592,11 @@ system and gives an overview of their function and contents.
       are not conflicting and that they are supported.
 
       The BitBake configuration file (``meta/conf/bitbake.conf``) defines
-      :term:`TUNE_FEATURES` as follows::
+      :term:`TUNE_FEATURES` as follows:
+
+      .. Shown as text: the Pygments BitBake lexer misreads this block.
+
+      .. code-block:: text
 
          TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
 
@@ -12574,7 +12590,11 @@ system and gives an overview of their function and contents.
 
       For recipes with dot-separated versions, inherit the
       :ref:`ref-classes-upstream-stable-release-point` class to generate this
-      variable automatically. For other versioning schemes, set it directly::
+      variable automatically. For other versioning schemes, set it directly:
+
+      .. Shown as text: the Pygments BitBake lexer misreads this block.
+
+      .. code-block:: text
 
          UPSTREAM_STABLE_RELEASE_REGEX = "^10\.2p\d+$"
 
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 14/16] docs: drop the file-wide highlight directives
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (12 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 13/16] docs: show the examples the BitBake lexer misreads as text Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 15/16] conf.py: default the highlight language to bitbake Trevor Woerner
  2026-12-01 15:22 ` [PATCH 16/16] standards: describe how a code block states its language Trevor Woerner
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

A few pages set their whole file to the shell language, which hides the
language of every block on them and mislabels the BitBake ones. The
blocks that are not BitBake state their own language, so the directives
only do harm.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/profile-manual/usage.rst         | 1 -
 documentation/toaster-manual/setup-and-use.rst | 2 --
 documentation/toaster-manual/start.rst         | 2 --
 3 files changed, 5 deletions(-)

diff --git a/documentation/profile-manual/usage.rst b/documentation/profile-manual/usage.rst
index c9397816f973..ac638586d830 100644
--- a/documentation/profile-manual/usage.rst
+++ b/documentation/profile-manual/usage.rst
@@ -1,5 +1,4 @@
 .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
-.. highlight:: shell
 
 ***************************************************************
 Basic Usage (with examples) for each of the Yocto Tracing Tools
diff --git a/documentation/toaster-manual/setup-and-use.rst b/documentation/toaster-manual/setup-and-use.rst
index 66469434dbd5..2b67cb1c89d7 100644
--- a/documentation/toaster-manual/setup-and-use.rst
+++ b/documentation/toaster-manual/setup-and-use.rst
@@ -1,6 +1,4 @@
 .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
-.. Set default pygment highlighting to 'shell' for this document
-.. highlight:: shell
 
 ****************************
 Setting Up and Using Toaster
diff --git a/documentation/toaster-manual/start.rst b/documentation/toaster-manual/start.rst
index bb42f296b585..28d18089254a 100644
--- a/documentation/toaster-manual/start.rst
+++ b/documentation/toaster-manual/start.rst
@@ -1,6 +1,4 @@
 .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
-.. Set default pygments highlighting to shell for this document
-.. highlight:: shell
 
 ************************
 Preparing to Use Toaster
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 15/16] conf.py: default the highlight language to bitbake
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (13 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 14/16] docs: drop the file-wide highlight directives Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  2026-12-01 15:22 ` [PATCH 16/16] standards: describe how a code block states its language Trevor Woerner
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

Most code blocks in these manuals are BitBake metadata, and a
contributor adding one should not have to remember to say so. Blocks in
any other language state it explicitly.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/conf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/documentation/conf.py b/documentation/conf.py
index eba9cfff4a3a..6ce3ed8e956f 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -111,6 +111,9 @@ templates_path = ['_templates']
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
 # This pattern also affects html_static_path and html_extra_path.
+# Code blocks are BitBake unless they say otherwise.
+highlight_language = 'bitbake'
+
 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'boilerplate.rst']
 
 # master document name. The default changed from contents to index. so better
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 16/16] standards: describe how a code block states its language
  2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
                   ` (14 preceding siblings ...)
  2026-12-01 15:22 ` [PATCH 15/16] conf.py: default the highlight language to bitbake Trevor Woerner
@ 2026-12-01 15:22 ` Trevor Woerner
  15 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2026-12-01 15:22 UTC (permalink / raw)
  To: docs

The manuals highlight a code block as BitBake unless it says otherwise,
which is a rule a contributor can only discover by reading conf.py.
Write it down, along with the languages the other blocks use and what to
do with a block the BitBake lexer cannot read.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/standards.md | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/documentation/standards.md b/documentation/standards.md
index 152a90923401..2614220ef0e1 100644
--- a/documentation/standards.md
+++ b/documentation/standards.md
@@ -134,6 +134,28 @@ Note that only "absolute" paths (starting with a '/') are allowed. The root
 directory of that path is documentation/, that is, :doc:`/bsp-manual/index`
 points at documentation/bsp-manual/index.rst.
 
+### Code blocks
+
+A code block is highlighted as BitBake unless it says otherwise, because
+most of the code in the manuals is BitBake metadata. A block of anything
+else states its language:
+
+    .. code-block:: console
+
+       $ bitbake core-image-minimal
+
+Use the language the block actually is, not the one it resembles. A
+session with a prompt is `console`, a script without one is `shell`, and
+a listing of paths or program output is `text`.
+
+If the BitBake lexer cannot read a valid BitBake block, show it as `text`
+and say why in a comment above it, so it can be switched back once the
+lexer is fixed:
+
+    .. Shown as text: the Pygments BitBake lexer misreads this block.
+
+    .. code-block:: text
+
 ## Adding screenshots
 
 The preferred format for adding screenshots is
-- 
2.50.0.173.g8b6f19ccfc3a


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-12-01 15:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 15:22 [PATCH 00/16] docs: highlight code blocks as BitBake by default Trevor Woerner
2026-12-01 15:22 ` [PATCH 01/16] brief-yoctoprojectqs: state the language of the blocks that are not BitBake Trevor Woerner
2026-12-01 15:22 ` [PATCH 02/16] bsp-manual: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 03/16] contributor-guide: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 04/16] dev-manual: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 05/16] kernel-dev: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 06/16] migration-guides: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 07/16] overview-manual: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 08/16] profile-manual: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 09/16] ref-manual: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 10/16] security-manual: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 11/16] test-manual: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 12/16] toaster-manual: " Trevor Woerner
2026-12-01 15:22 ` [PATCH 13/16] docs: show the examples the BitBake lexer misreads as text Trevor Woerner
2026-12-01 15:22 ` [PATCH 14/16] docs: drop the file-wide highlight directives Trevor Woerner
2026-12-01 15:22 ` [PATCH 15/16] conf.py: default the highlight language to bitbake Trevor Woerner
2026-12-01 15:22 ` [PATCH 16/16] standards: describe how a code block states its language Trevor Woerner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.