mdassembler.1 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. .\"
  2. .\" mdassembler manual page.
  3. .\" (C) 2006 Jonathan Pryor
  4. .\" Author:
  5. .\" Jonathan Pryor ([email protected])
  6. .\"
  7. .de Sp \" Vertical space (when we can't use .PP)
  8. .if t .sp .5v
  9. .if n .sp
  10. ..
  11. .TH "mdassembler" 1
  12. .SH NAME
  13. mdassembler \- Compile documentation for use in monodoc browser
  14. .SH SYNOPSIS
  15. .B mdassembler
  16. OPTIONS*
  17. DIRS+
  18. .SH DESCRIPTION
  19. \fImdassembler\fR has been obsoleted by \fBmdoc\fR(1). See the
  20. \fBmdoc-assemble\fR(1) man page.
  21. .PP
  22. .I mdassembler
  23. is a program that creates
  24. .I .tree
  25. and
  26. .I .zip
  27. files for use in the
  28. .B monodoc
  29. documentation browser.
  30. .PP
  31. The
  32. .I .tree
  33. and
  34. .I .zip
  35. files are copied into monodoc's
  36. .I sources
  37. directory, and reside with a
  38. .I .source
  39. file which is used by
  40. .B monodoc
  41. to specify where the documentation should be displayed.
  42. The
  43. .I .source
  44. file's
  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
  48. .B \-\-out
  49. parameter.
  50. .PP
  51. .SH OPTIONS
  52. .TP
  53. .I \-\-ecma
  54. The documentation found within
  55. .I DIRS
  56. is in the Mono ECMA documentation format.
  57. See the
  58. .B Mono ECMA Documentation Format
  59. section below.
  60. .TP
  61. .I \-\-ecmaspec
  62. The documentation found within
  63. .I DIRS
  64. is in the ECMA Specification documentation format.
  65. See the
  66. .B Mono ECMA Specification Documentation Format
  67. section below.
  68. .TP
  69. .I \-\-error
  70. The documentation found within
  71. .I DIRS
  72. is in "error" format.
  73. See the
  74. .B Error Documentation Format
  75. section below.
  76. .TP
  77. .I \-\-help
  78. Show program argument information.
  79. .TP
  80. .I \-\-man
  81. The documentation found within
  82. .I DIRS
  83. is in man page format.
  84. See the
  85. .B Man Page Documentation Format
  86. section below.
  87. .TP
  88. .I \-o, \-\-out PREFIX
  89. Specify the output file prefix.
  90. .B mdassembler
  91. creates the files
  92. .I PREFIX.zip
  93. and
  94. .I PREFIX.tree
  95. \&.
  96. .TP
  97. .I \-\-simple
  98. The documentation found within
  99. .I DIRS
  100. is in "simple" format.
  101. See the
  102. .B Simple Documentation Format
  103. section below.
  104. .TP
  105. .I \-\-xhtml, \-\-hb
  106. The documentation found within
  107. .I DIRS
  108. is in XHTML format.
  109. See the
  110. .B XHTML Documentation Format
  111. section below.
  112. .PP
  113. .SH "FORMATS"
  114. The following documentation formats are supported:
  115. .SS Mono ECMA Documentation Format
  116. An XML documentation format with one file per type.
  117. .PP
  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.
  121. .PP
  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;
  124. for class library
  125. documentation, use the
  126. .B \-\-ecma
  127. format.
  128. .SS Error Documentation Format
  129. Used to present detailed error messages, and is used in
  130. \fBmonodoc\fR's "C# Compiler Error Reference"
  131. tree.
  132. .I DIRS
  133. is not a directory, but is instead a configuration file, containing the XML:
  134. .nf
  135. <ErrorProviderConfig>
  136. <FilesPath>../../mcs/errors</FilesPath>
  137. <Match>cs????*.cs</Match>
  138. <ErrorNumSubstringStart>2</ErrorNumSubstringStart>
  139. <ErrorNumSubstringLength>4</ErrorNumSubstringLength>
  140. <FriendlyFormatString>CS{0:0###}</FriendlyFormatString>
  141. </ErrorProviderConfig>
  142. .fi
  143. .I /ErrorProviderConfig/FilesPath
  144. specifies where to look for files,
  145. .I /ErrorProviderConfig/Match
  146. specifies the filename pattern to look for within
  147. \fI/ErrorProviderConfig/FilesPath\fR,
  148. .I /ErrorProviderConfig/ErrorNumSubstringStart
  149. and
  150. .I /ErrorProviderConfig/ErrorNumSubstringLength
  151. control which portion of the filename is used as the error number, and
  152. .I /ErrorProviderConfig/FriendlyFormatString
  153. controls how the formatting/display of the node in the
  154. .B monodoc
  155. tree.
  156. .PP
  157. For each file found, it is converted to HTML with C# syntax coloring applied.
  158. .SS Simple Documentation Format
  159. Converts text files into HTML by translating each newline into an HTML
  160. .I <br>
  161. element.
  162. .SS Man Page Documentation Format
  163. Converts man pages into HTML for display.
  164. .SS XHTML Documentation Format
  165. Copies the XHTML file as-is.
  166. .SH EXAMPLES
  167. To install your documenation for use with monodoc:
  168. .TP
  169. .I Create a PREFIX.source file
  170. with the contents:
  171. .nf
  172. <?xml version="1.0"?>
  173. <monodoc>
  174. <source provider="FORMAT" basefile="PREFIX" path="PATH"/>
  175. </monodoc>
  176. .fi
  177. where FORMAT is the documentation format contained within the
  178. .I PREFIX.tree
  179. file, e.g.
  180. \fIecma\fR, or \fIsimple\fR.
  181. .I PREFIX is the basename of the
  182. .I .tree
  183. and
  184. .I .zip
  185. files that
  186. .B mdassembler
  187. creates.
  188. .I PATH
  189. is the "path" in the monodoc tree that should contain the documentation.
  190. See the
  191. .I @prefix@/lib/monodoc/monodoc.xml
  192. file for a list of PATH values
  193. (the
  194. .I //node/@name
  195. values).
  196. .sp
  197. See also: http://www.mono-project.com/Generating_Documentation
  198. .TP
  199. .I Create your documentation
  200. See also the
  201. .BR monodocer (1)
  202. man page, e.g.
  203. .nf
  204. monodocer -assembly:foo.dll -path:foo/en
  205. .fi
  206. .TP
  207. .I Assemble the documentation
  208. .nf
  209. mdassembler --ecma foo/en PREFIX
  210. .fi
  211. Make sure that you use the same
  212. .I PREFIX
  213. here as you did above.
  214. .TP
  215. .I Install the documentation by using the command
  216. .nf
  217. cp PREFIX.source PREFIX.tree PREFIX.zip \\
  218. `pkg-config monodoc --variable=sourcesdir`
  219. .fi
  220. (Note the backticks used in the
  221. .B pkg-config
  222. command!)
  223. This copies the
  224. .I .source
  225. ,
  226. .I .tree
  227. , and
  228. .I .zip
  229. files into the
  230. .B monodoc
  231. .I sources
  232. directory, which will allow
  233. .B monodoc
  234. to display the documentation.
  235. .SH SEE ALSO
  236. \fBmdcs2ecma\fR(1),
  237. \fBmdnormalizer\fR(1),
  238. \fBmdoc\fR(1),
  239. \fBmdoc-assemble\fR(1),
  240. \fBmdvalidator\fR(1),
  241. \fBmonodocer\fR(1),
  242. \fBmonodocs2html\fR(1)
  243. .SH MAILING LISTS
  244. .TP
  245. Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
  246. .SH WEB SITE
  247. See also: http://www.mono-project.com
  248. and
  249. http://www.mono-project.com/Assembler