]> git.dujemihanovic.xyz Git - u-boot.git/commit
docs: Fix the docs build with Sphinx 6.0
authorJonathan Corbet <corbet@lwn.net>
Wed, 4 Jan 2023 17:47:39 +0000 (10:47 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 20 Nov 2023 18:06:22 +0000 (19:06 +0100)
commitdc23eb8e0e1ea07f9a60d60fb3af053c931bcb46
treeecd52bcf4742d0d3c094932557f2483bfccccfe3
parent63e41659f22daf8dfd96c3c092d3ff88a9315d4a
docs: Fix the docs build with Sphinx 6.0

Sphinx 6.0 removed the execfile_() function, which we use as part of the
configuration process.  They *did* warn us...  Just open-code the
functionality as is done in Sphinx itself.

Tested (using SPHINX_CONF, since this code is only executed with an
alternative config file) on various Sphinx versions from 2.5 through 6.0.

Reported-by: Martin Liška <mliska@suse.cz>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Rebased for U-Boot
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
doc/sphinx/load_config.py