docs: Fix Sphinx configuration for msys2/mingw
Python doesn't support running ../scripts/kernel-doc directly. Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Message-Id: <20201015220626.418-2-luoyonggang@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3856873ee4
commit
a94a689cc5
@ -241,7 +241,7 @@ texinfo_documents = [
|
|||||||
# We use paths starting from qemu_docdir here so that you can run
|
# We use paths starting from qemu_docdir here so that you can run
|
||||||
# sphinx-build from anywhere and the kerneldoc extension can still
|
# sphinx-build from anywhere and the kerneldoc extension can still
|
||||||
# find everything.
|
# find everything.
|
||||||
kerneldoc_bin = os.path.join(qemu_docdir, '../scripts/kernel-doc')
|
kerneldoc_bin = ['perl', os.path.join(qemu_docdir, '../scripts/kernel-doc')]
|
||||||
kerneldoc_srctree = os.path.join(qemu_docdir, '..')
|
kerneldoc_srctree = os.path.join(qemu_docdir, '..')
|
||||||
hxtool_srctree = os.path.join(qemu_docdir, '..')
|
hxtool_srctree = os.path.join(qemu_docdir, '..')
|
||||||
qapidoc_srctree = os.path.join(qemu_docdir, '..')
|
qapidoc_srctree = os.path.join(qemu_docdir, '..')
|
||||||
|
@ -67,7 +67,7 @@ class KernelDocDirective(Directive):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
env = self.state.document.settings.env
|
env = self.state.document.settings.env
|
||||||
cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno']
|
cmd = env.config.kerneldoc_bin + ['-rst', '-enable-lineno']
|
||||||
|
|
||||||
filename = env.config.kerneldoc_srctree + '/' + self.arguments[0]
|
filename = env.config.kerneldoc_srctree + '/' + self.arguments[0]
|
||||||
export_file_patterns = []
|
export_file_patterns = []
|
||||||
|
Loading…
Reference in New Issue
Block a user