Skip to contentSkip to conversation

docs: document the conventions used in the manuals

PATCH Superseded Trevor Woerner 3 participants 11 messages Aug 31 – Sep 22 1 message not in the archive

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: document the conventions used in the manuals

The manuals use angle brackets for placeholders and a prompt to mark a command, and say so nowhere. A reader can only infer both, and one example reads as advice to paste a line that will not parse.

Include the new section from every manual, the way the boilerplate is included, so each is self-contained.

AI-Generated: codex/claude opus 5 (xhigh)

---
 documentation/brief-yoctoprojectqs/index.rst |  2 +
 documentation/bsp-manual/index.rst           |  2 +
 documentation/contributor-guide/index.rst    |  2 +
 documentation/conventions.rst                | 53 ++++++++++++++++++++
 documentation/dev-manual/index.rst           |  2 +
 documentation/kernel-dev/index.rst           |  2 +
 documentation/migration-guides/index.rst     |  2 +
 documentation/overview-manual/index.rst      |  2 +
 documentation/profile-manual/index.rst       |  2 +
 documentation/ref-manual/index.rst           |  2 +
 documentation/sdk-manual/index.rst           |  2 +
 documentation/security-manual/index.rst      |  2 +
 documentation/security-reference/index.rst   |  2 +
 documentation/test-manual/index.rst          |  2 +
 documentation/toaster-manual/index.rst       |  2 +
 15 files changed, 81 insertions(+)
 create mode 100644 documentation/conventions.rst
documentation/brief-yoctoprojectqs/index.rst +2 -0
index 4adec9714f2f..6c0e56d9660c 100644
@@ -502,4 +502,6 @@ information including the website, wiki pages, and user manuals:
    section in the Yocto Project Reference Manual provides a
    comprehensive list of all related links and other user documentation.
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/bsp-manual/index.rst +2 -0
index 37469184e269..4229730080da 100644
@@ -12,4 +12,6 @@ Yocto Project Board Support Package (BSP) Manual
 
    bsp
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/contributor-guide/index.rst +2 -0
index b374cc1c43ec..39104259785b 100644
@@ -23,4 +23,6 @@ this.
    recipe-style-guide
    submit-changes
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/conventions.rst new file +53 -0

53 lines not on this page · raw message

documentation/dev-manual/index.rst +2 -0
index 0e1aa89586d6..2a405b418f0c 100644
@@ -52,4 +52,6 @@ Yocto Project Development Tasks Manual
    sstate-mirrors-setup
    hashequivserver
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/kernel-dev/index.rst +2 -0
index bd20e371e0c2..8a0e104dc4f9 100644
@@ -17,4 +17,6 @@ Yocto Project Linux Kernel Development Manual
    maint-appx
    faq
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/migration-guides/index.rst +2 -0
index e53215c73b6e..1a7058949b03 100644
@@ -42,4 +42,6 @@ to move to one release of the Yocto Project from the previous one.
    migration-1.4
    migration-1.3
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/overview-manual/index.rst +2 -0
index 0061d1a1807d..3b8aa28f0353 100644
@@ -70,4 +70,6 @@ For a comprehensive list of links and other documentation, see the
 Documentation <resources-links-and-related-documentation>`"
 section in the Yocto Project Reference Manual.
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/profile-manual/index.rst +2 -0
index 0270932ca0b1..53a87d7bf0bd 100644
@@ -15,4 +15,6 @@ Yocto Project Profiling and Tracing Manual
    usage
    examples
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/ref-manual/index.rst +2 -0
index aa1a63e0500b..6b44bb461a80 100644
@@ -28,4 +28,6 @@ Yocto Project Reference Manual
    faq
    resources
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/sdk-manual/index.rst +2 -0
index a5c35cabaed1..d893ec8ed402 100644
@@ -18,4 +18,6 @@ Yocto Project Application Development and Software Development Kits (SDK/eSDK) M
    appendix-customizing
    appendix-customizing-standard
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/security-manual/index.rst +2 -0
index ab1ef445c86c..39ad0ee7a8c1 100644
@@ -17,5 +17,7 @@ Yocto Project Security Manual
    read-only-rootfs
    sstate-signing
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
 
documentation/security-reference/index.rst +2 -0
index c20a54d1a931..f9b0f0d73777 100644
@@ -11,4 +11,6 @@ Yocto Project Security Reference
    security-team
    reporting-vulnerabilities
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/test-manual/index.rst +2 -0
index d365d337ea5b..8f7f9e49a2cc 100644
@@ -18,4 +18,6 @@ Yocto Project Test Environment Manual
    reproducible-builds
    yocto-project-compatible
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
documentation/toaster-manual/index.rst +2 -0
index 3ff4c6913aa4..ca2c38834bbc 100644
@@ -15,4 +15,6 @@ Toaster User Manual
    setup-and-use
    reference
 
+.. include:: /conventions.rst
+
 .. include:: /boilerplate.rst
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
#1 lore raw

Hi,

Quoted 6 lines · Trevor Woerner via lists.yoctoproject.org

The manuals use angle brackets for placeholders and a prompt to mark a command, and say so nowhere. A reader can only infer both, and one example reads as advice to paste a line that will not parse.

Include the new section from every manual, the way the boilerplate is included, so each is self-contained.

We already have a standard.md document that explains these kind of things. I think it would be more appropriate to add these conventions there.

Thanks,
Antonin

#2 lore raw
Quoted 11 lines · Antonin Godard

Hi,

Quoted 6 lines · Trevor Woerner via lists.yoctoproject.org

The manuals use angle brackets for placeholders and a prompt to mark a command, and say so nowhere. A reader can only infer both, and one example reads as advice to paste a line that will not parse.

Include the new section from every manual, the way the boilerplate is included, so each is self-contained.

We already have a standard.md document that explains these kind of things.

Sorry, s/standard.md/standards.md/.

Antonin

#3 lore raw
In reply to Antonin Godard
Quoted 7 lines · Antonin Godard

Hi,

Quoted 4 lines · Trevor Woerner via lists.yoctoproject.org

The manuals use angle brackets for placeholders and a prompt to mark a command, and say so nowhere. A reader can only infer both, and one example reads as advice to paste a line that will not parse.

Quoted 5 lines
Quoted 2 lines

Include the new section from every manual, the way the boilerplate is included, so each is self-contained.

We already have a standard.md document that explains these kind of things. I think it would be more appropriate to add these conventions there.

Oh, that's interesting, and I hadn't thought of that.

You know how, whenever you pick up any programming book, there's a section (usually in the Preface) that shows you what typeface is used for code (versus prose), how a "Warning" admonition is drawn? That's what I'm trying to recreate here. A "conventions used in this document" section that is *reader* facing.

What you're pointing at is a *contributor* facing document. And it's a good point, something should probably be mentioned there so that contributors follow the same conventions throughout; it helps make the document look like it was written by one person.

But I feel that a reader-facing conventions section is still warranted.

Quoted 2 lines

Thanks,
Antonin

#4 lore raw

Hi Trevor,

Quoted 14 lines · Trevor Woerner via lists.yoctoproject.org
Quoted 7 lines · Antonin Godard

Hi,

Quoted 4 lines · Trevor Woerner via lists.yoctoproject.org

The manuals use angle brackets for placeholders and a prompt to mark a command, and say so nowhere. A reader can only infer both, and one example reads as advice to paste a line that will not parse.

Quoted 5 lines
Quoted 2 lines

Include the new section from every manual, the way the boilerplate is included, so each is self-contained.

We already have a standard.md document that explains these kind of things. I think it would be more appropriate to add these conventions there.

Quoted 8 lines

Oh, that's interesting, and I hadn't thought of that.

You know how, whenever you pick up any programming book, there's a section (usually in the Preface) that shows you what typeface is used for code (versus prose), how a "Warning" admonition is drawn? That's what I'm trying to recreate here. A "conventions used in this document" section that is *reader* facing.

Fair enough.

Quoted 7 lines

What you're pointing at is a *contributor* facing document. And it's a good point, something should probably be mentioned there so that contributors follow the same conventions throughout; it helps make the document look like it was written by one person.

But I feel that a reader-facing conventions section is still warranted.

I really think we should aim at removing the prompt for all instructions that do not actually require one, that is (in my opinion) anything that doesn't include the output of the command. Then there should be less confusion around what needs to be pasted or not.

I'm also not entirely sure we follow those conventions currently across the docs, so maybe there's some additional work to be done to ensure the conventions are actually followed.

Cheers,
Quentin

#5 lore raw
Quoted 36 lines · Quentin Schulz

Hi Trevor,

Quoted 14 lines · Trevor Woerner via lists.yoctoproject.org
Quoted 7 lines · Antonin Godard

Hi,

Quoted 4 lines · Trevor Woerner via lists.yoctoproject.org

The manuals use angle brackets for placeholders and a prompt to mark a command, and say so nowhere. A reader can only infer both, and one example reads as advice to paste a line that will not parse.

Quoted 5 lines
Quoted 2 lines

Include the new section from every manual, the way the boilerplate is included, so each is self-contained.

We already have a standard.md document that explains these kind of things. I think it would be more appropriate to add these conventions there.

Quoted 8 lines

Oh, that's interesting, and I hadn't thought of that.

You know how, whenever you pick up any programming book, there's a section (usually in the Preface) that shows you what typeface is used for code (versus prose), how a "Warning" admonition is drawn? That's what I'm trying to recreate here. A "conventions used in this document" section that is *reader* facing.

Fair enough.

Quoted 7 lines

What you're pointing at is a *contributor* facing document. And it's a good point, something should probably be mentioned there so that contributors follow the same conventions throughout; it helps make the document look like it was written by one person.

But I feel that a reader-facing conventions section is still warranted.

Quoted 8 lines

I really think we should aim at removing the prompt for all instructions that do not actually require one, that is (in my opinion) anything that doesn't include the output of the command. Then there should be less confusion around what needs to be pasted or not.

I'm also not entirely sure we follow those conventions currently across the docs, so maybe there's some additional work to be done to ensure the conventions are actually followed.

Currently our docs are a combination of both: some code-blocks use prompts and some don't (regardless of whether output is included). I would really like to see consistency across all the docs, and would happily provide as many commits as are required to see this through.

The steps to achieve that (in my opinion) would be:
- have a standard
- adjust to current docs to that standard
- write down the standard
- try to enforce it on future pull requests knowing full well that...
- ... we'll need regular fixup sweeps to bring everything in line

I would much rather see the docs adopt the convention that all code-blocks that contain things we expect users to type would start with a prompt on all lines the user types. The prompt isn't just useless noise at the start of the command, it clearly delineates between things that are to be run as a regular user versus things that are to be run as the superuser. For example while most command on the build machine would be expected to be run as a regular user, many commands run on a target are performed as the superuser. The prompts '$' and '#' indicate this clearly to the reader. Secondly, not all code-block blocks are going to contain console examples, there are other reasons to use code-block and the prompt would identify which ones are for console interactions and which aren't. As you mentioned, some console examples are going to show both what the user is expected to type as well as the output; having a prompt clearly shows what are commands to type and what is output. For the sake of uniformity I would rather not have code-block examples that have and others that don't have prompts. Why make it more confusing? Things the reader is to type has prompts, regardless of whether output is included - simple.

As for the "what to copy" issue. Every code-block has a "copy" symbol that appears in the code-block when you hover over the code-block. If the code-block contains things to type with prompts and you click on the copy icon of a code-block, the commands are copied and the prompts are not. However, if the user highlights what to copy by clicking and dragging with the mouse, they will get both the commands as well as the prompts. However, that is configurable! It is possible to configure any code-block identified as console to not copy the prompts, even when clicked-and-dragged with the mouse.

With this adjustment, there is no confusion about what to copy and what not to copy, because it will not be possible to copy the prompt! And, it can be configured so that if there is any leading preamble before the prompts, the preamble is not copied either. So, for example, if your code-block console session looks like:

some/directory (user)$ ls

And either the user clicks on the in code-block copy icon or they click and drag with the mouse, all they will copy is the "ls" and nothing before it.

Having a "how to use this document" section would explain and codify it into our standards, as well as having an author-facing document that would give this as an expectation. Review would then be performed against these documents for consistency.

Quoted 2 lines

Cheers,
Quentin

#6 lore raw

Hi,

Quoted 1 line · Trevor Woerner

On Mon 2026-09-14 @ 06:39:59 PM, Quentin Schulz wrote:

[...]

Quoted 4 lines

having a
prompt clearly shows what are commands to type and what is output. For the sake of uniformity I would rather not have code-block examples that have and others that don't have prompts.

I agree.

Quoted 10 lines

As for the "what to copy" issue. Every code-block has a "copy" symbol that appears in the code-block when you hover over the code-block. If the code-block contains things to type with prompts and you click on the copy icon of a code-block, the commands are copied and the prompts are not. However, if the user highlights what to copy by clicking and dragging with the mouse, they will get both the commands as well as the prompts. However, that is configurable! It is possible to configure any code-block identified as console to not copy the prompts, even when clicked-and-dragged with the mouse.

Do you have a working solution for this?

[...]

Quoted 4 lines

Having a "how to use this document" section would explain and codify it into our standards, as well as having an author-facing document that would give this as an expectation. Review would then be performed against these documents for consistency.

Rather than having a document included everywhere, I would rather have a dedicated section for it in the docs so it is less invasive . It appears in the sidebar, so a user always sees it too (for HTML docs).

Here's what I have in mind (note the shorter title so it fits in the sidebar):

documentation/index.rst +7 -0
index 4bfc40bef..72e51a445 100644
@@ -116,3 +116,10 @@ Release notes and migration guides for the different Yocto Project releases.
    :hidden:
 
    downloads
+
+.. toctree::
+   :maxdepth: 1
+   :caption: Documentation Conventions
+   :hidden:
+
+   conventions
documentation/conventions.rst new file +18 -0
new file mode 100644
index 000000000..65061d1a9
@@ -0,0 +1,18 @@
+=========================
+Documentation Conventions
+=========================
+
+Placeholders
+============
+
+Text enclosed in angle brackets is a placeholder. Replace it, including the
+brackets, with a value of your own:
+
+.. code-block:: none
+
+   SRCREV:pn-<recipe> = "${AUTOREV}"
+
+Here, ``<recipe>`` stands for the name of your recipe. A placeholder is
+never text to be copied as it stands, and an example containing one will
+not work until every placeholder in it has been replaced.
+

+...

Thanks,
Antonin

#7 lore raw
Quoted 23 lines · Antonin Godard

Hi,

Quoted 1 line · Trevor Woerner

On Mon 2026-09-14 @ 06:39:59 PM, Quentin Schulz wrote:

[...]

Quoted 4 lines

having a
prompt clearly shows what are commands to type and what is output. For the sake of uniformity I would rather not have code-block examples that have and others that don't have prompts.

I agree.

Quoted 10 lines

As for the "what to copy" issue. Every code-block has a "copy" symbol that appears in the code-block when you hover over the code-block. If the code-block contains things to type with prompts and you click on the copy icon of a code-block, the commands are copied and the prompts are not. However, if the user highlights what to copy by clicking and dragging with the mouse, they will get both the commands as well as the prompts. However, that is configurable! It is possible to configure any code-block identified as console to not copy the prompts, even when clicked-and-dragged with the mouse.

Quoted 1 line

Do you have a working solution for this?

Yes (to follow).

Quoted 9 lines

[...]

Quoted 4 lines

Having a "how to use this document" section would explain and codify it into our standards, as well as having an author-facing document that would give this as an expectation. Review would then be performed against these documents for consistency.

Rather than having a document included everywhere, I would rather have a dedicated section for it in the docs so it is less invasive . It appears in the sidebar, so a user always sees it too (for HTML docs).

That works for me; I have a v2 prepared.

Quoted 45 lines

Here's what I have in mind (note the shorter title so it fits in the sidebar):

documentation/index.rst +7 -0
index 4bfc40bef..72e51a445 100644
@@ -116,3 +116,10 @@ Release notes and migration guides for the different Yocto Project releases.
    :hidden:
 
    downloads
+
+.. toctree::
+   :maxdepth: 1
+   :caption: Documentation Conventions
+   :hidden:
+
+   conventions
documentation/conventions.rst new file +19 -0
new file mode 100644
index 000000000..65061d1a9
@@ -0,0 +1,18 @@
+=========================
+Documentation Conventions
+=========================
+
+Placeholders
+============
+
+Text enclosed in angle brackets is a placeholder. Replace it, including the
+brackets, with a value of your own:
+
+.. code-block:: none
+
+   SRCREV:pn-<recipe> = "${AUTOREV}"
+
+Here, ``<recipe>`` stands for the name of your recipe. A placeholder is
+never text to be copied as it stands, and an example containing one will
+not work until every placeholder in it has been replaced.
+
+...

Thanks,
Antonin

#8 lore raw
Quoted 24 lines · Trevor Woerner
Quoted 23 lines · Antonin Godard

Hi,

Quoted 1 line · Trevor Woerner

On Mon 2026-09-14 @ 06:39:59 PM, Quentin Schulz wrote:

[...]

Quoted 4 lines

having a
prompt clearly shows what are commands to type and what is output. For the sake of uniformity I would rather not have code-block examples that have and others that don't have prompts.

I agree.

Quoted 10 lines

As for the "what to copy" issue. Every code-block has a "copy" symbol that appears in the code-block when you hover over the code-block. If the code-block contains things to type with prompts and you click on the copy icon of a code-block, the commands are copied and the prompts are not. However, if the user highlights what to copy by clicking and dragging with the mouse, they will get both the commands as well as the prompts. However, that is configurable! It is possible to configure any code-block identified as console to not copy the prompts, even when clicked-and-dragged with the mouse.

Quoted 3 lines
Quoted 1 line

Do you have a working solution for this?

Yes (to follow).

Actually it seems to be already working for me. After building the docs, I cannot select either "$" or "root@qemux86-64:~#" so things seem to be working as expected?

Antonin

#9 lore raw
Quoted 25 lines · Antonin Godard
Quoted 24 lines · Trevor Woerner
Quoted 23 lines · Antonin Godard

Hi,

Quoted 1 line · Trevor Woerner

On Mon 2026-09-14 @ 06:39:59 PM, Quentin Schulz wrote:

[...]

Quoted 4 lines

having a
prompt clearly shows what are commands to type and what is output. For the sake of uniformity I would rather not have code-block examples that have and others that don't have prompts.

I agree.

Quoted 10 lines

As for the "what to copy" issue. Every code-block has a "copy" symbol that appears in the code-block when you hover over the code-block. If the code-block contains things to type with prompts and you click on the copy icon of a code-block, the commands are copied and the prompts are not. However, if the user highlights what to copy by clicking and dragging with the mouse, they will get both the commands as well as the prompts. However, that is configurable! It is possible to configure any code-block identified as console to not copy the prompts, even when clicked-and-dragged with the mouse.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Do you have a working solution for this?

Yes (to follow).

Actually it seems to be already working for me. After building the docs, I cannot select either "$" or "root@qemux86-64:~#" so things seem to be working as expected?

Out of the box you are correct that in the case where there is a "#" prompt, the prompt is not selected (just the command). But look for an example where there is both a "#" prompt and output lines prefixed with # [1], the comment # will be skipped too (not correct). Plus if you test with the copybutton the whole block is selected (prompt and all).

There are 2 ways of copying: clicking the copybutton, or dragging with the mouse. Be sure to test both and make sure both methods do the same thing, and the thing they do is the correct thing.

See patch 2 of my docs-fixes set:
https://lore.kernel.org/r/[email protected]

The full patchsets that I have (not all of them sent yet) fixes all of this, but I didn't want to overwhelm with too many patches at once. The docs-fixes all stand on their own and are good to have regardless of anything else. The conventions-v2 is slightly out of place, conventions-v1 really should have only been suggested after all the others were agreed on, but I felt compelled to send a conventions-v2 now since v1 had been reviewed. conventions-v3 (to be sent) will be correct for now if docs-fixes is accepted.

Quoted 1 line

Antonin

[1] "Basic ftrace usage" in the profile manual, the "cat trace | less" one

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw
Quoted 42 lines · Trevor Woerner via lists.yoctoproject.org
Quoted 41 lines · Quentin Schulz

Hi Trevor,

Quoted 14 lines · Trevor Woerner via lists.yoctoproject.org
Quoted 7 lines · Antonin Godard

Hi,

Quoted 4 lines · Trevor Woerner via lists.yoctoproject.org

The manuals use angle brackets for placeholders and a prompt to mark a command, and say so nowhere. A reader can only infer both, and one example reads as advice to paste a line that will not parse.

Quoted 5 lines
Quoted 2 lines

Include the new section from every manual, the way the boilerplate is included, so each is self-contained.

We already have a standard.md document that explains these kind of things. I think it would be more appropriate to add these conventions there.

Quoted 8 lines

Oh, that's interesting, and I hadn't thought of that.

You know how, whenever you pick up any programming book, there's a section (usually in the Preface) that shows you what typeface is used for code (versus prose), how a "Warning" admonition is drawn? That's what I'm trying to recreate here. A "conventions used in this document" section that is *reader* facing.

Fair enough.

Quoted 7 lines

What you're pointing at is a *contributor* facing document. And it's a good point, something should probably be mentioned there so that contributors follow the same conventions throughout; it helps make the document look like it was written by one person.

But I feel that a reader-facing conventions section is still warranted.

I really think we should aim at removing the prompt for all instructions that do not actually require one, that is (in my opinion) anything that doesn't include the output of the command. Then there should be less confusion around what needs to be pasted or not.

Quoted 6 lines
Quoted 3 lines

I'm also not entirely sure we follow those conventions currently across the docs, so maybe there's some additional work to be done to ensure the conventions are actually followed.

Currently our docs are a combination of both: some code-blocks use prompts and some don't (regardless of whether output is included).

It looks like, across all of the Yocto docs, there are roughly 705 code-blocks that record command-line interactions describing to the reader what they need to do on the cmdline (aka command blocks).

Of those 705, 631 already carry a prompt, versus at least 74 that don't. The convention is already in place, we shouldn't be rehashing a decision that has already been made.

The only things not already in place are the "how to use this document" preface I'm proposing, the author-facing material naming the convention, and fixes for the 74 stragglers.

Quoted 69 lines

I
would really like to see consistency across all the docs, and would happily provide as many commits as are required to see this through.

The steps to achieve that (in my opinion) would be:
- have a standard
- adjust to current docs to that standard
- write down the standard
- try to enforce it on future pull requests knowing full well that...
- ... we'll need regular fixup sweeps to bring everything in line

I would much rather see the docs adopt the convention that all code-blocks that contain things we expect users to type would start with a prompt on all lines the user types. The prompt isn't just useless noise at the start of the command, it clearly delineates between things that are to be run as a regular user versus things that are to be run as the superuser. For example while most command on the build machine would be expected to be run as a regular user, many commands run on a target are performed as the superuser. The prompts '$' and '#' indicate this clearly to the reader. Secondly, not all code-block blocks are going to contain console examples, there are other reasons to use code-block and the prompt would identify which ones are for console interactions and which aren't. As you mentioned, some console examples are going to show both what the user is expected to type as well as the output; having a prompt clearly shows what are commands to type and what is output. For the sake of uniformity I would rather not have code-block examples that have and others that don't have prompts. Why make it more confusing? Things the reader is to type has prompts, regardless of whether output is included - simple.

As for the "what to copy" issue. Every code-block has a "copy" symbol that appears in the code-block when you hover over the code-block. If the code-block contains things to type with prompts and you click on the copy icon of a code-block, the commands are copied and the prompts are not. However, if the user highlights what to copy by clicking and dragging with the mouse, they will get both the commands as well as the prompts. However, that is configurable! It is possible to configure any code-block identified as console to not copy the prompts, even when clicked-and-dragged with the mouse.

With this adjustment, there is no confusion about what to copy and what not to copy, because it will not be possible to copy the prompt! And, it can be configured so that if there is any leading preamble before the prompts, the preamble is not copied either. So, for example, if your code-block console session looks like:

some/directory (user)$ ls

And either the user clicks on the in code-block copy icon or they click and drag with the mouse, all they will copy is the "ls" and nothing before it.

Having a "how to use this document" section would explain and codify it into our standards, as well as having an author-facing document that would give this as an expectation. Review would then be performed against these documents for consistency.

Quoted 2 lines

Cheers,
Quentin

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10553): https://lists.yoctoproject.org/g/docs/message/10553
Mute This Topic: https://lists.yoctoproject.org/mt/121008467/900817
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-