]> git.baikalelectronics.ru Git - kernel.git/commit
docs/conf.py: Cope with removal of language=None in Sphinx 5.0.0
authorAkira Yokosawa <akiyks@gmail.com>
Wed, 1 Jun 2022 14:34:06 +0000 (23:34 +0900)
committerJonathan Corbet <corbet@lwn.net>
Wed, 1 Jun 2022 15:26:05 +0000 (09:26 -0600)
commit627f01eab93d8671d4e4afee9b148f9998d20e7c
tree95cc5257242641f912fd1c1910159708345fc353
parentb86f46d5ce3e7497930be931a9a9e57480f0baff
docs/conf.py: Cope with removal of language=None in Sphinx 5.0.0

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>
Link: https://lore.kernel.org/r/bd0c2ddc-2401-03cb-4526-79ca664e1cbe@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/conf.py