Re: [PATCH 6/8] doc: kfigure.py: convert to sphinx.util.logging

From
Vegard Nossum <hidden>
Date
2024-02-06 12:40:24
Reply to
Akira Yokosawa, 2024-02-06
On 06/02/2024 04:04, Akira Yokosawa wrote:
On Mon,  5 Feb 2024 18:51:31 +0100, Vegard Nossum wrote:
quoted
As of commit 3e893e16af55 ("docs: Raise the minimum Sphinx requirement
to 2.4.4"), we can use Sphinx's built-in logging facilities.

Gotchas:
- remove first argument 'app' from all calls
- instead of (fmt % (args)), use (fmt, args)
- instead of ("<fmt>: " + str) use ("<fmt: %s>", str)
- realign wrapped lines

I changed the "Neither inkscape(1) nor convert(1) found." message from a
.verbose() to a .warning(), since that actually affects the output in a
big way.
No, please don't!

you are partially reverting commit d987d5ae51ec ("docs: kfigure.py:
Don't warn of missing PDF converter in 'make htmldocs'").

See its changelog for why it should be kept verbase.
I see, thanks for pointing it out, I'll fix that in v2.


Vegard
Thread (32 messages) 32 messages, 6 authors, last reply 2024-02-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help