Command line interface#
The Doctools bundles a command line interface called adoc
meant to ease both
continuous integration and local builds of the documentation.
Below, it is briefly described each command, and it is worth noting that every
command supports the --help
option for quick look up.
Aggregate#
Warning
This feature is under elaboration.
Generates all documentations of the watched repositories (see adi_doctools/lut.py).
Two generation strategies are available:
monolithic: patches all docs together into a single monolithic output (default).
symbolic: generate each doc independently, just save them together (
--symbolic
).
For the monolithic output, do:
~$
adoc aggregate --directory output
Some documentations depend on auto generated sections and extra features, use
the --extra
option to enable those; it considers that the environment has all
the tools needed, for example, vivado
is accessible for the HDL documentation.
See adi_doctools/cli/aggregate.py to understand how the extra steps are
included, but in summary, they are just a sequence of bash commands wrapped on python.
For all options, do:
~$
adoc aggregate --help
HDL Render#
Exposes the HDL component diagram generator as a CLI. It converts IP-XACT files into SVGs.
To generate and open the diagram, provide the path containing the IP-XACT and use
the --open
option:
~$
adoc hdl-render --input PATH --open
For example:
~$
adoc hdl-render --input hdl/library/axi_dmac --open
For all options, do:
~$
adoc hdl-render --help