OSDN Git Service

docs: import Linux kernel-doc script and extension
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Oct 2019 16:22:43 +0000 (17:22 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Dec 2019 18:36:32 +0000 (19:36 +0100)
commite2c546358f0eaccc001f457a9eec0ecbe9d3bed7
treecf4aad72249cbf5fb8958e648f8ac9899405a76b
parenta358bca24026a377e0804e137a4499e4e041918d
docs: import Linux kernel-doc script and extension

Import Linux's kernel-doc script as of commit 15e2544ed38a1e, as well
as the Sphinx extension to call kernel-doc according to the arguments
and parameters given to a reStructuredText directive.

The kernel-doc extension accepts a filename, which is relative to
the QEMU source tree root.  The extension also notifies Sphinx about the
document dependency on the file, causing the document to be rebuilt when
the file has been changed.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
docs/sphinx/kerneldoc.py [new file with mode: 0644]
docs/sphinx/kernellog.py [new file with mode: 0644]
scripts/kernel-doc [new file with mode: 0755]