[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/3] Use Doxygen and sphinx for html documentation


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 7 Apr 2021 12:15:56 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3Feb04uJ2mT3yvkWQEWoEMDV9q3cUo0X77tX0WyXk/8=; b=SrMlxJkdVv1S+CHkh4pKS1N5UKzbnasvZeUjfanQdXRwoDId2aFuvhOqY2rWBFY7VIBo+UOOZBjq2F0Am0d7bycNo9pnYY984KU4rA44r9GW1rihmuw03PuB3W6kXqRdIIAiVgePTdBSyTZb2doXJNiWZoBM4rsnmp5KUgI7WNpmte8E26C2mrYo7N6Q0cRMMqV+QvqVf8hX0vywFRE47/xRsQ07eCuiZK878UZmN07GntY2cMKO5td+tspvlMPyfAVIPv1NIhfw45nRz7xmuAttUvsXn0hHShJ4Ru1rvLYGO9yq9mFcgPvLuiKQN463sVeITm4Oc4yUWU7IwKcuxQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aeKNrlPepNDZ/MP2SYnIRNNkd8654Xf6c3GYAZDUbjMV6+5qzc9l68vn//Fk2tGwyRWhWOf0ZMAxXXx6qXXtj0GTIGNr66+83Mk1+4o4QVuJLVeB9kLIgk/JOIewcW6sOKZiGFtOkVr5Rdn5KbEFast/ksBbMxjEM2fW/WiwWlT6ET7s6z8hZSReJjWRJ6mQw5eTXKfVwRDwSbA98UOvFEjooxR0BVgCyrgfxvo18lY7iDNyWXF5r0eLxziIsYGWHMX14FdOAhzavgbyz9jRYicJc/MYnBMQyEve/CShi2wQclF/ISJ8XPDyUEjCHxmq6sTkGWEf/muxXmY9y/6RIg==
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Luca Fancellu <luca.fancellu@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <bertrand.marquis@xxxxxxx>, <wei.chen@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 07 Apr 2021 11:16:27 +0000
  • Ironport-hdrordr: A9a23:uLktNK6/dKziCEzZbgPXwGbXdLJzesId70hD6mlaQ3VuEvCwvc aogfgdyFvImC8cMUtQ++yoFaGcTRrnmKJdzpIWOd6ZMzXOmGztF4166Jun/juIIVyGysd49Y NNN5dzE8fxC18St7eY3CCdH8w7yNeKtICE7N21815XQQtna75t4m5CY26mO3Z7SwVcCZ0yGI D03LsgmxOadW0TfoCHABA+MdTrnNHXiIngJScPGh9P0mKzpAm14733GQXw5Hsjeg5IqI1CzU H11yHBooCZn97T8G6460bjq7lbgtnZ8f0GL9CNj8V9EESKti+YIKlsQb+6hxZwhO208l4lnO LBrH4bTqBO108=
  • Ironport-sdr: au6gzlD1/or/7Oex6GTk2CbqexviU8RooZn1LeRxp2XsIfgsjceRC1QjysE8zliHKM5EH/qjdS Y/KtwcXSX4K5Tk2Y5Xjwr7XSWXRaJwXzgbJnlfQ3/lHbEixbOa6sHOZLaIOERfkksJkp/e6cU8 SpTSnLE1ObDOQD36i3XaCj5eFU2414Szm+1dZVVPhNKUt0lM1BjCICSfmRdXEKGBBBioKcqlo5 cQSP0XMkUZXU7qnUq8Na76Ju1quBu1ry2F1YK7CPVOoOkCIf+apenxMW379Zrbz383HDW5ZymX 7G0=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 06/04/2021 22:24, Stefano Stabellini wrote:
> On Tue, 6 Apr 2021, Andrew Cooper wrote:
>> On 06/04/2021 11:36, Luca Fancellu wrote:
>>> This serie introduce doxygen in the sphinx html docs generation.
>>> One benefit is to keep most of the documentation in the source
>>> files of xen so that it's more maintainable, on the other hand
>>> there are some limitation of doxygen that must be addressed
>>> modifying the current codebase (for example doxygen can't parse
>>> anonymous structure/union).
>>>
>>> To reproduce the documentation xen must be compiled because
>>> most of the headers are generated on compilation time from
>>> the makefiles.
>>>
>>> Here follows the steps to generate the sphinx html docs, some
>>> package may be required on your machine, everything is suggested
>>> by the autoconf script.
>>> Here I'm building the arm64 docs (the only introduced for now by
>>> this serie):
>>>
>>> ./configure
>>> make -C xen XEN_TARGET_ARCH="arm64" CROSS_COMPILE="aarch64-linux-gnu-" 
>>> menuconfig
>>> make -C xen XEN_TARGET_ARCH="arm64" CROSS_COMPILE="aarch64-linux-gnu-"
>>> make -C docs XEN_TARGET_ARCH="arm64" sphinx-html
>>>
>>> now in docs/sphinx/html/ we have the generated docs starting
>>> from the index.html page.
>> Do you have a sample rendered output?
>>
>> The plan was to try and use Linux's kernel-doc plugin for Sphinx, which
>> is very doxygen-like.  Did you experiment with this option?
> As you probably know the end goal for Luca (and the Xen FuSa SIG as a
> whole) is to generate all FuSa documents, including requirements docs,
> interface docs, etc.
>
> FuSa requires us to follow the famous V model, where the high level
> requirements are linked to the lower level requirements, which are
> linked to the interface docs, which are linked all the way down to the
> code.
>
> Maintaining the linking is difficult and typically done with expensive
> proprietary FuSa tools.
>
> Fortunately, an engineer working with the Zephyr project developed a set
> of scripts for Doxygen that are able to generate the required FuSa docs
> and also links from in-code comments and markdown/rst docs in the tree.
>
> This is great work, and in the FuSa SIG we thought it would be best to
> align ourselves with Zephyr to be able to pull our efforts together on
> the tooling side instead of doing the same thing again on our own.
>
> This is the reason why we ended up with Doxygen.

So are we're saying that Doxygen is a hard dependency because there is
an extension for Doxygen to generate other safety docs?

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.