2 .\" mdassembler manual page.
3 .\" (C) 2006 Jonathan Pryor
5 .\" Jonathan Pryor (jonpryor@vt.edu)
7 .de Sp \" Vertical space (when we can't use .PP)
13 mdassembler \- Compile documentation for use in monodoc browser
19 \fImdassembler\fR has been obsoleted by \fBmdoc\fR(1). See the
20 \fBmdoc-assemble\fR(1) man page.
23 is a program that creates
29 documentation browser.
35 files are copied into monodoc's
37 directory, and reside with a
41 to specify where the documentation should be displayed.
45 .I /monodoc/source/@basefile
46 attribute specifies the filename prefix for the documentation files. This
47 must be the same prefix as used with the
54 The documentation found within
56 is in the Mono ECMA documentation format.
58 .B Mono ECMA Documentation Format
62 The documentation found within
64 is in the ECMA Specification documentation format.
66 .B Mono ECMA Specification Documentation Format
70 The documentation found within
74 .B Error Documentation Format
78 Show program argument information.
81 The documentation found within
83 is in man page format.
85 .B Man Page Documentation Format
88 .I \-o, \-\-out PREFIX
89 Specify the output file prefix.
98 The documentation found within
100 is in "simple" format.
102 .B Simple Documentation Format
106 The documentation found within
110 .B XHTML Documentation Format
114 The following documentation formats are supported:
115 .SS Mono ECMA Documentation Format
116 An XML documentation format with one file per type.
118 See the \fBmdoc\fR(5) man page for more information.
119 .SS Mono ECMA Specification Documentation Format
120 This is not the format you're looking for.
122 This is the format used to represent the ECMA-334 (C#) standard within
123 \fBmonodoc\fR. It is not used to display class library documentation;
125 documentation, use the
128 .SS Error Documentation Format
129 Used to present detailed error messages, and is used in
130 \fBmonodoc\fR's "C# Compiler Error Reference"
133 is not a directory, but is instead a configuration file, containing the XML:
136 <ErrorProviderConfig>
137 <FilesPath>../../mcs/errors</FilesPath>
138 <Match>cs????*.cs</Match>
139 <ErrorNumSubstringStart>2</ErrorNumSubstringStart>
140 <ErrorNumSubstringLength>4</ErrorNumSubstringLength>
141 <FriendlyFormatString>CS{0:0###}</FriendlyFormatString>
142 </ErrorProviderConfig>
145 .I /ErrorProviderConfig/FilesPath
146 specifies where to look for files,
147 .I /ErrorProviderConfig/Match
148 specifies the filename pattern to look for within
149 \fI/ErrorProviderConfig/FilesPath\fR,
150 .I /ErrorProviderConfig/ErrorNumSubstringStart
152 .I /ErrorProviderConfig/ErrorNumSubstringLength
153 control which portion of the filename is used as the error number, and
154 .I /ErrorProviderConfig/FriendlyFormatString
155 controls how the formatting/display of the node in the
159 For each file found, it is converted to HTML with C# syntax coloring applied.
160 .SS Simple Documentation Format
161 Converts text files into HTML by translating each newline into an HTML
164 .SS Man Page Documentation Format
165 Converts man pages into HTML for display.
166 .SS XHTML Documentation Format
167 Copies the XHTML file as-is.
169 To install your documenation for use with monodoc:
171 .I Create a PREFIX.source file
175 <?xml version="1.0"?>
177 <source provider="FORMAT" basefile="PREFIX" path="PATH"/>
181 where FORMAT is the documentation format contained within the
184 \fIecma\fR, or \fIsimple\fR.
185 .I PREFIX is the basename of the
193 is the "path" in the monodoc tree that should contain the documentation.
195 .I @prefix@/lib/monodoc/monodoc.xml
196 file for a list of PATH values
201 See also: http://www.mono-project.com/Generating_Documentation
203 .I Create your documentation
209 monodocer -assembly:foo.dll -path:foo/en
213 .I Assemble the documentation
216 mdassembler --ecma foo/en PREFIX
219 Make sure that you use the same
221 here as you did above.
223 .I Install the documentation by using the command
226 cp PREFIX.source PREFIX.tree PREFIX.zip \\
227 `pkg-config monodoc --variable=sourcesdir`
230 (Note the backticks used in the
242 directory, which will allow
244 to display the documentation.
247 \fBmdnormalizer\fR(1),
249 \fBmdoc-assemble\fR(1),
250 \fBmdvalidator\fR(1),
252 \fBmonodocs2html\fR(1)
255 Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
257 See also: http://www.mono-project.com
259 http://www.mono-project.com/Assembler