You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With @floam's recent work, we're now trying to use more semantic markup. That's cool.
Unfortunately, while :envvar: links to the definition of the corresponding envvar, I can't see :program: do the same.
I think the actual syntax to define a program section is:
.. program:: name
with the double colons and the space after them (at least emacs' sphinx mode doesn't highlight them if that's not added). Some of the definitions lack spaces or don't exist (e.g. echo doesn't have a program definition).
Okay, I've now replaced the references that should be linked with :ref: again since it wasn't as much as I thought. I kept the program:: definitions in place and kept the :program: roles for the program's own man page - realpath doesn't have to link to the realpath page inside the realpath page.
If we can make :program: work, we can switch easily by removing the cmd- labels, completely rebuilding the docs (i.e. you'll have to remove your old copy!) and seeing where it complains about the label not existing. That makes it easy to find all places a label is used.
We previously rejected the idea to treat warnings as errors (sphinx-build -W) - I don't remember why and I can't find that discussion now. Maybe at least in the CI or in Debug builds?
The issue with -Werror style things remains - different compiler version, different warnings. Our CI runs on Ubuntu, so the version you get is, uh, not super up-to-date.
This would not help with the :program: issue, only the missing labels.
Activity
faho commentedon Nov 12, 2021
Okay, I've now replaced the references that should be linked with :ref: again since it wasn't as much as I thought. I kept the program:: definitions in place and kept the :program: roles for the program's own man page -
realpathdoesn't have to link to therealpathpage inside therealpathpage.If we can make :program: work, we can switch easily by removing the cmd- labels, completely rebuilding the docs (i.e. you'll have to remove your old copy!) and seeing where it complains about the label not existing. That makes it easy to find all places a label is used.
krobelus commentedon Nov 12, 2021
We previously rejected the idea to treat warnings as errors (
sphinx-build -W) - I don't remember why and I can't find that discussion now. Maybe at least in the CI or in Debug builds?faho commentedon Nov 12, 2021
CHANGELOG updates for 3.4.0