From: Jonathan Corbet <corbet@lwn.net>
To: linux-doc@vger.kernel.org
Cc: Vegard Nossum <vegard.nossum@oracle.com>,
Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH] docs: Only load the translations extension for HTML output
Date: Wed, 14 Feb 2024 16:25:50 -0700 [thread overview]
Message-ID: <87sf1uy6f5.fsf@meer.lwn.net> (raw)
This extension brings no value for other output formats and can create
problems with the pdfdocs build.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
---
Documentation/conf.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 5830b01c5642..6071d3e24375 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -55,7 +55,13 @@ needs_sphinx = '2.4.4'
extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include',
'kfigure', 'sphinx.ext.ifconfig', 'automarkup',
'maintainers_include', 'sphinx.ext.autosectionlabel',
- 'kernel_abi', 'kernel_feat', 'translations']
+ 'kernel_abi', 'kernel_feat']
+#
+# Only enable the translation extension if we are building the HTML docs;
+# it brings no value otherwise and can cause problems.
+#
+if 'html' in sys.argv:
+ extensions.append('translations')
if major >= 3:
if (major > 3) or (minor > 0 or patch >= 2):
--
2.43.0
next reply other threads:[~2024-02-14 23:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-14 23:25 Jonathan Corbet [this message]
2024-02-15 2:43 ` [PATCH] docs: Only load the translations extension for HTML output Akira Yokosawa
2024-02-15 6:22 ` Vegard Nossum
2024-02-15 11:10 ` Akira Yokosawa
2024-02-15 11:24 ` Vegard Nossum
2024-02-15 16:22 ` 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=87sf1uy6f5.fsf@meer.lwn.net \
--to=corbet@lwn.net \
--cc=akiyks@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=vegard.nossum@oracle.com \
/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.