Yocto Project Documentation
 help / color / mirror / Atom feed
From: Trevor Woerner <twoerner@gmail.com>
To: docs@lists.yoctoproject.org
Subject: [PATCH 07/16] overview-manual: state the language of the blocks that are not BitBake
Date: Tue,  1 Dec 2026 10:22:40 -0500	[thread overview]
Message-ID: <20261201152251.2742634-8-twoerner@gmail.com> (raw)
In-Reply-To: <20261201152251.2742634-1-twoerner@gmail.com>

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


  parent reply	other threads:[~2026-12-01 15:23 UTC|newest]

Thread overview: 17+ 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-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 ` Trevor Woerner [this message]
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

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=20261201152251.2742634-8-twoerner@gmail.com \
    --to=twoerner@gmail.com \
    --cc=docs@lists.yoctoproject.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox