linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] docs: Only load the translations extension for HTML output
@ 2024-02-14 23:25 Jonathan Corbet
  2024-02-15  2:43 ` Akira Yokosawa
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Corbet @ 2024-02-14 23:25 UTC (permalink / raw)
  To: linux-doc; +Cc: Vegard Nossum, Akira Yokosawa

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-15 16:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-14 23:25 [PATCH] docs: Only load the translations extension for HTML output Jonathan Corbet
2024-02-15  2:43 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).