Skip to contentSkip to conversation

why is "configuration fragments" in monospaced font?

DISCUSSION Robert P. J. Day 3 participants 10 messages Jan 9 – Jan 13

lore
Share & tools
lore
#1 lore raw

Hi Robert,

Quoted 7 lines · Robert P. J. Day via lists.yoctoproject.org

more nitpick ... here:

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#sharing-functionality

last line in that opening section, why is the phrase "configuration fragments" rendered in monospaced? is that meant to be an actual

So it doesn't feel left out with addfragments right after being monospaced too? More seriously, I don't know, but I wager the intent was to make the text italic as to highlight that it's a two-word term?

Would you mind sending a patch for it?

While at it, I think it makes sense to modify the "``addfragments`` directive" part with a link to the section in the docs. Maybe another patch to send?

Also, this pertains to bitbake user manual, so I think it'd make sense to add the bitbake ML when asking about bitbake-specific docs (both BB and YP-docs ML that is).

Cheers,
Quentin

#2 lore raw
Quoted 15 lines · Quentin Schulz

Hi Robert,

Quoted 7 lines · Robert P. J. Day via lists.yoctoproject.org

more nitpick ... here:

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#sharing-functionality

last line in that opening section, why is the phrase "configuration fragments" rendered in monospaced? is that meant to be an actual

So it doesn't feel left out with addfragments right after being monospaced too? More seriously, I don't know, but I wager the intent was to make the text italic as to highlight that it's a two-word term?

Quoted 8 lines

Would you mind sending a patch for it?

While at it, I think it makes sense to modify the "``addfragments`` directive" part with a link to the section in the docs. Maybe another patch to send?

Also, this pertains to bitbake user manual, so I think it'd make sense to add the bitbake ML when asking about bitbake-specific docs (both BB and YP-docs ML that is).

I notice you just posted a set of patches to fix a bunch of the
references, but it also seems that there are different syntaxes being used for some of those references. What is the blessed way to name and set references across the YP docs, and the proper way to then access them? There seems to be a lack of consistency.

rday

#3 lore raw

Hi Robert,

Quoted 26 lines · Robert P. J. Day
Quoted 15 lines · Quentin Schulz

Hi Robert,

Quoted 7 lines · Robert P. J. Day via lists.yoctoproject.org

more nitpick ... here:

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#sharing-functionality

last line in that opening section, why is the phrase "configuration fragments" rendered in monospaced? is that meant to be an actual

So it doesn't feel left out with addfragments right after being monospaced too? More seriously, I don't know, but I wager the intent was to make the text italic as to highlight that it's a two-word term?

Quoted 8 lines

Would you mind sending a patch for it?

While at it, I think it makes sense to modify the "``addfragments`` directive" part with a link to the section in the docs. Maybe another patch to send?

Also, this pertains to bitbake user manual, so I think it'd make sense to add the bitbake ML when asking about bitbake-specific docs (both BB and YP-docs ML that is).

Quoted 6 lines

I notice you just posted a set of patches to fix a bunch of the
references, but it also seems that there are different syntaxes being used for some of those references. What is the blessed way to name and set references across the YP docs, and the proper way to then access them? There seems to be a lack of consistency.

Can you write down those inconsistencies so we can discuss them?

Cheers,
Quentin

#4 lore raw
Quoted 33 lines · Quentin Schulz via lists.yoctoproject.org

Hi Robert,

Quoted 30 lines · Robert P. J. Day
Quoted 27 lines · Quentin Schulz

Hi Robert,

Quoted 7 lines · Robert P. J. Day via lists.yoctoproject.org

more nitpick ... here:

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#sharing-functionality

last line in that opening section, why is the phrase "configuration fragments" rendered in monospaced? is that meant to be an actual

So it doesn't feel left out with addfragments right after being monospaced too? More seriously, I don't know, but I wager the intent was to make the text
italic as to highlight that it's a two-word term?

Would you mind sending a patch for it?

While at it, I think it makes sense to modify the "``addfragments`` directive"
part with a link to the section in the docs. Maybe another patch to send?

Also, this pertains to bitbake user manual, so I think it'd make sense to add
the bitbake ML when asking about bitbake-specific docs (both BB and YP-docs ML
that is).

Quoted 8 lines
Quoted 6 lines

I notice you just posted a set of patches to fix a bunch of the
references, but it also seems that there are different syntaxes being used for some of those references. What is the blessed way to name and set references across the YP docs, and the proper way to then access them? There seems to be a lack of consistency.

Can you write down those inconsistencies so we can discuss them?

let me check if i didn't just misunderstand. it might be that i was
confusing how one refers to am implicit ref associated with any section/subsection, and the longer form associated with an explicit ref definition.

rday

#5 lore raw
Quoted 42 lines · Robert P. J. Day
Quoted 40 lines · Quentin Schulz via lists.yoctoproject.org

Hi Robert,

Quoted 36 lines · Robert P. J. Day
Quoted 22 lines · Quentin Schulz

Hi Robert,

Quoted 7 lines · Robert P. J. Day via lists.yoctoproject.org

more nitpick ... here:

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#sharing-functionality

last line in that opening section, why is the phrase "configuration fragments" rendered in monospaced? is that meant to be an actual

So it doesn't feel left out with addfragments right after being monospaced too? More seriously, I don't know, but I wager the intent was to make the text
italic as to highlight that it's a two-word term?

Would you mind sending a patch for it?

While at it, I think it makes sense to modify the "``addfragments`` directive"
part with a link to the section in the docs. Maybe another patch to send?

Quoted 5 lines

Also, this pertains to bitbake user manual, so I think it'd make sense to add
the bitbake ML when asking about bitbake-specific docs (both BB and YP-docs ML
that is).

I notice you just posted a set of patches to fix a bunch of the
references, but it also seems that there are different syntaxes being used for some of those references. What is the blessed way to name and set references across the YP docs, and the proper way to then access them? There seems to be a lack of consistency.

Quoted 7 lines
Quoted 1 line

Can you write down those inconsistencies so we can discuss them?

let me check if i didn't just misunderstand. it might be that i was
confusing how one refers to am implicit ref associated with any section/subsection, and the longer form associated with an explicit ref definition.

I guess you mean

:ref:`inherit_defer
<ref-bitbake-user-manual-metadata-inherit-defer>`

versus

:ref:inherit_defer <bitbake-user-manual/bitbake-user-manual-metadata:\\inherit_defer\\ Directive>

and why we have a mix sometimes for the same cross-reference, or for different directives.

The answer is likely "we forgot/didn't know we had autosectionlabel Sphinx plugin enabled and added labels by hand". I would be for getting rid of the manual labels in favor of the autosectionlabel wherever applicable and mentioning this in some README (I believe we have standards.md in yocto-docs that would be more appropriate?).

Can I interest you in sending patches to make this consistent across both BB and YP docs? (Barring Antonin disagreeing of course :) ).

Cheers,
Quentin

#6 lore raw
Quoted 62 lines · Quentin Schulz via lists.yoctoproject.org
Quoted 46 lines · Robert P. J. Day
Quoted 44 lines · Quentin Schulz via lists.yoctoproject.org

Hi Robert,

Quoted 40 lines · Robert P. J. Day
Quoted 25 lines · Quentin Schulz

Hi Robert,

Quoted 7 lines · Robert P. J. Day via lists.yoctoproject.org

more nitpick ... here:

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#sharing-functionality

last line in that opening section, why is the phrase "configuration fragments" rendered in monospaced? is that meant to be an actual

So it doesn't feel left out with addfragments right after being monospaced
too? More seriously, I don't know, but I wager the intent was to make the
text
italic as to highlight that it's a two-word term?

Would you mind sending a patch for it?

While at it, I think it makes sense to modify the "``addfragments`` directive"
part with a link to the section in the docs. Maybe another patch to send?

Quoted 6 lines

Also, this pertains to bitbake user manual, so I think it'd make sense to
add
the bitbake ML when asking about bitbake-specific docs (both BB and YP-docs ML
that is).

I notice you just posted a set of patches to fix a bunch of the
references, but it also seems that there are different syntaxes being used for some of those references. What is the blessed way to name and set references across the YP docs, and the proper way to then access them? There seems to be a lack of consistency.

Quoted 7 lines
Quoted 1 line

Can you write down those inconsistencies so we can discuss them?

let me check if i didn't just misunderstand. it might be that i was
confusing how one refers to am implicit ref associated with any section/subsection, and the longer form associated with an explicit ref definition.

I guess you mean

:ref:`inherit_defer
<ref-bitbake-user-manual-metadata-inherit-defer>`

Quoted 8 lines

versus

:ref:inherit_defer <bitbake-user-manual/bitbake-user-manual-metadata:\\inherit_defer\\ Directive>

and why we have a mix sometimes for the same cross-reference, or for different directives.

yup, that is exactly what i was talking about.

Quoted 8 lines

The answer is likely "we forgot/didn't know we had autosectionlabel Sphinx plugin enabled and added labels by hand". I would be for getting rid of the manual labels in favor of the autosectionlabel wherever applicable and mentioning this in some README (I believe we have standards.md in yocto-docs that would be more appropriate?).

Can I interest you in sending patches to make this consistent across both BB and YP docs? (Barring Antonin disagreeing of course :) ).

i'll take a shot at that, won't be today, though. and let's hear
what antonin has to say first.

rday

#7 lore raw

Hi,

Quoted 81 lines · Robert P. J. Day
Quoted 62 lines · Quentin Schulz via lists.yoctoproject.org
Quoted 46 lines · Robert P. J. Day
Quoted 44 lines · Quentin Schulz via lists.yoctoproject.org

Hi Robert,

Quoted 40 lines · Robert P. J. Day
Quoted 25 lines · Quentin Schulz

Hi Robert,

Quoted 7 lines · Robert P. J. Day via lists.yoctoproject.org

more nitpick ... here:

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#sharing-functionality

last line in that opening section, why is the phrase "configuration fragments" rendered in monospaced? is that meant to be an actual

So it doesn't feel left out with addfragments right after being monospaced
too? More seriously, I don't know, but I wager the intent was to make the
text
italic as to highlight that it's a two-word term?

Would you mind sending a patch for it?

While at it, I think it makes sense to modify the "``addfragments`` directive"
part with a link to the section in the docs. Maybe another patch to send?

Quoted 6 lines

Also, this pertains to bitbake user manual, so I think it'd make sense to
add
the bitbake ML when asking about bitbake-specific docs (both BB and YP-docs ML
that is).

I notice you just posted a set of patches to fix a bunch of the
references, but it also seems that there are different syntaxes being used for some of those references. What is the blessed way to name and set references across the YP docs, and the proper way to then access them? There seems to be a lack of consistency.

Quoted 7 lines
Quoted 1 line

Can you write down those inconsistencies so we can discuss them?

let me check if i didn't just misunderstand. it might be that i was
confusing how one refers to am implicit ref associated with any section/subsection, and the longer form associated with an explicit ref definition.

I guess you mean

:ref:`inherit_defer
<ref-bitbake-user-manual-metadata-inherit-defer>`

Quoted 8 lines

versus

:ref:inherit_defer <bitbake-user-manual/bitbake-user-manual-metadata:\\inherit_defer\\ Directive>

and why we have a mix sometimes for the same cross-reference, or for different directives.

yup, that is exactly what i was talking about.

Quoted 6 lines

The answer is likely "we forgot/didn't know we had autosectionlabel Sphinx plugin enabled and added labels by hand". I would be for getting rid of the manual labels in favor of the autosectionlabel wherever applicable and mentioning this in some README (I believe we have standards.md in yocto-docs that would be more appropriate?).

Quoted 5 lines
Quoted 2 lines

Can I interest you in sending patches to make this consistent across both BB and YP docs? (Barring Antonin disagreeing of course :) ).

i'll take a shot at that, won't be today, though. and let's hear
what antonin has to say first.

The autosectionlabel plugin works until a certain section depth, IIRC, so deeply nested sections won't be automatically labeled. In that case fallback to custom references. And you can't really increase that level otherwise you get the same label multiple times in some documents, making Sphinx unhappy.

I personally prefer a mix of both. One one hand, high-level sections are nice to have autolabeled. But on the other hand, a well chosen naming convention is also very useful. For example: if I want to reference a class by its name, I know I'll just have to write ":ref:ref-classes-<name>". Same goes for tasks and fragments.

Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#8 lore raw

Hi Antonin,

Quoted 84 lines · Antonin Godard

Hi,

Quoted 81 lines · Robert P. J. Day
Quoted 62 lines · Quentin Schulz via lists.yoctoproject.org
Quoted 46 lines · Robert P. J. Day
Quoted 44 lines · Quentin Schulz via lists.yoctoproject.org

Hi Robert,

Quoted 40 lines · Robert P. J. Day
Quoted 25 lines · Quentin Schulz

Hi Robert,

Quoted 7 lines · Robert P. J. Day via lists.yoctoproject.org

more nitpick ... here:

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#sharing-functionality

last line in that opening section, why is the phrase "configuration fragments" rendered in monospaced? is that meant to be an actual

So it doesn't feel left out with addfragments right after being monospaced
too? More seriously, I don't know, but I wager the intent was to make the
text
italic as to highlight that it's a two-word term?

Would you mind sending a patch for it?

While at it, I think it makes sense to modify the "``addfragments`` directive"
part with a link to the section in the docs. Maybe another patch to send?

Quoted 6 lines

Also, this pertains to bitbake user manual, so I think it'd make sense to
add
the bitbake ML when asking about bitbake-specific docs (both BB and YP-docs ML
that is).

I notice you just posted a set of patches to fix a bunch of the
references, but it also seems that there are different syntaxes being used for some of those references. What is the blessed way to name and set references across the YP docs, and the proper way to then access them? There seems to be a lack of consistency.

Quoted 7 lines
Quoted 1 line

Can you write down those inconsistencies so we can discuss them?

let me check if i didn't just misunderstand. it might be that i was
confusing how one refers to am implicit ref associated with any section/subsection, and the longer form associated with an explicit ref definition.

I guess you mean

:ref:`inherit_defer
<ref-bitbake-user-manual-metadata-inherit-defer>`

Quoted 8 lines

versus

:ref:inherit_defer <bitbake-user-manual/bitbake-user-manual-metadata:\\inherit_defer\\ Directive>

and why we have a mix sometimes for the same cross-reference, or for different directives.

yup, that is exactly what i was talking about.

Quoted 6 lines

The answer is likely "we forgot/didn't know we had autosectionlabel Sphinx plugin enabled and added labels by hand". I would be for getting rid of the manual labels in favor of the autosectionlabel wherever applicable and mentioning this in some README (I believe we have standards.md in yocto-docs that would be more appropriate?).

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Can I interest you in sending patches to make this consistent across both BB and YP docs? (Barring Antonin disagreeing of course :) ).

i'll take a shot at that, won't be today, though. and let's hear
what antonin has to say first.

The autosectionlabel plugin works until a certain section depth, IIRC, so

https://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html#confval-autosectionlabel_maxdepth indeed but if we don't set it (we don't) then it doesn't stop at a given depth.

Quoted 4 lines

deeply nested sections won't be automatically labeled. In that case fallback to custom references. And you can't really increase that level otherwise you get the same label multiple times in some documents, making Sphinx unhappy.

How about using https://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html#confval-autosectionlabel_prefix_document as to avoid this issue then?

Quoted 6 lines

I personally prefer a mix of both. One one hand, high-level sections are nice to have autolabeled. But on the other hand, a well chosen naming convention is also very useful. For example: if I want to reference a class by its name, I know I'll just have to write ":ref:ref-classes-<name>". Same goes for tasks and fragments.

OK, I think Robert's point was how to know when to use which one and have it explained somewhere so contributors know which to use?

Cheers,
Quentin

#9 lore raw
Quoted 3 lines · Quentin Schulz

Hi Antonin,

On 1/13/26 11:29 AM, Antonin Godard wrote:

... bug snip for brevity ...

Quoted 26 lines
Quoted 1 line

The autosectionlabel plugin works until a certain section depth, IIRC, so

https://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html#confval-autosectionlabel_maxdepth
indeed but if we don't set it (we don't) then it doesn't stop at a given depth.

Quoted 6 lines

deeply nested sections won't be automatically labeled. In that case fallback to
custom references. And you can't really increase that level otherwise you get
the same label multiple times in some documents, making Sphinx unhappy.

How about using
https://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html#confval-autosectionlabel_prefix_document
as to avoid this issue then?

Quoted 8 lines

I personally prefer a mix of both. One one hand, high-level sections are nice to
have autolabeled. But on the other hand, a well chosen naming convention is also
very useful. For example: if I want to reference a class by its name, I know I'll just have to write ":ref:ref-classes-<name>". Same goes for tasks and fragments.

Quoted 2 lines

OK, I think Robert's point was how to know when to use which one and have it explained somewhere so contributors know which to use?

precisely. if we want to encourage volunteers to write/improve the
docs, we need to make sure there are clear instructions on how.

rday