YP ref manual variable glossary: should entries link to themselves?
wildly nitpicky here but in the YP variable glossary:
https://docs.yoctoproject.org/ref-manual/variables.html#
it seems weird when a glossary entry has a link to itself. example:ALTERNATIVE_LINK_NAME:
https://docs.yoctoproject.org/ref-manual/variables.html#term-ALTERNATIVE_LINK_NAME
whose description contains a self-referential link. doesn't hurt, of course, but it kind of fakes someone out if they see a link and think, "hey, i'll follow that link to get more explanation," and they end up right where they are.
anyway, i have some extended thoughts on variable documentation and
bitbake/YP manual cross-linking coming.
rday
Hi Robert,
Quoted 8 lines · Robert P. J. Day via lists.yoctoproject.org
wildly nitpicky here but in the YP variable glossary:
https://docs.yoctoproject.org/ref-manual/variables.html#
it seems weird when a glossary entry has a link to itself. example:
ALTERNATIVE_LINK_NAME:
Quoted 7 lines
https://docs.yoctoproject.org/ref-manual/variables.html#term-ALTERNATIVE_LINK_NAME
whose description contains a self-referential link. doesn't hurt, of course, but it kind of fakes someone out if they see a link and think, "hey, i'll follow that link to get more explanation," and they end up right where they are.
It's odd but I personally like it this way. For two reasons:
- consistency, every BitBake variable that still exists today should have a reference. This makes reviewing easier: "is this a BitBake variable that is documented? then use a link for each occurrence of it" and "mmm this isn't a link, does the variable exist? Is it documented yet? if not, then we should document it"
- renames of variables are "enforced" by Sphinx as non-existing terms are (should at least, haven't checked in a while) failing the build. So if you do a partial rename, it'll complain about it and we'll know early enough to catch it :)
The description for each entry in the glossary aren't typically that long so I hope the reader doesn't forget the variable name they are reading the description for :)
Quoted 3 lines
anyway, i have some extended thoughts on variable documentation and
bitbake/YP manual cross-linking coming.
Looking forward to reading them :)
Cheers,
Quentin
Quoted 27 lines · Quentin Schulz
Hi Robert,
Quoted 8 lines · Robert P. J. Day via lists.yoctoproject.org
wildly nitpicky here but in the YP variable glossary:
https://docs.yoctoproject.org/ref-manual/variables.html#
it seems weird when a glossary entry has a link to itself. example:
ALTERNATIVE_LINK_NAME:Quoted 7 lines
https://docs.yoctoproject.org/ref-manual/variables.html#term-ALTERNATIVE_LINK_NAME
whose description contains a self-referential link. doesn't hurt, of course, but it kind of fakes someone out if they see a link and think, "hey, i'll follow that link to get more explanation," and they end up right where they are.
It's odd but I personally like it this way. For two reasons:
- consistency, every BitBake variable that still exists today should have a reference. This makes reviewing easier: "is this a BitBake variable that is documented? then use a link for each occurrence of it" and "mmm this isn't a link, does the variable exist? Is it documented yet? if not, then we should document it"
Quoted 8 lines
- renames of variables are "enforced" by Sphinx as non-existing terms are (should at least, haven't checked in a while) failing the build. So if you do a partial rename, it'll complain about it and we'll know early enough to catch it :)
The description for each entry in the glossary aren't typically that long so I hope the reader doesn't forget the variable name they are reading the description for :)
you are entirely correct and i did warn you i was being wildly
nitpicky.
rday