mdassembler is a program that creates .tree and .zip files for use in the monodoc documentation browser.
The .tree and .zip files are copied into monodoc's sources directory, and reside with a .source file which is used by monodoc to specify where the documentation should be displayed. The .source file's /monodoc/source/@basefile attribute specifies the filename prefix for the documentation files. This must be the same prefix as used with the --out parameter.
See the mdoc(5) man page for more information.
This is the format used to represent the ECMA-334 (C#) standard within monodoc. It is not used to display class library documentation; for class library documentation, use the --ecma format.
<ErrorProviderConfig> <FilesPath>../../mcs/errors</FilesPath> <Match>cs????*.cs</Match> <ErrorNumSubstringStart>2</ErrorNumSubstringStart> <ErrorNumSubstringLength>4</ErrorNumSubstringLength> <FriendlyFormatString>CS{0:0###}</FriendlyFormatString> </ErrorProviderConfig>
/ErrorProviderConfig/FilesPath specifies where to look for files, /ErrorProviderConfig/Match specifies the filename pattern to look for within /ErrorProviderConfig/FilesPath, /ErrorProviderConfig/ErrorNumSubstringStart and /ErrorProviderConfig/ErrorNumSubstringLength control which portion of the filename is used as the error number, and /ErrorProviderConfig/FriendlyFormatString controls how the formatting/display of the node in the monodoc tree.
For each file found, it is converted to HTML with C# syntax coloring applied.
<?xml version="1.0"?> <monodoc> <source provider="FORMAT" basefile="PREFIX" path="PATH"/> </monodoc>where FORMAT is the documentation format contained within the PREFIX.tree file, e.g. ecma, or simple. PREFIX is the basename of the .tree and .zip files that mdassembler creates. PATH is the "path" in the monodoc tree that should contain the documentation. See the @prefix@/lib/monodoc/monodoc.xml file for a list of PATH values (the //node/@name values).
See also: http://www.mono-project.com/docs/tools+libraries/tools/monodoc/generating-documentation/
monodocer -assembly:foo.dll -path:foo/en
mdassembler --ecma foo/en PREFIXMake sure that you use the same PREFIX here as you did above.
cp PREFIX.source PREFIX.tree PREFIX.zip \ `pkg-config monodoc --variable=sourcesdir`(Note the backticks used in the pkg-config command!) This copies the .source , .tree , and .zip files into the monodoc sources directory, which will allow monodoc to display the documentation.