mdoc-export-html.1 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. .\"
  2. .\" mdoc-export-html manual page.
  3. .\" (C) 2008 Novell, Inc.
  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 "mdoc-export-html" 1
  12. .SH NAME
  13. mdoc export-html \- Convert \fBmdoc\fR(5) XML to HTML.
  14. .SH SYNOPSIS
  15. \fBmdoc export-html\fR [OPTION]* DIRECTORIES
  16. .SH DESCRIPTION
  17. \fBmdoc export-html\fR creates HTML files from the \fBmdoc\fR(5)-formatted
  18. documentation XML files within \fIDIRECTORIES\fR.
  19. .SH OPTIONS
  20. .TP
  21. \fB\-\-ext\fR=\fIEXTENSION\fR
  22. The file extension to use for created files.
  23. .Sp
  24. This defaults to \fIhtml\fR.
  25. .TP
  26. .B \-\-default\-template
  27. Writes the default XSLT used to \fIstdout\fR.
  28. .TP
  29. \fB\-\-template\fR=\fIFILE\fR
  30. An XSLT file to use to generate the created files.
  31. .Sp
  32. If not specified, uses the template produced by \fI\-\-dump\-template\fR.
  33. .Sp
  34. See the \fITEMPLATE FORMAT\fR section below for more information.
  35. .TP
  36. \fB\-o\fR, \fB\-\-out\fR=\fIDIRECTORY\fR
  37. Write the created files within directory \fIDIRECTORY\fR.
  38. .TP
  39. \fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR
  40. Display a help message and exit.
  41. .SH TEMPLATE FORMAT
  42. The template file is an XSLT which needs to process the following input XML
  43. document:
  44. .nf
  45. <Page>
  46. <CollectionTitle>Collection Title</CollectionTitle>
  47. <PageTitle>Page Title</PageTitle>
  48. <Summary>Page Summary</Summary>
  49. <Signature>Type Declaration</Signature>
  50. <Remarks>Type Remarks</Remarks>
  51. <Members>Type Members</Members>
  52. <Copyright>Documentation Copyright</Copyright>
  53. </Page>
  54. .fi
  55. The generated HTML also makes use of several CSS classes. You can either use
  56. the \fIcreate-default-style\fR named template found within the
  57. \fI\-\-default\-template\fR output to generate these classes, or explicitly
  58. define the following CSS classes:
  59. .RS
  60. .ne 8
  61. .TP
  62. .I .CollectionTitle
  63. .TP
  64. .I .PageTitle
  65. .TP
  66. .I .Summary
  67. .TP
  68. .I .Signature
  69. .TP
  70. .I .Remarks
  71. .TP
  72. .I .Members
  73. .TP
  74. .I .Copyright
  75. .TP
  76. .I .Section
  77. .TP
  78. .I .SectionBox
  79. .TP
  80. .I .NamespaceName
  81. .TP
  82. .I .NamespaceSummary
  83. .TP
  84. .I .MemberName
  85. .TP
  86. .I .MemberSignature
  87. .TP
  88. .I .MemberBox
  89. .TP
  90. .I .Subsection
  91. .TP
  92. .I .SubsectionBox
  93. .TP
  94. .I .SignatureTable
  95. .TP
  96. .I .EnumerationsTable
  97. .TP
  98. .I .CodeExampleTable
  99. .TP
  100. .I .MembersListing
  101. .TP
  102. .I .TypesListing
  103. .TP
  104. .I .InnerSignatureTable
  105. .TP
  106. .I .TypePermissionsTable
  107. .ne
  108. .RE
  109. .PP
  110. .SH HTML LINKS
  111. All members within the HTML file have an \fIid\fR
  112. attribute to permit linking to a specific member. The value of the
  113. \fIid\fR attribute is the String ID of the specified member.
  114. .PP
  115. See the \fICREF FORMAT\fR section of \fBmdoc\fR(5) for more information.
  116. .SH MAILING LISTS
  117. .TP
  118. Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
  119. .SH WEB SITE
  120. Visit http://www.mono-project.com/mdoc for details