acrn-hypervisor/doc/scripts
David B. Kinder b0deb1b5bd doc: add support for kerneldoc API tools
Some ACRN kernel components are using the API documentation methods of
the Linux kernel.  While they use Sphinx for generating their
documentation, they don't use doxygen to collect the API information as
we do for the rest of the project.  Instead, they use their own tools
called "kerneldoc".  This PR incorporates those tools into our
documentation build process.

There is a prescribed directory structure for this to work: that the
acrn-hypervisor and acrn-kernel repos are cloned to sibling folders,
e.g.:

    projectacrn
       acrn-hypervisor
       acrn-kernel

so that documentation references from acrn_hypervisor/doc can access the
source code in ../../acrn-kernel to do the kerneldoc processing.  A full
display of the kerneldoc API material for a source file in the
acrn-kernel tree can be done using a sphinx extension directive:

    .. kernel-doc:: /tools/virtio/linux/scatterlist.h

where the assumed root of these file references is ../../acrn-kernel.

The format for kerneldoc comments is documented in
https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html and
references to kerneldoc API material in .rst files is documented in
https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#including-kernel-doc-comments

Without options, the kernel-doc directive includes all documentation
comments from the source file. With options, you can display subsets of
these comments.

The intention is to limit use of kerneldoc comments to the acrn-kernel
repo and not use them elsewhere within the ACRN project (where doxygen
comments are expected.)

While I'd prefer NOT to include the kerneldoc perl script here (it is
already in the acrn-kernel/sphinx folder), I don't want to create a
dependency on the acrn-kernel folder existing for documentation
generation, but this might be unavoidable once we have part of the API
material coming from there.  We can update this in a later PR.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-07-04 18:26:44 -07:00
..
extract_content.py doc: add doc build infrastructure for tools 2018-05-29 14:23:32 -07:00
filter-doc-log.sh doc: filter known issues 2018-05-15 17:19:35 +08:00
filter-known-issues.py doc: filter known issues 2018-05-15 17:19:35 +08:00
genrest.py doc: add hypervisor kconfig option reference 2018-06-15 15:20:43 -07:00
kernel-doc doc: add support for kerneldoc API tools 2018-07-04 18:26:44 -07:00
publish-README.md doc: post-merge changes to docs 2018-05-15 18:03:33 +08:00
publish-index.html doc: GSG formating fix, RTD theme tweak 2018-05-15 17:25:58 +08:00
requirements.txt doc: add hypervisor kconfig option reference 2018-06-15 15:20:43 -07:00