linux-doc.vger.kernel.org archive mirror
 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

* Re: [PATCH] tools/docs/sphinx-build-wrapper: Emit $SPHINXOPTS later in args list
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Akira Yokosawa @ 2025-10-29  2:12 UTC (permalink / raw)
  To: Jonathan Corbet, linux-doc
  Cc: Mauro Carvalho Chehab, Randy Dunlap, Konstantin Ryabitsev,
	Akira Yokosawa

On Sun, 19 Oct 2025 23:24:51 +0900, Akira Yokosawa wrote:
> 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?

Jon, could you consider applying this fix and making it be tested
directly at https://www.kernel.org/doc/html/next/ ?

The custom "next-2025mmdd" tag there would be helpful for us to catch
regressions in linux-next docs builds.

        Thanks, Akira

> 
> 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


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

* Re: [PATCH] tools/docs/sphinx-build-wrapper: Emit $SPHINXOPTS later in args list
  2025-10-29  2:12 ` Akira Yokosawa
@ 2025-10-29 15:52   ` Jonathan Corbet
  2025-10-30  9:55     ` Akira Yokosawa
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Corbet @ 2025-10-29 15:52 UTC (permalink / raw)
  To: Akira Yokosawa, linux-doc
  Cc: Mauro Carvalho Chehab, Randy Dunlap, Konstantin Ryabitsev,
	Akira Yokosawa

Akira Yokosawa <akiyks@gmail.com> writes:

> On Sun, 19 Oct 2025 23:24:51 +0900, Akira Yokosawa wrote:
>> 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?
>
> Jon, could you consider applying this fix and making it be tested
> directly at https://www.kernel.org/doc/html/next/ ?
>
> The custom "next-2025mmdd" tag there would be helpful for us to catch
> regressions in linux-next docs builds.

It doesn't seem like there should be any regressions ... I've applied
it, thanks.

jon

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

* Re: [PATCH] tools/docs/sphinx-build-wrapper: Emit $SPHINXOPTS later in args list
  2025-10-29 15:52   ` Jonathan Corbet
@ 2025-10-30  9:55     ` Akira Yokosawa
  2025-10-31  1:25       ` Akira Yokosawa
  0 siblings, 1 reply; 6+ messages in thread
From: Akira Yokosawa @ 2025-10-30  9:55 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: Jonathan Corbet, linux-doc

[-CC: Mauro and Randy]

Hi,

On Wed, 29 Oct 2025 09:52:30 -0600, Jonathan Corbet wrote:
> Akira Yokosawa <akiyks@gmail.com> writes:
[...]

>> Jon, could you consider applying this fix and making it be tested
>> directly at https://www.kernel.org/doc/html/next/ ?
>>
>> The custom "next-2025mmdd" tag there would be helpful for us to catch
>> regressions in linux-next docs builds.
> 
> It doesn't seem like there should be any regressions ... I've applied
> it, thanks.

Today's build at https://www.kernel.org/doc/html/next/ still has
"6.18.0-rc3" as the version tag.  Other new changes in docs-next are
reflected there.

Konstantin, I'm not sure but have you dropped the

    SPHINXOPTS="-D version=${TAGVER} -q"

flag from the command line of next docs build?

If that's the case, can you restore it?

Thanks, Akira

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

* Re: [PATCH] tools/docs/sphinx-build-wrapper: Emit $SPHINXOPTS later in args list
  2025-10-30  9:55     ` Akira Yokosawa
@ 2025-10-31  1:25       ` Akira Yokosawa
  2025-10-31 14:03         ` Konstantin Ryabitsev
  0 siblings, 1 reply; 6+ messages in thread
From: Akira Yokosawa @ 2025-10-31  1:25 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: Jonathan Corbet, linux-doc

On Thu, 30 Oct 2025 18:55:04 +0900, Akira Yokosawa wrote:
> [-CC: Mauro and Randy]
> 
> Hi,
> 
> On Wed, 29 Oct 2025 09:52:30 -0600, Jonathan Corbet wrote:
>> Akira Yokosawa <akiyks@gmail.com> writes:
> [...]
> 
>>> Jon, could you consider applying this fix and making it be tested
>>> directly at https://www.kernel.org/doc/html/next/ ?
>>>
>>> The custom "next-2025mmdd" tag there would be helpful for us to catch
>>> regressions in linux-next docs builds.
>>
>> It doesn't seem like there should be any regressions ... I've applied
>> it, thanks.
> 
> Today's build at https://www.kernel.org/doc/html/next/ still has
> "6.18.0-rc3" as the version tag.  Other new changes in docs-next are
> reflected there.
> 

Now, the version tag reads "next-20251030".

Nice to see it working again!

Thanks, Akira


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

* Re: [PATCH] tools/docs/sphinx-build-wrapper: Emit $SPHINXOPTS later in args list
  2025-10-31  1:25       ` Akira Yokosawa
@ 2025-10-31 14:03         ` Konstantin Ryabitsev
  0 siblings, 0 replies; 6+ messages in thread
From: Konstantin Ryabitsev @ 2025-10-31 14:03 UTC (permalink / raw)
  To: Akira Yokosawa; +Cc: Jonathan Corbet, linux-doc

On Fri, Oct 31, 2025 at 10:25:56AM +0900, Akira Yokosawa wrote:
> > Today's build at https://www.kernel.org/doc/html/next/ still has
> > "6.18.0-rc3" as the version tag.  Other new changes in docs-next are
> > reflected there.
> > 
> 
> Now, the version tag reads "next-20251030".

Yes, this is now working properly, thanks everyone!

-K

^ permalink raw reply	[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;
as well as URLs for NNTP newsgroup(s).