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)
committerJonathan Corbet <corbet@lwn.net>
Fri, 6 Jan 2023 20:04:00 +0000 (13:04 -0700)
commit0283189e8f3d0917e2ac399688df85211f48447b
tree677a7d1125c54b3adf92342553db0acd422339b4
parent1b929c02afd37871d5afb9d498426f83432e71c2
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>
Documentation/sphinx/load_config.py