* [PATCH] docs/conf.py: Cope with removal of language=None in Sphinx 5.0.0
@ 2022-06-01 14:34 Akira Yokosawa
2022-06-01 15:29 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Akira Yokosawa @ 2022-06-01 14:34 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: linux-doc, Akira Yokosawa
One of the changes in Sphinx 5.0.0 [1] says [sic]:
5.0.0 final
- #10474: language does not accept None as it value.
The default value of language becomes to 'en' now.
[1]: https://www.sphinx-doc.org/en/master/changes.html#release-5-0-0-released-may-30-2022
It results in a new warning from Sphinx 5.0.0 [sic]:
WARNING: Invalid configuration value found: 'language = None'.
Update your configuration to a valid langauge code. Falling
back to 'en' (English).
Silence the warning by using 'en'.
It works with all the Sphinx versions required for building
kernel documentation (1.7.9 or later).
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
Documentation/conf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 072ee31a301d..934727e23e0e 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -161,7 +161,7 @@ finally:
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
-language = None
+language = 'en'
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
base-commit: b86f46d5ce3e7497930be931a9a9e57480f0baff
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] docs/conf.py: Cope with removal of language=None in Sphinx 5.0.0
2022-06-01 14:34 [PATCH] docs/conf.py: Cope with removal of language=None in Sphinx 5.0.0 Akira Yokosawa
@ 2022-06-01 15:29 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2022-06-01 15:29 UTC (permalink / raw)
To: Akira Yokosawa; +Cc: linux-doc, Akira Yokosawa
Akira Yokosawa <akiyks@gmail.com> writes:
> One of the changes in Sphinx 5.0.0 [1] says [sic]:
>
> 5.0.0 final
>
> - #10474: language does not accept None as it value.
> The default value of language becomes to 'en' now.
>
> [1]: https://www.sphinx-doc.org/en/master/changes.html#release-5-0-0-released-may-30-2022
>
> It results in a new warning from Sphinx 5.0.0 [sic]:
>
> WARNING: Invalid configuration value found: 'language = None'.
> Update your configuration to a valid langauge code. Falling
> back to 'en' (English).
>
> Silence the warning by using 'en'.
> It works with all the Sphinx versions required for building
> kernel documentation (1.7.9 or later).
>
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> ---
> Documentation/conf.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
I really was going to get around to trying Sphinx 5 real soon now,
honest...
> diff --git a/Documentation/conf.py b/Documentation/conf.py
> index 072ee31a301d..934727e23e0e 100644
> --- a/Documentation/conf.py
> +++ b/Documentation/conf.py
> @@ -161,7 +161,7 @@ finally:
> #
> # This is also used if you do content translation via gettext catalogs.
> # Usually you set "language" from the command line for these cases.
> -language = None
> +language = 'en'
>
Seems to be obviously the right thing to do. I've applied it with a CC
to stable, thanks.
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-01 15:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-01 14:34 [PATCH] docs/conf.py: Cope with removal of language=None in Sphinx 5.0.0 Akira Yokosawa
2022-06-01 15:29 ` 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).