From: Mauro Carvalho Chehab <mchehab@kernel.org>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] docs: kfigure.py: Don't warn of missing PDF converter in 'make htmldocs'
Date: Mon, 28 Mar 2022 12:26:04 +0200 [thread overview]
Message-ID: <20220328122604.67d0eb5e@coco.lan> (raw)
In-Reply-To: <c80e1481-10d4-7151-fe59-e846259eb0d4@gmail.com>
Em Sat, 26 Mar 2022 16:48:39 +0900
Akira Yokosawa <akiyks@gmail.com> escreveu:
> SVG -> PDF conversion is not required in "make htmldocs".
> It is pointless to always warn of a missing converter.
> Demote the log message in setupTools() to verbose.
>
> For "make pdfdocs" (or "make latexdocs"), promote the dynamic
> message of "include SVG raw" to a warn.
> Expand the message and recommend installing Inkscape or
> ImageMagick.
>
> Fixes: 8ccd05697a9d ("docs: sphinx/kfigure.py: Use inkscape(1) for SVG -> PDF conversion")
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Cc: linux-doc@vger.kernel.org
Makes sense to me.
Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org>
> ---
> Documentation/sphinx/kfigure.py | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/sphinx/kfigure.py b/Documentation/sphinx/kfigure.py
> index 24d2b2addcce..cefdbb7e7523 100644
> --- a/Documentation/sphinx/kfigure.py
> +++ b/Documentation/sphinx/kfigure.py
> @@ -212,7 +212,7 @@ def setupTools(app):
> if convert_cmd:
> kernellog.verbose(app, "use convert(1) from: " + convert_cmd)
> else:
> - kernellog.warn(app,
> + kernellog.verbose(app,
> "Neither inkscape(1) nor convert(1) found.\n"
> "For SVG to PDF conversion, "
> "install either Inkscape (https://inkscape.org/) (preferred) or\n"
> @@ -296,8 +296,10 @@ def convert_image(img_node, translator, src_fname=None):
>
> if translator.builder.format == 'latex':
> if not inkscape_cmd and convert_cmd is None:
> - kernellog.verbose(app,
> - "no SVG to PDF conversion available / include SVG raw.")
> + kernellog.warn(app,
> + "no SVG to PDF conversion available / include SVG raw."
> + "\nIncluding large raw SVGs can cause xelatex error."
> + "\nInstall Inkscape (preferred) or ImageMagick.")
> img_node.replace_self(file2literal(src_fname))
> else:
> dst_fname = path.join(translator.builder.outdir, fname + '.pdf')
>
> base-commit: 8d6451b9a51b555be2c9a6c326a980b2de00741a
Thanks,
Mauro
next prev parent reply other threads:[~2022-03-28 10:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-26 7:48 [PATCH] docs: kfigure.py: Don't warn of missing PDF converter in 'make htmldocs' Akira Yokosawa
2022-03-28 10:26 ` Mauro Carvalho Chehab [this message]
2022-03-28 19:53 ` Jonathan Corbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220328122604.67d0eb5e@coco.lan \
--to=mchehab@kernel.org \
--cc=akiyks@gmail.com \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.