Yocto Project Documentation
 help / color / mirror / Atom feed
From: Trevor Woerner <twoerner@gmail.com>
To: Quentin Schulz <quentin.schulz@cherry.de>
Cc: docs@lists.yoctoproject.org
Subject: Re: [docs] [PATCH v2 3/8] docs: show a prompt on commands the reader is meant to type
Date: Thu, 24 Sep 2026 11:59:56 -0400	[thread overview]
Message-ID: <arVI_IAsl5VFGdgi@localhost.localdomain> (raw)
In-Reply-To: <dcf71aea-ce33-42b2-b014-07bced443f76@cherry.de>

On Wed 2026-09-23 @ 12:49:12 PM, Quentin Schulz wrote:
> Hi Trevor,
> 
> On 9/22/26 8:32 PM, Trevor Woerner via lists.yoctoproject.org wrote:
> > Most command blocks in the manuals start their lines with "$", but a
> > scattering of them do not, and those read as a file listing rather than
> > as something to run. Give them the prompt the surrounding pages already
> > use.
> > 
> > Transcripts take a prompt on their opening line alone. Two things that
> > matter only once a line is a command go with that: a bare "$" at the end,
> > the prompt returning after the command finished, and a trailing "\" on a
> > Windows path, which a shell reads as a continuation into the output.
> > 
> > AI-Generated: codex/claude-opus 5 (xhigh)
> > Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> > ---
> [...]
> > diff --git a/documentation/dev-manual/start.rst b/documentation/dev-manual/start.rst
> > index c7d0fe3dab8d..73b7d9501ae4 100644
> > --- a/documentation/dev-manual/start.rst
> > +++ b/documentation/dev-manual/start.rst
> > @@ -423,7 +423,7 @@ your Yocto Project build host:
> >         replace the PackageFamilyName and your user on the following path
> >         to find your VHDX file::
> > -         ls C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\
> > +         C:\WINDOWS\system32> ls C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState
> >            Mode                 LastWriteTime         Length Name
> >            -a----         3/14/2020   9:52 PM    57418973184 ext4.vhdx
> > diff --git a/documentation/dev-manual/wayland.rst b/documentation/dev-manual/wayland.rst
> > index 5e333b6265f4..3e1280943bf9 100644
> > --- a/documentation/dev-manual/wayland.rst
> > +++ b/documentation/dev-manual/wayland.rst
> > @@ -80,9 +80,9 @@ the CLI, you need to do the following after your image is built:
> >   #. Run these commands to export ``XDG_RUNTIME_DIR``::
> > -      mkdir -p /tmp/$USER-weston
> > -      chmod 0700 /tmp/$USER-weston
> > -      export XDG_RUNTIME_DIR=/tmp/$USER-weston
> > +      $ mkdir -p /tmp/$USER-weston
> > +      $ chmod 0700 /tmp/$USER-weston
> > +      $ export XDG_RUNTIME_DIR=/tmp/$USER-weston
> 
> This is to be run on the target as far as I could tell, do we also plan on
> using $ without a user@host:path$ for target commands as well as the ones
> the user is supposed to run on the build machine?

I like the preamble; i'll change it.

> >   #. Launch Weston in the shell::
> 
> Right under this context, there's a command to run which doesn't have the
> prompt and needs one.

Good catch, thanks.

> Cheers,
> Quentin


  reply	other threads:[~2026-09-24 16:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22 18:32 [PATCH v2 0/8] docs: editorial repairs to the examples Trevor Woerner
2026-09-22 18:32 ` [PATCH v2 1/8] docs: give the root prompts a preamble Trevor Woerner
2026-09-23 10:17   ` [docs] " Quentin Schulz
2026-09-24 16:00     ` Trevor Woerner
2026-09-22 18:32 ` [PATCH v2 2/8] docs: copy only the command from a console block Trevor Woerner
2026-09-23 10:41   ` [docs] " Quentin Schulz
2026-09-23 10:43     ` Quentin Schulz
2026-09-22 18:32 ` [PATCH v2 3/8] docs: show a prompt on commands the reader is meant to type Trevor Woerner
2026-09-23 10:49   ` [docs] " Quentin Schulz
2026-09-24 15:59     ` Trevor Woerner [this message]
2026-09-22 18:32 ` [PATCH v2 4/8] docs: write an elided passage as a comment Trevor Woerner
2026-09-23 10:50   ` [docs] " Quentin Schulz
2026-09-22 18:32 ` [PATCH v2 5/8] docs: mark the placeholders in examples Trevor Woerner
2026-09-23 10:57   ` [docs] " Quentin Schulz
2026-09-24 15:58     ` Trevor Woerner
2026-09-22 18:32 ` [PATCH v2 6/8] docs: remove real accounts from the examples Trevor Woerner
2026-09-23 11:02   ` [docs] " Quentin Schulz
2026-09-24 15:55     ` Trevor Woerner
2026-09-22 18:32 ` [PATCH v2 7/8] kernel-dev: give each example block one thing to hold Trevor Woerner
2026-09-23 11:05   ` [docs] " Quentin Schulz
2026-09-22 18:32 ` [PATCH v2 8/8] ref-manual: put the ARCHIVER_MODE comments on their own lines Trevor Woerner
2026-09-23 11:09   ` [docs] " Quentin Schulz
2026-09-24 15:55     ` 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=arVI_IAsl5VFGdgi@localhost.localdomain \
    --to=twoerner@gmail.com \
    --cc=docs@lists.yoctoproject.org \
    --cc=quentin.schulz@cherry.de \
    /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