Re: [PATCH] docs: Only load the translations extension for HTML output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 15/02/2024 03:43, Akira Yokosawa wrote:
On 2024/02/15 8:25, Jonathan Corbet wrote:
+#
+# 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')

I tested incremental build of latexdocs against Sphinx 7.2.6 as follows:

[...]

WARNING: unknown node type: <LanguagesNode: <#text: 'Chinese (Simpl ...'><#text: 'Chinese (Tradi ... ...>

Exception occurred:
   File "/home/akira/sphinx-7.2.6/lib/python3.10/site-packages/docutils/nodes.py", line 2068, in unknown_departure
     raise NotImplementedError(
NotImplementedError: <class 'sphinx.writers.latex.LaTeXTranslator'> departing unknown node type: LanguagesNode
The full traceback has been saved in /tmp/sphinx-err-3inve171.log, if you want to report the issue to the developers.

Jon, this is pretty much what I said would happen here:

https://lore.kernel.org/all/8b51b6d6-0360-4f42-9b96-02e0ccd0b34f@xxxxxxxxxx/

I have a proper fix that should fix all errors everywhere:

https://lore.kernel.org/all/4806c264-1076-401b-bb5f-283fb7b68fb3@xxxxxxxxxx/

Why not use that? I'll do a proper submission, I was just waiting a
couple of days to see if anybody else would would test it too.


Vegard




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux