public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/docs/sphinx-build-wrapper: Emit $SPHINXOPTS later in args list
@ 2025-10-19 14:24 Akira Yokosawa
  2025-10-29  2:12 ` Akira Yokosawa
  0 siblings, 1 reply; 6+ messages in thread
From: Akira Yokosawa @ 2025-10-19 14:24 UTC (permalink / raw)
  To: Jonathan Corbet, Konstantin Ryabitsev, linux-doc
  Cc: Mauro Carvalho Chehab, Randy Dunlap, Akira Yokosawa

The option list to sphinx-build via SPHINXOPTS should have higher
priority than those the wrapper comes up with.
sphinx-build will choose the latest one if there are duplicates.

To restore the behavior of Makefile era, when the documentation builds
at https://www.kernel.org/doc/html/next/ had been depending on it,
reorder the flag list.

Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Closes: https://lore.kernel.org/20251007-awesome-guan-of-greatness-e6ec75@lemur/
Reported-by: Akira Yokosawa <akiyks@gmail.com>
Closes: https://lore.kernel.org/c35e690f-0579-49cb-850c-07af98e5253a@gmail.com/
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
Hi,

Not having hearing from Mauro on this _minor_ regression, I went
forward and made this fix.

Konstantin, could you test this against your doc build environment
for linux-next?

Regards,
Akira
--
 tools/docs/sphinx-build-wrapper | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/docs/sphinx-build-wrapper b/tools/docs/sphinx-build-wrapper
index 3e6d166d4102..1efaca3d16aa 100755
--- a/tools/docs/sphinx-build-wrapper
+++ b/tools/docs/sphinx-build-wrapper
@@ -298,8 +298,8 @@ class SphinxBuilder:
 
             cmd += [sphinx_build]
             cmd += [f"-j{n_jobs}"]
-            cmd += self.sphinxopts
             cmd += build_args
+            cmd += self.sphinxopts
 
             if self.verbose:
                 print(" ".join(cmd))

base-commit: 96b546c241b11a97ba1247580208c554458e7866
-- 
2.43.0


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

end of thread, other threads:[~2025-10-31 14:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-19 14:24 [PATCH] tools/docs/sphinx-build-wrapper: Emit $SPHINXOPTS later in args list Akira Yokosawa
2025-10-29  2:12 ` Akira Yokosawa
2025-10-29 15:52   ` Jonathan Corbet
2025-10-30  9:55     ` Akira Yokosawa
2025-10-31  1:25       ` Akira Yokosawa
2025-10-31 14:03         ` Konstantin Ryabitsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox