Skip to contentSkip to conversation

my opinion on why i think the docs need refactoring, with an example

DISCUSSION Robert P. J. Day 3 participants 3 messages Jan 7 – Jan 14

lore
Share & tools
lore
#0 lore raw

One of the things that has bothered me about the general OE/YP docs
for a while is that, in things like glossaries and reference manuals, there's too much explanatory content being stuffed into those sections, rather than being fully explained in a single place in a single manual somewhere.

IMHO, any topic or feature should have an adequately complete
explanation in one manual somewhere, and references or glossaries should have little more than a one- or two-sentence summary of any concept, then should redirect the reader to the full explanation.

Here's an example related to PROVIDES, where much of the same
content is duplicated in both the body of the BB manual, and in the BB variables glossary:

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-execution.html#providers
https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-ref-variables.html#term-PROVIDES

This seems inefficient and somewhat disorganized, since the poor
reader becomes unsure where to find the definitive explanation. There should be a single location that fully and completely explains any concept, and all else should do little more than link to that explanation.

This would make it easier for volunteers to offer to write
documentation, since the rule would be that they're expected to explain some concept in sufficient detail, that would be added to the appropriate manual or user guide, and everyone else would simply point at it. As it is, I think far too much explanatory content is being placed in reference sections or glossaries.

Thoughts?

rday

#1 lore raw
Quoted 34 lines · Robert P. J. Day via lists.yoctoproject.org

  One of the things that has bothered me about the general OE/YP docs for a while is that, in things like glossaries and reference manuals, there's too much explanatory content being stuffed into those sections, rather than being fully explained in a single place in a single manual somewhere.

  IMHO, any topic or feature should have an adequately complete explanation in one manual somewhere, and references or glossaries should have little more than a one- or two-sentence summary of any concept, then should redirect the reader to the full explanation.

  Here's an example related to PROVIDES, where much of the same content is duplicated in both the body of the BB manual, and in the BB
variables glossary:

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-execution.html#providers
https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-ref-variables.html#term-PROVIDES

  This seems inefficient and somewhat disorganized, since the poor reader becomes unsure where to find the definitive explanation. There should be a single location that fully and completely explains any concept, and all else should do little more than link to that explanation.

  This would make it easier for volunteers to offer to write documentation, since the rule would be that they're expected to explain some concept in sufficient detail, that would be added to the appropriate manual or user guide, and everyone else would simply point
at it. As it is, I think far too much explanatory content is being placed in reference sections or glossaries.

Quoted 1 line

  Thoughts?

We take incremental improvements to the docs and we can add these sections and do that. The barrier is people having time to do the work and write the patches.

Cheers,

Richard

#2 lore raw
In reply to Robert P. J. Day

Hi Robert,

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

One of the things that has bothered me about the general OE/YP docs
for a while is that, in things like glossaries and reference manuals, there's too much explanatory content being stuffed into those sections, rather than being fully explained in a single place in a single manual somewhere.

IMHO, any topic or feature should have an adequately complete
explanation in one manual somewhere, and references or glossaries should have little more than a one- or two-sentence summary of any concept, then should redirect the reader to the full explanation.

Here's an example related to PROVIDES, where much of the same
content is duplicated in both the body of the BB manual, and in the BB variables glossary:

Quoted 5 lines

https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-execution.html#providers
https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-ref-variables.html#term-PROVIDES

This seems inefficient and somewhat disorganized, since the poor
reader becomes unsure where to find the definitive explanation. There

Must there be a definitive explanation in only one place? Won't that make the explanation hard to digest and overload the reader from information they may not be interested in? (I understand this is mostly what you're complaining about wrt documenting in the glossary, but moving this text verbatim to another place isn't going to change that).

Quoted 11 lines

should be a single location that fully and completely explains any concept, and all else should do little more than link to that explanation.

This would make it easier for volunteers to offer to write
documentation, since the rule would be that they're expected to explain some concept in sufficient detail, that would be added to the appropriate manual or user guide, and everyone else would simply point at it. As it is, I think far too much explanatory content is being placed in reference sections or glossaries.

I believe the status quo makes it easy for people to write documentation. New variable? Add it to the glossary and define it well there. New class? Explain it in the class section. Ideally, mention it in the migration manual if something needs to be done about it.

Also, there's a fine balance to find between duplicating explanations where it makes sense (easier to read and comprehend, harder to maintain) and having only one place to explain everything (probably overly verbose).

I can't remember where I read this, but it's been said that good docs to foster a good dev community is built in 4 different ways. Tutorials, how-to, explanation (of concepts, workflows, ... I guess?) and reference. See https://github.blog/developer-skills/documentation-done-right-a-developers-guide/. That's for sure not where I read this from but I'm relatively certain those were the 4 pillars for documentation.

It'd help if you could provide some example on what it could look like. From experience (I joined at the end of the sphinx migration), big refactorings are notoriously long, tiresome and difficult to finish because people lose motivation (or time; or focus; or life happens) in view of how much there's still left to do. So we must have some kind of plan and a way to split the work into manageable pieces both because nobody will want to send one patch fixing everything at once (while the docs are still evolving, thus conflicting every time you rebase) and because nobody will want to review this multi-thousands of lines diff.

Cheers,
Quentin