From: "Antonin Godard" <antonin.godard@bootlin.com>
To: <twoerner@gmail.com>, <docs@lists.yoctoproject.org>
Subject: Re: [docs] [PATCH 06/16] migration-guides: state the language of the blocks that are not BitBake
Date: Thu, 03 Dec 2026 14:53:42 +0100 [thread overview]
Message-ID: <DNB5CAITXHTX.3AF7PEI7ER703@bootlin.com> (raw)
In-Reply-To: <20261201152251.2742634-7-twoerner@gmail.com>
On Tue Dec 1, 2026 at 4:22 PM CET, Trevor Woerner via docs wrote:
> 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
systemd?
[...]
> @@ -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
>
kconfig?
Antonin
next prev parent reply other threads:[~2026-12-03 13:53 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
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-03 13:53 ` [docs] " Antonin Godard
2026-12-01 15:22 ` [PATCH 05/16] kernel-dev: " Trevor Woerner
2026-12-03 13:53 ` [docs] " Antonin Godard
2026-12-01 15:22 ` [PATCH 06/16] migration-guides: " Trevor Woerner
2026-12-03 13:53 ` Antonin Godard [this message]
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-03 13:53 ` [docs] " Antonin Godard
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-03 13:53 ` [docs] " Antonin Godard
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
2026-12-03 13:53 ` [docs] " Antonin Godard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNB5CAITXHTX.3AF7PEI7ER703@bootlin.com \
--to=antonin.godard@bootlin.com \
--cc=docs@lists.yoctoproject.org \
--cc=twoerner@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.