cdoc is a package documentation generation utility. It builds a
directory of browsable HTML documentation using the meta-
information stored in RTSC packages.
$(XDCROOT)/xs xdc.tools.cdoc
where $(XDCROOT) is the installation directory of the XDCtools toolset.
1. To generate documentation for the package in the current working
directory:
Since no package is specified and no output directory is specified,
documentation is generated for the package in the current working
directory and the output is placed in the package's ./package/cdoc
sub-directory.
2. To generate documentation with the title "My Packages" for all
packages installed in the myPackages repository:
cdoc -title "My Packages" -Pr myPackages
Since no output directory was specified and documentation will be for
more than one package, the generated files are placed in the directory
./cdoc.
3. To generate documentation for the package located in ./ti/bios and
put results in the directory ./html.
When interatively updating a package's .xdc files and examining the
generated documentation, it is useful to define a command alias that
first "compiles" the package's .xdc files and then runs the cdoc tool.
For example, if your shell is Korn shell compatible, the following
command alias ensures that any changes in .xdc files will show up in the
generated documents:
function cdoc {
$XDCROOT/xdc .interfaces
$XDCROOT/xs xdc.tools.cdoc $*
}
config Main.usage // module-wide |
|
Usage for this command
XDCscript usage |
meta-domain |
Main.usage = String[] [
'[-od:dir] [-title text] [--start package] [--indexonly] [--doxytags file] [--doxybase dir] [-h] [-n] [-b] [-s] [-P pkg-dir...|-Pr repo-dir...|-A]'
];
Main.exec() // module-wide |
|
'xs' script entry point
XDCscript usage |
meta-domain |
Main.exec(Any args) returns Any
Main.main() // module-wide |
|
'xs' shell entry point
XDCscript usage |
meta-domain |
Main.main(Any args) returns Any
Instance Config Parameters |
|
XDCscript usage |
meta-domain |
var params = new Main.Params;
// Instance config-params object
params.aopt = Bool false;
// Generate documentation for all packages on the package path
params.bopt = Bool false;
// Generate a single "big" output
params.doxybase = String null;
// The directory containing doxygen html files
params.doxytags = String null;
// Process doxygen links, using this argument
as the tag file
params.hopt = Bool false;
// Generate html pages only, not table of contents or index
params.iopt = Bool false;
// Generate index and table of contents only
params.language = String null;
// Language to document. Deprecated
params.lopt = Bool false;
// Don't include dependent packages. Deprecated
params.nopt = Bool false;
// Generate nodoc'd docs
params.outdir = String null;
// Place the generated files in the named directory
params.popt = Bool false;
// The subsequent directories are package directories
params.qopt = Bool false;
// Quiet mode
params.ropt = Bool false;
// The subsequent directories are repositories of packages
params.sopt = Bool false;
// Include .xdc file sources
params.start = String null;
// Set start page to specified package
params.style = String null;
// Use specified style sheet
params.title = String null;
// Generated HTML pages will show the string in the page title
config Main.aopt // instance |
|
Generate documentation for all packages on the package path
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.aopt = Bool false;
config Main.bopt // instance |
|
Generate a single "big" output
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.bopt = Bool false;
config Main.doxybase // instance |
|
The directory containing doxygen html files
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.doxybase = String null;
config Main.doxytags // instance |
|
Process doxygen links, using this argument
as the tag file
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.doxytags = String null;
config Main.hopt // instance |
|
Generate html pages only, not table of contents or index
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.hopt = Bool false;
config Main.iopt // instance |
|
Generate index and table of contents only
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.iopt = Bool false;
config Main.language // instance |
|
Language to document. Deprecated
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.language = String null;
config Main.lopt // instance |
|
Don't include dependent packages. Deprecated
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.lopt = Bool false;
config Main.nopt // instance |
|
Generate nodoc'd docs
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.nopt = Bool false;
config Main.outdir // instance |
|
Place the generated files in the named directory
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.outdir = String null;
config Main.popt // instance |
|
The subsequent directories are package directories
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.popt = Bool false;
DETAILS
Generates documentation for each of the specified packages.
config Main.qopt // instance |
|
Quiet mode
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.qopt = Bool false;
config Main.ropt // instance |
|
The subsequent directories are repositories of packages
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.ropt = Bool false;
DETAILS
Generates documentation for all packages rooted in each of
the specified repositories.
config Main.sopt // instance |
|
Include .xdc file sources
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.sopt = Bool false;
DETAILS
In the generated documentation for each .xdc file, link
to a pretty-printed view of the .xdc file source text.
config Main.start // instance |
|
Set start page to specified package
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.start = String null;
DETAILS
The opening page is, by default, the documentation for the
alphabetically first package processed. This option allows
you to explicitly specify the package used.
If "" is specified, the start page will be blank.
If the package specified is not processed, no warning or error
results; it is assumed that when the documentation is used the
specified package documentation will exist.
config Main.style // instance |
|
Use specified style sheet
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.style = String null;
config Main.title // instance |
|
Generated HTML pages will show the string in the page title
XDCscript usage |
meta-domain |
var params = new Main.Params;
...
params.title = String null;
Main.run() // instance |
|
Underlying implementation
XDCscript usage |
meta-domain |