Skip to contentSkip to conversation

A thought or two about YP documentation versus glossary entries

DISCUSSION Robert P. J. Day 2 participants 2 messages Jun 3, 2025

lore
Share & tools
lore
#0 lore raw

I was trying to come up with an intuitive design for how the YP and
BB manuals should work together to avoid duplication and couldn't seem to make it work until I took a step back and realized that the way variables are explained in the YP manual seems, well, backwards. For this, I'll use the BB_NUMBER_THREADS variable I was talking about before. (Leave the BB manual out of this for now, even though that variable properly deserves to be explained there.)

There are typically two places where a lot of concepts and variables
are explained:

1) In one of the manuals in an appropriate section, and
2) In the variables glossary.

But it seems that the way these two locations are being used is backwards.

For this variable, the one place where this is described in the Dev
Manual is here:

https://docs.yoctoproject.org/dev-manual/speeding-up-build.html

but there is little explanation there; all you find is a link to the variable glossary:

https://docs.yoctoproject.org/ref-manual/variables.html#term-BB_NUMBER_THREADS

where you get a much fuller explanation. This seems "backwards" to me because I'm used to full explanations being in an appropriate section of a manual (with much more context and examples and so on), while a glossary entry is normally a one- or two-sentence brief explanation, with a link to the fuller manual explanation. In other words, exactly the opposite of what is happening here.

In my ideal universe, glossary entries are short and punchy, and
point the reader at the full explanation, where you would normally find a really thorough coverage, in the full context of how the variable is used, with suggestions and references to related sections of that manual or other manuals. and examples of its use and so on. Here, as I said, it's exactly the opposite -- the only full explanation is in the glossary, which only inspires documenters to keep adding to the glossary entries rather than improving, in this case, the Dev Manual.

Finally(?), in the case of BB_NUMBER_THREADS, this is part of
BitBake and so should be explained *in detail* in that manual, along with related BB_PRESSURE_* variables in a section entitled something like "Speeding up the Build." That is, comprehensive coverage of those related features in the BB manual in an actual section, again with glossary entries being little more than links.

This would eliminate a ton of duplication -- the BB manual would be
far more comprehensive and cover everything BB-related, and the YP manuals could just point at all that stuff and end up being way shorter. But I'm just throwing out ideas at this point.

rday

#1 lore raw

Hi Robert,

On 6/3/25 11:44 AM, Robert P. J. Day via lists.yoctoproject.org wrote:
[...]

Quoted 7 lines

Finally(?), in the case of BB_NUMBER_THREADS, this is part of
BitBake and so should be explained *in detail* in that manual, along with related BB_PRESSURE_* variables in a section entitled something like "Speeding up the Build." That is, comprehensive coverage of those related features in the BB manual in an actual section, again with glossary entries being little more than links.

I'd start by keeping the way we do it in YP wrt the glossary but start documenting variables in the BitBake documentation for BitBake variables yes. I don't think you'll meet resistance doing that. YP docs may then refer to the BitBake glossary term and eventually extend it whenever applicable (maybe YP sets some defaults, or uses the variable in different additional ways, etc.).

I'm quite resistant to the idea of having a few sentences for a term in the glossary but maybe because I don't really have an idea what the content would then be. Could you take a couple variables and tell us what you'd like their description to be? Maybe that'll help me getting a better understanding?

Cheers,
Quentin