All of lore.kernel.org
 help / color / mirror / Atom feed
From: Trevor Woerner <twoerner@gmail.com>
To: docs@lists.yoctoproject.org
Subject: [PATCH 12/16] toaster-manual: state the language of the blocks that are not BitBake
Date: Tue,  1 Dec 2026 10:22:45 -0500	[thread overview]
Message-ID: <20261201152251.2742634-13-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/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


  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 ` [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 ` Trevor Woerner [this message]
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-13-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 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.